Optd Python API.
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
pip install --user .
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.8.tar.gz
(2.7 MB
view details)
File details
Details for the file NeoBase-0.8.tar.gz.
File metadata
- Download URL: NeoBase-0.8.tar.gz
- Upload date:
- Size: 2.7 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e164fced68be0fd44e14f3f0cead26888ccab904674b5bc071ed675b7ceaad98
|
|
| MD5 |
c7af6545d86c29bc7e62cb085bf8937c
|
|
| BLAKE2b-256 |
b4534b4f01141b8169f2bc36cbab336187c93b3d7c513e01de94771feafd459d
|