Skip to main content

information about states, local government areas (LGAs) towns and zip codes in Nigeria.

Project description

Nigerian Zip Codes (zipcode-ng)

The zipcode-ng library provides information about states, local government areas (LGAs) towns and zip codes in Nigeria.

Installation

You can install the package via pip:

pip install zipcode-ng

Usage

Importing

from zipcode_ng import (
    get_state_data,
    get_all_state_data
)

# Retrieve data for a specific state
lagos_state_data = get_state_data("Lagos")
print("Lagos State Data:", lagos_state_data)

# Retrieve data for all states
all_states_data = get_all_state_data()
print("All States Data:", all_states_data)

Functions

  • get_state_data(identifier: Union[str, StateName]) -> StateInfo: Returns information about a specific state based on its name or postal code.

  • get_all_state_data() -> List[StateInfo]: Returns information about all states in Nigeria.

Type Definitions

  • StateInfo: Represents the data structure for information about a state, including its name, language, tribe, description, region, etc.

  • StateName: Literal type representing the names of Nigerian states.

JSON Data

The state information returned by the library is sourced from a JSON file included with the package. The JSON file contains details about each state, including local government areas and towns within them.

Contributing

Contributions are welcome! If you'd like to contribute to this project, please fork the repository and submit a pull request with your changes.

GitHub Repository

You can find the source code and contribute to this project on GitHub: Nigerian Zip Codes on GitHub

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zipcode_ng-0.0.1.tar.gz (9.9 kB view details)

Uploaded Source

Built Distribution

zipcode_ng-0.0.1-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

Details for the file zipcode_ng-0.0.1.tar.gz.

File metadata

  • Download URL: zipcode_ng-0.0.1.tar.gz
  • Upload date:
  • Size: 9.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.3

File hashes

Hashes for zipcode_ng-0.0.1.tar.gz
Algorithm Hash digest
SHA256 6ce50b966ac00423f1e9607080460b8365eb9dcf363c45ef79fb05ae828bd486
MD5 2bc96b23d7c8b302b57a36e09bad0582
BLAKE2b-256 a0c1cb613409ed3382baf2c37c48e29ad322bffc2958cbfedbff82817757ecde

See more details on using hashes here.

File details

Details for the file zipcode_ng-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: zipcode_ng-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 9.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.3

File hashes

Hashes for zipcode_ng-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d0ea439380c465e9298ab2b1b1dcc29fe8d37dc0ca9f1782778b10652690ff72
MD5 fbaa9dc5947b39f0522828e3c22ceb72
BLAKE2b-256 1253ecd98c354a9e2158ccd4aab0d0a12cbba8ef58f69d8a129ae13c5bf0bb36

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page