Skip to content

CLI

The sekai command (also python -m sekai). Usage is documented in the Command line guide; this page covers the programmatic entry points, which are handy for embedding the commands in your own tooling or tests.

from sekai.cli import main

exit_code = main(["check", "CartPole-v1", "--steps", "100"])  # prints "CartPole-v1: all checks passed."
print(exit_code)  # 0

Command-line interface: sekai list | info | check | bench, or python -m sekai ....

main

main(argv: Sequence[str] | None = None) -> int

build_parser

build_parser() -> ArgumentParser