babelizer.cli module

exception babelizer.cli.BabelizerAbort(message)

Bases: click.exceptions.Abort

Exception raised when a user interrupts the babelizer.

babelize

Wrap BMI libraries with Python bindings.

babelize [OPTIONS] COMMAND [ARGS]...

Options

--version

Show the version and exit.

--cd <cd>

Change to directory, then execute.

generate

Generate the babelizer configuration file.

babelize generate [OPTIONS]

Options

--prompt

Prompt the user for values

--package <package>

Name to use for the babelized package

--name <name>

Name of the babelized class

--email <email>

Contact email to use for the babelized package

--language <language>

Programming language of the library being babelized

Options

c | c++ | fortran | python

--author <author>

Babelizing author

--username <username>

GitHub username or organization that will host the project

--license <license>

License to use for the babelized project

--summary <summary>

Brief description of what the library does

--library <library>

Name of the BMI library to wrap

--header <header>

Name of the header file declaring the BMI class

--entry-point <entry_point>

Name of the BMI entry point into the library

--requirement <requirement>

Required libraries

--python-version <python_version>

Supported Python versions

--os-name <os_name>

Supported operating systems

init

Initialize a repository with babelized project files.

META is babelizer configuration information, usually saved to a file.

babelize init [OPTIONS] META

Options

-q, --quiet

Don’t emit non-error messages to stderr. Errors are still emitted, silence those with 2>/dev/null

-v, --verbose

Also emit status messages to stderr

--template <template>

Location of cookiecutter template

--package-version <package_version>

The initial version of the babelized package

Arguments

META

Required argument

update

Update an existing babelized project.

babelize update [OPTIONS]

Options

-q, --quiet

Don’t emit non-error messages to stderr. Errors are still emitted, silence those with 2>/dev/null.

-v, --verbose

Also emit status messages to stderr.

--template <template>

Location of cookiecutter template