Dataset of Nigerian states and local government areas (LGAs)
Project description
Nigeria States & LGAs (Python Package)
A simple Python package containing all 36 Nigerian States + FCT and their Local Government Areas (LGAs).
Installation
pip install nigeria-states-lgas
Usage
from nigeria_states_lgas import get_states, get_lgas, get_all, search_lga
# List all states
print(get_states())
# Get LGAs for a specific state
print(get_lgas("Kano"))
# Search which state(s) an LGA belongs to
print(search_lga("Ikot Ekpene"))
# Get the full dataset
all_data = get_all()
print(all_data["Lagos"])
CLI Usage
After installing the package a CLI nigeria-states-lgas is available:
# List all states
nigeria-states-lgas states
# List LGAs for a state
nigeria-states-lgas lgas Lagos
# Fuzzy search for an LGA
nigeria-states-lgas search-lga "Dala" --fuzzy
# Fuzzy search for states
nigeria-states-lgas search-states "Plateu" --fuzzy
Features
- Provides all 36 Nigerian States + FCT.
- Lists all Local Government Areas (LGAs) for each state.
- Search for any LGA to find which state(s) it belongs to.
- Easy integration into Python projects.
Contributing
Contributions are welcome! Please feel free to fork the repo and submit pull requests.
License
This project is licensed under the MIT License. See LICENSE for details.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nigeria_states_lgas-1.0.6.tar.gz.
File metadata
- Download URL: nigeria_states_lgas-1.0.6.tar.gz
- Upload date:
- Size: 5.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a997d663c67ee7a4280e8b45746453febca36f79134016c16c512f0b1e9b7780
|
|
| MD5 |
2684571d30e86bd5106eb832fdac93fb
|
|
| BLAKE2b-256 |
23cd3924b3aee60f325b29d4fd9e4158fa554b35a512f5fe486f8fb1719f2b4c
|
File details
Details for the file nigeria_states_lgas-1.0.6-py3-none-any.whl.
File metadata
- Download URL: nigeria_states_lgas-1.0.6-py3-none-any.whl
- Upload date:
- Size: 5.5 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0c68bcf6b2c714cda34e0fe744814ac691c764cd405647e3a6ccf527f099dd8b
|
|
| MD5 |
23c315cae0656e583eb908d1f3c82359
|
|
| BLAKE2b-256 |
42658691f60ca780dbdddf7cd548ca4168f78d359de209ef15680e12b63ac20c
|