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.4.tar.gz (15.1 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.4-py3-none-any.whl (27.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nmdc_api_utilities-0.3.4.tar.gz
  • Upload date:
  • Size: 15.1 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.4.tar.gz
Algorithm Hash digest
SHA256 242e493e15c9237f9554b4ae080c7b3ff00c5fdaa9fa35de9db2445b51f3712e
MD5 fc3d1eff3229945f90c98c137851987a
BLAKE2b-256 156c9025c73fb54d8799a89251f0efb15d8cf246520fcf9a397cd890f739a43c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nmdc_api_utilities-0.3.4-py3-none-any.whl
Algorithm Hash digest
SHA256 152147a6d764a8b8652fd704b3c231fac2517d5e76bbd24582fe90a4581bccf5
MD5 cd6c0374a5a8659bc4164a2e58647f9d
BLAKE2b-256 3c2ef86635f66f9a71f945d635570522a76624b5ce8cd248adb4c3c0e140f979

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