Optd Python API.
Project description
# NeoBase
Minimalist [GeoBases](http://opentraveldata.github.com/geobases/) implementation:
* no dependencies
* compatible with Python 2.6+, Python 3.x, Pypy
* one data source: [opentraveldata](https://github.com/opentraveldata/opentraveldata)
* one Python module for easier distribution on clusters (like Hadoop)
* faster load time (5x)
* tested with pytest and tox
```python
>>> 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
```bash
pip install --user .
```
## Doc
Check out [readthedocs](http://neobase.readthedocs.org/en/latest/).
## Tests
```bash
tox # or detox ;)
```
Minimalist [GeoBases](http://opentraveldata.github.com/geobases/) implementation:
* no dependencies
* compatible with Python 2.6+, Python 3.x, Pypy
* one data source: [opentraveldata](https://github.com/opentraveldata/opentraveldata)
* one Python module for easier distribution on clusters (like Hadoop)
* faster load time (5x)
* tested with pytest and tox
```python
>>> 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
```bash
pip install --user .
```
## Doc
Check out [readthedocs](http://neobase.readthedocs.org/en/latest/).
## Tests
```bash
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.6.tar.gz
(2.7 MB
view hashes)