Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
NeoBase-0.18.1.tar.gz (3.1 MB) Copy SHA256 hash SHA256 Source None Aug 8, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page