benchmarkstt.cli.entrypoints.api module

Make benchmarkstt available through a rudimentary JSON-RPC interface

Attention

Only supported for Python versions 3.6 and above

benchmarkstt.cli.entrypoints.api.argparser(parser)[source]

Adds the help and arguments specific to this module

benchmarkstt.cli.entrypoints.api.create_app(entrypoint: str = None, with_explorer: bool = None)[source]

Create the Flask app

Parameters
  • entrypoint -- The HTTP path on which the api will be served

  • with_explorer (bool) -- Whether to also serve the JSON-RPC API explorer

Returns

benchmarkstt.cli.entrypoints.api.run(_parser, args)[source]