Lightweight GeoBases implementation: no dependency, single, Py3 compatible
Project description
Minimalist GeoBases implementation:
no dependencies
compatible with Python 2.6+, Python 3.x, Pypy
one data source: opentraveldata
one Python module for easier distribution on clusters (like Hadoop)
faster load time (5x)
tested with pytest and tox
>>> from neobase import NeoBase
>>> b = NeoBase()
>>> b.get('ORY', 'city_code_list')
['PAR']
>>> b.get('ORY', 'city_name_list')
['Paris']
>>> b.get('ORY', 'country_code')
'FR'
>>> b.distance('ORY', 'CDG')
34.87...
>>> b.get_location('ORY')
LatLng(lat=48.72..., lng=2.35...)
Installation
You can install directly after cloning:
pip install --user .
Or use the Python package:
pip install --user neobase
Doc
Check out readthedocs.
Tests
tox # or detox ;)
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
NeoBase-0.17.tar.gz
(2.9 MB
view details)
File details
Details for the file NeoBase-0.17.tar.gz.
File metadata
- Download URL: NeoBase-0.17.tar.gz
- Upload date:
- Size: 2.9 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4c2d4068d86f99827b238fd41e7ce052b534ec35ffb27ef9c06d8f62266c41be
|
|
| MD5 |
60ce9baac2c270524c9ab1defddb3d9f
|
|
| BLAKE2b-256 |
260ab4e651aeb60d4390b16237f4d743510adc520f0cd82dcb3010f29cbe2eb9
|