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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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