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
sudo pip3 install betsy-ros
Functionality
Workspace
get_workspace_rootreturns aBuildTypeandpathlib.Pathindicating the type and location of the current workspace.BuildTypecan beCATKIN_MAKE,CATKIN_TOOLS, orCOLCON
get_ros_versionreturns anintandstrindicating the ROS version (1 or 2) and the distro short-name (e.g.lunar,bouncy)
Packages
get_package_name_from_pathreturns the name of the package that the initial path is in (including subfolders)get_package_namesreturns a set of strings of all the current package names, including the binary packages and the workspace packagesfind_packagereturns the path to a given packageis_binary_rosreturns True if the path passed to it is in the/opt/rosfolder
Interfaces
(i.e. messages, services and actions)
- The class
ROSInterfacehas three key attributes: - package
- type
- name
list_interfacesyieldsROSInterfaceinstances for all messages/services/actions in the environment.
Environment
(i.e. active topics, service providers and action servers)
get_topics,get_services, andget_actionsreturn the names of all active ROS resources- By default, it just returns the names.
- If
include_typesis set toTrue, the type will also be included as aROSInterface.
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)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| betsy_ros-0.2.1.tar.gz | 930.1 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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 logRelease 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 logSecurity 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.
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 logA 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.