Skip to main content

Python client for the OBIS xylookup API

Project description

pyxylookup

travis coverage

Python client for the OBIS xylookup API

Source on GitHub at iobis/pyxylookup

Documentation at Read the Docs

Other OBIS xylookup clients:

Installation

pip install git+git://github.com/iobis/pyxylookup.git

Example usage

# nested list of longitude/latitude
import pyxylookup as xy
xy.lookup([[120,0], [-170,1]])

# numpy 2d array
import numpy as np
points = np.asarray([[120,0], [-170,1]])
xy.lookup(points)

## pandas DataFrame
import pandas as pd
points = pd.DataFrame({'x': [120,-170], 'y': [0,1]})
## retrieve results as a pandas DataFrame
xy.lookup(points, asdataframe = True)

Development environment installation

pipenv --three
pipenv install vcrpy
pipenv install tox
pipenv install nose
pipenv install requests
pipenv install u-msgpack-python
pipenv install pandas
pipenv install sphinx sphinx-autobuild sphinx_rtd_theme
# enter virtual evironment
pipenv shell
# run tests
pipenv run tox

Meta

Changelog

0.1.0 (2018-01-12)

  • First release

0.2.0 (2018-09-18)

  • adaptations related to changes in xylookup

Project details


Download files

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

Source Distribution

pyxylookup-0.2.1.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

pyxylookup-0.2.1-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file pyxylookup-0.2.1.tar.gz.

File metadata

  • Download URL: pyxylookup-0.2.1.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.6

File hashes

Hashes for pyxylookup-0.2.1.tar.gz
Algorithm Hash digest
SHA256 ceaff05b71b3f8327ef779f3a5851bd261775b993682bf5003f27450dda691fb
MD5 ad4d75ba81825fd42782feddf277ca17
BLAKE2b-256 83876844aae8524536d9efe9081385edc915216833bb20aecbda98078dcd4588

See more details on using hashes here.

File details

Details for the file pyxylookup-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: pyxylookup-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.6

File hashes

Hashes for pyxylookup-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2bf7eab147632d5663744979d56b0c2ec026ed0eb41868f75b1f787ab9e632b4
MD5 6ae93275c0a46cb43c814e34269ea939
BLAKE2b-256 e194f6eb186ae9e0132f77eb16cc2dc44cbdee0df8d926bee12ca1cd107fd7ea

See more details on using hashes here.

Supported by

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