jeafreezy / nigeria_geodata

Fast and efficient access to geospatial data for Nigeria.
https://jeafreezy.github.io/nigeria_geodata
MIT License
5 stars 1 forks source link

Nigeria Geodata

Temporary logo

A Python library for fast and efficient access to geospatial data for Nigeria.

PyPI open_in_colab python_versions


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:

Dependency

nigeria_geodata depends on only one core package:

Additional Optional Dependencies

There are some additional dependencies you might want to install.

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.