Skip to content

cli

Command line interfaces of sbml2cellml.

sbml2cellml INPUT.xml [-o OUTPUT.cellml] [--no-validate] [--no-metadata] [-v]
cellml2sbml INPUT.cellml [-o OUTPUT.xml] [--no-validate] [--no-metadata] [-v]

convert between SBML and CellML. Without -o the output is written next to the input with the suffix of the other format.

build_parser

build_parser()

Build the argument parser of the sbml2cellml command.

Returns:

Type Description
ArgumentParser

The parser.

build_parser_cellml2sbml

build_parser_cellml2sbml()

Build the argument parser of the cellml2sbml command.

Returns:

Type Description
ArgumentParser

The parser.

main

main(argv=None)

Run the sbml2cellml command.

Parameters:

Name Type Description Default
argv list[str] | None

arguments without the program name, sys.argv[1:] by default.

None

Returns:

Type Description
int

0 on success, 1 on a missing input, a conversion, a validation or an

int

I/O error.

main_cellml2sbml

main_cellml2sbml(argv=None)

Run the cellml2sbml command.

Parameters:

Name Type Description Default
argv list[str] | None

arguments without the program name, sys.argv[1:] by default.

None

Returns:

Type Description
int

0 on success, 1 on a missing input, a conversion, a validation or an

int

I/O error.