Note
Click here to download the full example code
Simple usage of MMBSE on the test databaseΒΆ
import pprint
import mmbse_client as mmbse
# Specify test database in base_url
mmbse = mmbse.MMBSE(api_token="", base_url="https://mmbse-test.app.cern.ch/api")
# Check if MMBSE is authenticated
print(mmbse.is_authenticated())
# Get model information
model = mmbse.get_model("23")
pprint.pprint(model)
# Upload input test file
new = mmbse.upload_model_input_file("23", "test_file.txt", "../tests/test_file.txt")
print(f"New: {new}")
Total running time of the script: ( 0 minutes 0.000 seconds)