{ "cells": [ { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [ "%matplotlib inline" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "# Simple usage of MMBSE on the test database\n" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false }, "outputs": [], "source": [ "import pprint\nimport mmbse_client as mmbse\n\n# Specify test database in base_url\nmmbse = mmbse.MMBSE(api_token=\"\", base_url=\"https://mmbse-test.app.cern.ch/api\")\n\n# Check if MMBSE is authenticated\nprint(mmbse.is_authenticated())\n\n# Get model information\nmodel = mmbse.get_model(\"23\")\npprint.pprint(model)\n\n# Upload input test file\nnew = mmbse.upload_model_input_file(\"23\", \"test_file.txt\", \"../tests/test_file.txt\")\nprint(f\"New: {new}\")" ] } ], "metadata": { "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.9.18" } }, "nbformat": 4, "nbformat_minor": 0 }