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_collection_by_id("biosample", "id")

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_collection_by_id("biosample", "id")

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.3.2.tar.gz (14.7 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.3.2-py3-none-any.whl (25.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for nmdc_api_utilities-0.3.2.tar.gz
Algorithm Hash digest
SHA256 bcb26dcc4547ab81713b9b3e415864eaf0acc4b657ded4737dd7855d436a68e4
MD5 1b4b9f52bed34e0ddc8166a850303f58
BLAKE2b-256 312c52be4f051dc7055e98d3a93b3f6fee7011f7835d0979e99e35552bceafe0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nmdc_api_utilities-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ebe5e71f33e059b4ba6d91b1713f7f54c3b2f0ae2d9f9a3a0551eff0be29e005
MD5 96fe8c5982eb526cfdd824dffe33b203
BLAKE2b-256 a265298b3363e6cbc767cafb97dfd0062a3a354de749b7d5686b9a3bc59c7fc5

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