Skip to main content

geoalgeria (Python)

Algeria's 69 wilayas and 1,541 communes, with postal codes, coordinates and Arabic/French search. No dependencies. The data is the GeoAlgeria open dataset, the same one behind the geoalgeria npm package and geoalgeria.com.

pip install geoalgeria
import geoalgeria

geoalgeria.wilaya(31)["name_ar"]          # 'وهران'
geoalgeria.commune(101)["postal_code"]    # '01000'
len(geoalgeria.communes(16))              # communes of Algiers
geoalgeria.dairas(30)                     # dairas of Ouargla, with their commune codes
geoalgeria.search("ورقلة")                # Arabic, with or without harakat
geoalgeria.search("bejaia")               # French, accents optional
geoalgeria.DATA_VERSION                   # GeoAlgeria data release bundled

Each commune has code_commune, name_fr, name_ar, wilaya_code, daira, postal_code, latitude, longitude, osm_relation_id and wikidata. Wilaya codes follow the 2026 reform (69 wilayas).

Licence

Code and the compilation (codes, names, postal codes) are MIT. The OpenStreetMap-derived parts (323 commune centre coordinates, OSM relation ids and Wikidata items) are ODbL 1.0, © OpenStreetMap contributors. Full terms in LICENSE and NOTICE. If you reuse the data, credit GeoAlgeria and OpenStreetMap.

Corrections: open an issue.

Metadata

Release files for geoalgeria 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for geoalgeria 0.1.0
File Size Uploaded Provenance Actions
geoalgeria-0.1.0.tar.gz 80.5 kB Without provenance Details for geoalgeria-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for geoalgeria 0.1.0
File Interpreter ABI Platform Actions
geoalgeria-0.1.0-py3-none-any.whl Python 3 none any Details for geoalgeria-0.1.0-py3-none-any.whl

Total release size: 163.9 kB

Release files / geoalgeria-0.1.0.tar.gz

Download URL geoalgeria-0.1.0.tar.gz
Size 80.5 kB
Tags Source
SHA-256 checksum
How to use checksums
6a0478b1d2d0ed9428f506fb4ce9f2232692a5768a40e948aa64e8a4ddc45686
BLAKE2b-256 checksum
How to use checksums
cbf81af76f919d0e4a62fe7ea05b9b7fba7f7005eb45f9b0b00d6d7c88157677
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / geoalgeria-0.1.0-py3-none-any.whl

Download URL geoalgeria-0.1.0-py3-none-any.whl
Size 83.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bcb272f86ee9a6c76c442411d74aa97fa1d304fc2f4cfa05948f2c4100092e2d
BLAKE2b-256 checksum
How to use checksums
3c32372b1d3156265917ceb11c31af63fbe5432cfaedfe8ebb5bf11e1ea7b58c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for geoalgeria 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page