pyobis
Python client for the OBIS API.
Source on GitHub at sckott/pyobis
Other OBIS clients:
R: robis, iobis/robis
Installation
from pypi
pip install pyobis
dev version
pip install git+git://github.com/sckott/pyobis.git#egg=pyobis
library API
pyobis is split up into modules for each of the groups of API methods.
taxa - Taxonomic names
occurrences - Occurrence search, and occurrence downloads
resources - Resources
groups - Groups
nodes - Nodes
checklist - Checklist
You can import the entire library, or each module individually as needed.
Taxa module
from pyobis import taxa
taxa.search(scientificname = 'Mola mola')
taxa.search(scientificname = 'Mola mola', offset=10, limit=10)
taxa.search(geometry='POLYGON((30.1 10.1, 10 20, 20 40, 40 40, 30.1 10.1))', limit=20)
taxa.search(aphiaid=key, year="2013", limit=20)
taxa.taxon(406296)
taxa.taxon(415282)
Occurrence module
Search
from pyobis import occurrences
occurrences.search(scientificname = 'Mola mola')
occurrences.search(scientificname = 'Mola mola', offset=0, limit=10)
occurrences.search(geometry='POLYGON((30.1 10.1, 10 20, 20 40, 40 40, 30.1 10.1))', limit=20)
occurrences.search(aphiaid=key, year="2013", limit=20)
Download
res = occ.download(year = 2001, scientificname = 'Orcinus')
res.uuid
res.status()
res.fetch()
Resources module
from pyobis import resources
resources.search(scientificname = ['Mola', 'Abra', 'Lanice', 'Pectinaria'])
resources.resource(103)
resources.citation(scientificname = 'Mola mola')
Groups module
from pyobis import groups
groups.group()
groups.group(limit = 3)
Ndes module
from pyobis import nodes
nodes.node()
Checklist module
from pyobis import checklist as ch
ch.list(year = 2005, scientificname = 'Cetacea')
Meta
License: MIT, see LICENSE file
Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.
Changelog
0.1.0 (2016-12-12)
first push to pypi
finished off all OBIS API routes
0.0.6.9000 (2016-05-12)
Updated modules with missing methods
Added modules: groups, resources
Removed taxon module, just a taxa module now that has all taxa/taxon methods
Updated docs
0.0.1 (2015-12-11)
in the works…not on pypi yet
Metadata
Release files for pyobis 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyobis-0.1.0.tar.gz | 11.1 kB | Without provenance | Details for pyobis-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyobis-0.1.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for pyobis-0.1.0-py2.py3-none-any.whl |
Total release size: 30.5 kB
Release files / pyobis-0.1.0.tar.gz
| Download URL | pyobis-0.1.0.tar.gz |
|---|---|
| Size | 11.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6e7c38a9e478dcfe30cf47c69a800faf19b7f719809f6e280f7e99ec29221d86
|
|
BLAKE2b-256 checksum How to use checksums |
caf702d1e625e72b460774056e9d9f2e7874409528cc442556757c81f10be8c1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / pyobis-0.1.0-py2.py3-none-any.whl
| Download URL | pyobis-0.1.0-py2.py3-none-any.whl |
|---|---|
| Size | 19.4 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
1e9db45268e0b6362205df7279833531e184f08ac59d30e50f3c968c5ce59839
|
|
BLAKE2b-256 checksum How to use checksums |
b70e6c3463cb3b4e21b2178428c735a91d2067f378ae699fafac6c84b0911c1e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pyobis 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.