Skip to main content

No project description provided

Project description

robotpy-cli

New for 2024, this package is used to execute subcommands on a RobotPy project. This does not actually implement any subcommands itself, but provides a mechanism to execute those subcommands.

Usage

On Windows:

py -m robotpy

On Linux/macOS:

python -m robotpy

See the RobotPy documentation for more information.

How RobotPy subcommands are implemented

When a user runs robotpy or python -m robotpy, they are presented with several subcommands. Each of these subcommands is implemented as a class that is registered using python's entry point mechanism in the "robotpy_cli.YEAR" group. The registered class must meet the following requirements:

  • The docstring of the class is used when the user does --help. The first line is treated as the summary, and all other lines are displayed when the subcommand specific help is queried.

If the subcommand is a group of commands:

  • The class must have a subcommands attribute, which is a list of (name, subcommand_class) tuples. The subcommand_class must meet the requirements for a subcommand.

If it is a subcommand that is executed:

  • The constructor must take a single argument, an argparse.ArgumentParser. The object may register any arguments or subparsers that it needs.
  • The run function is called when the subcommand is used by the user. The arguments to this function are passed in by name, and the names can be any of the options that the subcommand registered. There are two other special argument names:
    • options - if specified, this is the Namespace returned by parse_args
    • robot_class - if specified, the user's robot.py will be loaded and it will be inspected for their robot class, which will be passed in as this option
    • load_robot_class - if specified, this is a function that will return the same object that robot_class would have returned. The robot class will not be loaded until the function is called. You may not specify robot_class and load_robot_class, and you should not call the function more than once.
    • main_file - if specified, the name of the user's robot.py file. This is not guaranteed to exist unless robot_class is also an option.
    • project_path - if specified, the name of the directory that contains the user's robot.py file. This is not guaranteed to exist unless robot_class is also an option.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

robotpy_cli-2026.0.1.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

robotpy_cli-2026.0.1-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

Details for the file robotpy_cli-2026.0.1.tar.gz.

File metadata

  • Download URL: robotpy_cli-2026.0.1.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for robotpy_cli-2026.0.1.tar.gz
Algorithm Hash digest
SHA256 103195e8f284ef321bb0df21c8b4fa79cf6925f552a1a11d8030f61b78b88cd5
MD5 5db071164c9b57aab4521c2f8f51c649
BLAKE2b-256 5317d0e27b4703ae02e3e049c4c99ee10198a9c846cc8f4939cdde4737e24a12

See more details on using hashes here.

Provenance

The following attestation bundles were made for robotpy_cli-2026.0.1.tar.gz:

Publisher: dist.yml on robotpy/robotpy-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file robotpy_cli-2026.0.1-py3-none-any.whl.

File metadata

  • Download URL: robotpy_cli-2026.0.1-py3-none-any.whl
  • Upload date:
  • Size: 9.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for robotpy_cli-2026.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b5e7e6df0346f7606bad630b78d5251f9e33f4440a47db948425a4716032d41a
MD5 fb3c9be0decbe5f049b42567489805f9
BLAKE2b-256 47c38acbbdf89f69afcd346c1a4f7776c865f80ea124006c304e801802c7601a

See more details on using hashes here.

Provenance

The following attestation bundles were made for robotpy_cli-2026.0.1-py3-none-any.whl:

Publisher: dist.yml on robotpy/robotpy-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page