Python with MGnipy
Explore MGnify with its Python client.
MGnipy provides Python objects for MGnify studies, analyses and samples, with pagination, metadata tables and result-download helpers.
from mgnipy import MGnipy
with MGnipy() as mg:
study = mg.study("MGYS00010393")
study.get()
print(study.search_results.to_pandas())Try the interactive MGnipy demo: list biomes. Choose Activate Notebook on that page to run the examples using Binder.
Running this code in your own environment
Using Python 3.11 or newer, install MGnipy from a terminal:
python -m pip install mgnipyThen run the Python example above in a notebook or script.