sbmlutils.report.api
¶
API for the sbmlreport web service.
This provides basic functionality of parsing the model and returning the JSON representation based on fastAPI.
Module Contents¶
Functions¶
|
Get examples for reports. |
|
Get specific example. |
|
Upload file and return JSON report. |
|
Get JSON report via URL. |
|
Get JSON report from file contents. |
|
Create json for omex path. |
|
Create JSON content for given SBML source. |
|
Handle exceptions in the backend. |
|
Get information for annotation_resource. |
Attributes¶
- sbmlutils.report.api.example(example_id)[source]¶
Get specific example.
- Parameters:
example_id (str) –
- Return type:
Dict[Any, Any]
- async sbmlutils.report.api.report_from_file(request)[source]¶
Upload file and return JSON report.
- Parameters:
request (fastapi.Request) –
- Return type:
Dict[Any, Any]
- sbmlutils.report.api.report_from_url(url)[source]¶
Get JSON report via URL.
- Parameters:
url (str) –
- Return type:
Dict[Any, Any]
- async sbmlutils.report.api.get_report_from_content(request)[source]¶
Get JSON report from file contents.
- Parameters:
request (fastapi.Request) –
- Return type:
Dict[Any, Any]
- sbmlutils.report.api.json_for_omex(omex_path)[source]¶
Create json for omex path.
Path can be either Omex or an SBML file.
- Parameters:
omex_path (pathlib.Path) –
- Return type:
Dict[str, Any]
- sbmlutils.report.api.json_for_sbml(uid, source)[source]¶
Create JSON content for given SBML source.
Source is either path to SBML file or SBML string.
- Parameters:
uid (str) –
source (Union[pathlib.Path, str, bytes]) –
- Return type:
Dict