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


Release history Release notifications | RSS feed

This version

0.12

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.12.tar.gz (2.8 MB view details)

Uploaded Source

File details

Details for the file NeoBase-0.12.tar.gz.

File metadata

  • Download URL: NeoBase-0.12.tar.gz
  • Upload date:
  • Size: 2.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for NeoBase-0.12.tar.gz
Algorithm Hash digest
SHA256 af121e16283cce5ee1e3ab05de587264a8a2575f081e9145be14baf65e7bb845
MD5 400563cdd1a032f7d3d652bde77da5e6
BLAKE2b-256 daf6af297adae65a88570643de64ebebb609e5ce06be39d5eac7070668f6124f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page