Skip to main content

Python interface to Kew data

Project description


=======================================================
pykew: Python library for accessing Kew's data services
=======================================================

----
IPNI
----

Library for searching IPNI data and looking up individual records. Hides the intracacies
of usign the HTTP API.

Searching
---------

Simple search:

.. code-block:: python
import pykew.ipni as ipni

result = ipni.search('Poa annua')

Advanced search:

.. code-block:: python
import pykew.ipni as ipni
from pykew.ipni.terms import Name

query = { Name.genus: 'Poa', Name.species: 'annua' }
res = ipni.search(query)

Using results:

.. code-block:: python
import pykew.ipni as ipni
from pykew.ipni.terms import Name

query = { Name.genus: 'Poa', Name.species: 'annua' }
res = ipni.search(query)

res.size() # 12
[r['name'] for r in res if 'name' in r]


Project details


Download files

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

Files for pykew, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size pykew-0.0.1-py2.py3-none-any.whl (4.5 kB) File type Wheel Python version py2.py3 Upload date Hashes View hashes
Filename, size pykew-0.0.1.tar.gz (4.5 kB) File type Source Python version None Upload date Hashes View hashes

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 SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page