Skip to main content

A Python client for accessing data from the Biocode FIMS database.

Project description

Biocode FIMS

https://img.shields.io/pypi/v/biocode_fims.svg https://img.shields.io/travis/MikeTrizna/biocode_fims.svg Documentation Status Updates

A Python client for accessing data from the Biocode FIMS database.

Installation

pip install biocode_fims

Basic Usage

Returning a list of all public Projects in the Biocode FIMS.

>>> import biocode_fims
>>> all_projects = biocode_fims.list_projects()
>>> print(all_projects)
{
  "Barcode of Wildlife Nigeria": 10,
  "Amphibian Disease": 26,
  "SI Barcoding CBOL": 12,
  "Hawaii Dimensions": 3,
  "University and Jepson Herbaria": 22,
  "Barcode of Wildlife Nepal": 23,
  "Barcode of Wildlife Kenya": 8,
  "New York Botanical Garden": 28,
  "Barcode of Wildlife Proficiency Testing": 24,
  "Barcode of Wildlife Mexico": 9,
  "Barcode of Wildlife South Africa": 11,
  "Barcode of Wildlife Training": 5
}

Return the first 4 datasets in the “SI Barcoding CBOL” project (project id: 12).

>>> import biocode_fims
>>> all_sibn_datasets = biocode_fims.list_datasets(12)
>>> print(all_sibn_datasets[:4])
['Brazil_Ants_A', 'Brazil_Ants_B', 'Brazil_Ants_C', 'Brazil_Ants_D']

Grab the contents of the dataset “DJBirds_P01”.

>>> import biocode_fims
>>> contents = biocode_fims.dataset_contents(12,['DJBirds_P01'])
>>> print(len(contents))
83

To do something useful with the dataset contents, it’s best of load them into a Pandas DataFrame.

TODO

  • Get testing implemented correctly

  • Expand to API endpoints behind OAuth

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

History

0.2.0 (2017-06-29)

  • Changed dataset_contents function to filter out empty fields by default

  • Got documentation running on RTD, and continuous integration running on TravisCI

0.1.0 (2017-06-21)

  • Initial release on PyPI.

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

biocode_fims-0.2.2.tar.gz (14.3 kB view details)

Uploaded Source

Built Distribution

biocode_fims-0.2.2-py2.py3-none-any.whl (6.2 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file biocode_fims-0.2.2.tar.gz.

File metadata

File hashes

Hashes for biocode_fims-0.2.2.tar.gz
Algorithm Hash digest
SHA256 d74956071424777a1b5f65a3e21195afccf13d8248f47961de84ff7e3c428f7d
MD5 bd29e7b5d97a0a6b06675bd98467078a
BLAKE2b-256 1f8515054293877b5b1c0dcef47a66c17ca7fb0ab10068dbf841a9b6bbcd2798

See more details on using hashes here.

File details

Details for the file biocode_fims-0.2.2-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for biocode_fims-0.2.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 f2d6fc530957488567566b2f5c737f5045acfc2c4a5c55c6dff8fee5526113eb
MD5 d4ae2ac96a7343b73488075112fcdac1
BLAKE2b-256 bc8b360903a2c4680b6cea44cb3a6c3c84fdb2af34d06ccddb1aa28ec16b0e95

See more details on using hashes here.

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