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.

Source Distribution

pykew-0.0.1.tar.gz (4.5 kB view hashes)

Uploaded Source

Built Distribution

pykew-0.0.1-py2.py3-none-any.whl (4.5 kB view hashes)

Uploaded Python 2 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