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)
Built Distribution
Close
Hashes for pykew-0.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a6ec159abc81d2f4dd6b4f44f557d1d3260133588198dbf734c4e8c1f1234f5d |
|
MD5 | 6ccd97954a5ef98acbe569a234c3fa7f |
|
BLAKE2b-256 | 39aea48606feabbd914fff4fb20c1a009e6224d7f310f0616915ca4f1afc3b07 |