Snippets

BioModels A simple usage of BioModels' Python-based APIs

Created by Tung V. N. Nguyen last modified
1
2
3
logs/
tmp/
venv/
'''
pip install biomodels-restful-api-client
pip install requests
'''
from biomodels_restful_api_client import services as bmservices
import json


json_result = bmservices.get_model_info("BIOMD0000000900")
print(json_result)
json_formatted_result = json.dumps(json_result, indent=3)
print(json_formatted_result)
1
2
3
4
from biomodels_restful_api_client import services as bmsvcs

# bmsvcs.download("BIOMD0000000900", "BIOMD0000000900.omex")
bmsvcs.download_bulk("BIOMD0000000900,BIOMD0000000902", save_as_file="biomodels-download-900-902.zip")

Comments (0)

HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.