Fast and efficient access to geospatial data for Nigeria. Ideal for developers and analysts working with Nigerian geospatial information.
Project description
Nigeria Geodata
A Python library for fast and efficient access to geospatial data for Nigeria.
Documentation: https://jeafreezy.github.io/nigeria_geodata/
Source Code: https://github.com/jeafreezy/nigeria_geodata
Nigeria Geodata is a fast and efficient Python client for accessing geospatial data for Nigeria.
The key features are:
- High Performance: Offers exceptional speed with both synchronous and asynchronous support to cater to different use cases and performance needs
- Map Visualization: Provides smooth map visualization using the fast lonboard library.
- Lightweight: Minimal dependencies—just one required (httpx), with optional extras available for additional features.
- User-Friendly: Easy to use and learn; set up quickly with just a few lines of code.
- CLI Support: Intuitive command-line interface built with Typer.
- Real-Time Data: Fetches up-to-date data directly from the GRID3 database (more to come!), ensuring you always work with the latest information.
- Advanced Filtering: Allows for precise filtering based on state names (e.g FCT, Lagos), bounding boxes (bbox), and areas of interest (AOI).
Dependency
nigeria_geodata depends on only one core package:
- Httpx - for the api requests.
Additional Optional Dependencies
There are some additional dependencies you might want to install.
- Typer - for cli support.
- Lonboard - for map visualization.
- Geopandas - to return the data as a geodataframe.
- Pandas - to return the data as a dataframe.
Installation
Create and activate a virtual environment and then install nigeria_geodata:
To install the lightweight version using pip:
pip install nigeria-geodata
---> 100%
This version will return all the data as Python objects, mostly as a list, and list of dicts.
To install it with typer
, lonboard
and geopandas
:
pip install nigeria-geodata['standard']
---> 100%
This version will allow you to get the data as a dataframe, geodataframe, or an interactive map.
pip install nigeria-geodata['cli']
---> 100%
This version provides CLI support for the package. It is also lightweight -- It will return the data as pure Python objects.
Get Started
For the simplest usecase, search for all the available health care data in Nigeria.
from nigeria_geodata import Grid3, AsyncGrid3
# Sync
search_results = Grid3().search("health")
print(search_results)
# this will return a dataframe with all the available health care datasets.
# Async
search_results = await AsyncGrid3().search("health")
print(search_results)
# this will return a dataframe with all the available health care datasets.
Under the hood, this makes an api request to the GRID3 database to get the datasets. Refer to the documentation and examples for more use cases.
Acknowledgment
In addition to the great libraries we're resting upon, we would also like to thank GRID3 for providing real-time and comprehensive geospatial data that powers this library.
License
This project is licensed under the terms of the MIT license. See LICENSE.MD.
Project details
Release history Release notifications | RSS feed
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
File details
Details for the file nigeria_geodata-0.0.0.tar.gz
.
File metadata
- Download URL: nigeria_geodata-0.0.0.tar.gz
- Upload date:
- Size: 25.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d063b09a801445b89638c483d9ad76ef0e405e5d61dad625fa0d2a8454c53d26 |
|
MD5 | 346a8ebc4c64634766f5248291609a8e |
|
BLAKE2b-256 | 28ca01be2c14d1bd1f5e5827a3fe2af8088eaea1a7990fcbdf98711121abbbad |
File details
Details for the file nigeria_geodata-0.0.0-py3-none-any.whl
.
File metadata
- Download URL: nigeria_geodata-0.0.0-py3-none-any.whl
- Upload date:
- Size: 31.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d7b65434b3488d42bdcd3a78a9cbf58f7bb4b5a4c48957751d7aa6a2b8745bb0 |
|
MD5 | 2357b57b971ee1db4fa3d5bdd8bbfc33 |
|
BLAKE2b-256 | 92b3b26eb2acd1e2c1273168b0efbe0eba32c578fda018fa5b2aeecc91a2ada5 |