Skip to main content

image of Betsy Ross

Betsy ROS

In this time of revolution between the regimes of ROS 1 and ROS 2, Betsy ROS creates a unified banner

Translation: This package is a unified Python API for certain "meta" ROS API calls that work the same in ROS 1 and ROS 2.

Installation

PyPI version

sudo pip3 install betsy-ros

Functionality

Workspace

  • get_workspace_root returns a BuildType and pathlib.Path indicating the type and location of the current workspace.
    • BuildType can be CATKIN_MAKE, CATKIN_TOOLS, or COLCON
  • get_ros_version returns an int and str indicating the ROS version (1 or 2) and the distro short-name (e.g. lunar, bouncy)

Packages

  • get_package_name_from_path returns the name of the package that the initial path is in (including subfolders)
  • get_package_names returns a set of strings of all the current package names, including the binary packages and the workspace packages
  • find_package returns the path to a given package
  • is_binary_ros returns True if the path passed to it is in the /opt/ros folder

Interfaces

(i.e. messages, services and actions)

  • The class ROSInterface has three key attributes:
  • package
  • type
  • name
  • list_interfaces yields ROSInterface instances for all messages/services/actions in the environment.

Environment

(i.e. active topics, service providers and action servers)

  • get_topics, get_services, and get_actions return the names of all active ROS resources
    • By default, it just returns the names.
    • If include_types is set to True, the type will also be included as a ROSInterface.

Credit

Package logo from artwork by Jean Leon Gerome Ferris (1863–1930): Betsy Ross 1777

Metadata

Release files for betsy-ros 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for betsy-ros 0.2.1
File Size Uploaded Provenance
betsy_ros-0.2.1.tar.gz 930.1 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for betsy-ros 0.2.1
File Interpreter ABI Platform
betsy_ros-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 938.2 kB

Release files / betsy_ros-0.2.1.tar.gz

Download URL betsy_ros-0.2.1.tar.gz
Size 930.1 kB
Tags Source
SHA-256 checksum
How to use checksums
17880f780022b8dd539500ced0bb397b31d3e719df66f156daa54524d2a88f46
BLAKE2b-256 checksum
How to use checksums
14a1e873e85c7edbbb3dfcee318c6b5729003de319a0ef31c0487f63a4657f50
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 22, 2025.

Transparency log

Release files / betsy_ros-0.2.1-py3-none-any.whl

Download URL betsy_ros-0.2.1-py3-none-any.whl
Size 8.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5ee3639b946da1ac2ae1b665316ab681d8505adc4e84849c5a17c8cd23699158
BLAKE2b-256 checksum
How to use checksums
010e586ac7c2d5cfc80c60d4a277dcfabdb83cd815debe3c729a3e7ccdb89f8d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 22, 2025.

Transparency log

Security for betsy-ros 0.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for betsy_ros-0.2.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 22, 2025.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page