.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "gen/examples/db_test_usage.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note Click :ref:`here ` to download the full example code .. rst-class:: sphx-glr-example-title .. _sphx_glr_gen_examples_db_test_usage.py: Simple usage of MMBSE on the test database ========================================== .. GENERATED FROM PYTHON SOURCE LINES 5-21 .. code-block:: default 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}") .. rst-class:: sphx-glr-timing **Total running time of the script:** ( 0 minutes 0.000 seconds) .. _sphx_glr_download_gen_examples_db_test_usage.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: db_test_usage.py ` .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: db_test_usage.ipynb ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_