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

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

Uploaded Source

File details

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

File metadata

  • Download URL: NeoBase-0.18.2.tar.gz
  • Upload date:
  • Size: 3.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/2.7

File hashes

Hashes for NeoBase-0.18.2.tar.gz
Algorithm Hash digest
SHA256 c8460cd0be9dd38e0baf1972ea456ba66692bdf91d24950d675a33b069489332
MD5 f5fed5dc2849d0176cd49b50d57a5c03
BLAKE2b-256 450088a47029daf5e9306143ad08a319c87b618049d9f886a917a27ee7de38f1

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