Catalog PyPI
Back to packageRELEASE DETAILS

0.1.0

PyPI

adiresi

Python client for the Adiresi API — Nigerian address resolution, NIPOST postcodes, geofencing and validation.

addressgeocodingnigerianipostpostcode
Published5 Oct 2026
Direct dependencies1
Transitive dependenciesNot calculated

README

Version 0.1.0 documentation

adiresi (Python)

Python client for the Adiresi API — turn Nigerian address descriptions into official NIPOST postcodes, confirmed pins, distance/ETA, geofence events and contact validation.

Install

pip install adiresi

Usage

from adiresi import Adiresi

adr = Adiresi("adr_your_key")

# Free-form Nigerian address → postcode + coordinates
r = adr.resolve("opposite Mobil, after the second gate, Lekki")
print(r["status"], r["postcode"], r["confidence"])

# Reuse a customer's confirmed address
v = adr.vault_lookup("+234 803 123 4567")
if v["found"]:
    print(v["postcode"], v["coordinates"])

# Distance + ETA (driving, two_wheeler, walking, bicycling, transit)
d = adr.distance("6.5244,3.3792", "6.6018,3.3515", mode="two_wheeler")
print(d["distance_m"], d["duration_s"])

# Proof of delivery: fence the confirmed pin, ping the rider's position
f = adr.create_geofence("Order 441 drop", lat=6.4281, lng=3.4219, radius_m=150)
adr.ping("rider-12", lat=6.4283, lng=3.4220)  # → geofence.enter webhook

# Contact data
print(adr.validate_phone("0803 123 4567"))   # {'carrier': 'mtn', ...}
print(adr.validate_email("dev@example.com")) # {'mx': True, ...}

All methods return the decoded JSON body. Non-2xx responses raise AdiresiError with .status and .detail.

Full reference: https://api.adiresi.com.ng/docs

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 1

Native requirements
1 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
httpx
Environment
{
  "extras": "",
  "marker": null,
  "requires_python": ">=3.10",
  "evaluation": "NOT_EVALUATED"
}
httpx>=0.27runtime

Distribution files

2 collected
adiresi-0.1.0-py3-none-any.whl

bdist_wheel · 3.59 KB · Python py3

Source file
adiresi-0.1.0.tar.gz

sdist · 5.38 KB · Python source

Source file

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 19:32 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:059441effd631c26fbd96e4fd18d6a9f4b7147b185ce55b3bd5262e154ab24a5

Other collected versions

View all collected versions →