Skip to main content

A Python library for general research functions using NMDC APIs

Project description

nmdc_api_utilities

A library designed to simplify various research tasks for users looking to leverage the NMDC (National Microbiome Data Collaborative) APIs. The library provides a collection of general-purpose functions that facilitate easy access, manipulation, and analysis of microbiome data.

Usage

Example use of the Biosample class:

from nmdc_api_utilities.biosample_search import BiosampleSearch

# Create an instance of the module
biosample_client = BiosampleSearch()
# Use the variable to call the available functions
biosample_client.get_record_by_id(collection_id="nmdc:bsm-13-amrnys72")

For real use case examples, see the nmdc_notebooks repository. Each of the Python Jupyter notebooks use this package.

Logging - Debug Mode

To see debugging information, include these two lines where ever you are running the functions:

import logging
logging.basicConfig(level=logging.DEBUG)
# when this is run, you will see debug information in the console.
biosample_client.get_record_by_id(collection_id="nmdc:bsm-13-amrnys72")

Installation

To install, run:

python3 -m pip install nmdc_api_utilities

Peridodically run

python3 -m pip install --upgrade nmdc_api_utilities

to ensure you have the latest updates from this package.

Documentation

Documentation about available functions and helpful usage notes can be found at https://microbiomedata.github.io/nmdc_api_utilities/.

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

nmdc_api_utilities-0.6.1.tar.gz (28.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nmdc_api_utilities-0.6.1-py3-none-any.whl (43.7 kB view details)

Uploaded Python 3

File details

Details for the file nmdc_api_utilities-0.6.1.tar.gz.

File metadata

  • Download URL: nmdc_api_utilities-0.6.1.tar.gz
  • Upload date:
  • Size: 28.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.11

File hashes

Hashes for nmdc_api_utilities-0.6.1.tar.gz
Algorithm Hash digest
SHA256 9c47d15b11de8a097eefd9f626b94cf340c9d6b89e74db84a94c7e0739e6dc87
MD5 c8721388a75466ca1cde107eec3bb014
BLAKE2b-256 38516376f2a48868fcbd9e745feb2ae2c008bc2384a03979f8ee386a3128ffa8

See more details on using hashes here.

File details

Details for the file nmdc_api_utilities-0.6.1-py3-none-any.whl.

File metadata

File hashes

Hashes for nmdc_api_utilities-0.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b8a48dca84b2851591630378aafd8a724946b462c316ea2d868741b70f93e993
MD5 4283e8dbb0e04223773a68175d85ea9d
BLAKE2b-256 71d7834523bddaa9a01254d7e00e4d9fcae461c9980cf890e4c275952f84b797

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page