Skip to main content

pycan-send

PyPI - Version PyPI - Python Version


Table of Contents

Installation

pip install pycan-send

Usage

pycan-send path/to/file.kcd can0 -m MessageName -s SignalName Value
pycan-send path/to/file.yaml can0 -m MessageName -s SignalName Value

The database is loaded through can-db-model, so it can be a KCD file (.kcd) or a can-db-model YAML file (.yaml/.yml). Value can be numeric or, for signals that define labels in the database, the label name itself (e.g. -s Mode Active).

Verifying received signals

pycan-verify decodes incoming traffic and asserts that a single signal on the first matching frame satisfies a constraint. It returns 0 on a successful check and a distinct non-zero exit code for each failure mode:

Code Meaning
0 pass
3 timeout
4 value below bound
5 value above bound
1 bus / decode error
2 CLI usage error
pycan-verify path/to/file.kcd can0 -m Status -s Voltage --range 380 420
pycan-verify path/to/file.kcd can0 -m Status -s Mode --equal Active
pycan-verify path/to/file.kcd can0 -m Status -s Voltage --above 0 --timeout 0.5

--above and --below are inclusive. Exactly one of --equal, --range, --above, --below must be given. --prefix works the same as for pycan-send and is OR-ed with the message ID before matching.

Fish tab completion

One-shot (current shell only):

_PYCAN_SEND_COMPLETE=fish_source pycan-send | source

Persistent:

_PYCAN_SEND_COMPLETE=fish_source pycan-send > ~/.config/fish/completions/pycan-send.fish

Once enabled, tab completion works for database files (.kcd, .yaml, .yml), message names (-m <TAB> after the database path), signal names, and labels — all pulled live from the database given on the command line.

License

pycan-send is distributed under the terms of the MIT license.

Metadata

Release files for pycan-send 0.1.0

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

Source distribution (sdist)

Source distribution for pycan-send 0.1.0
File Size Uploaded Provenance Actions
pycan_send-0.1.0.tar.gz 81.3 kB Without provenance Details for pycan_send-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pycan-send 0.1.0
File Interpreter ABI Platform Actions
pycan_send-0.1.0-py3-none-any.whl Python 3 none any Details for pycan_send-0.1.0-py3-none-any.whl

Total release size: 91.2 kB

Release files / pycan_send-0.1.0.tar.gz

Download URL pycan_send-0.1.0.tar.gz
Size 81.3 kB
Tags Source
SHA-256 checksum
How to use checksums
506f7a4d442e6862915bdc0ea367decdda9dac5988d369a456c1b014c2f7e7e0
BLAKE2b-256 checksum
How to use checksums
744378f7cb4459eed794467668a441413e3e848d0d993ff461e2e302cac9f870
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Fedora Linux","version":"44","id":"","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / pycan_send-0.1.0-py3-none-any.whl

Download URL pycan_send-0.1.0-py3-none-any.whl
Size 9.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b7fad7b41c32e2a3d4fcffca2e9f7e0d1de8717a2007253889c59743ab36a310
BLAKE2b-256 checksum
How to use checksums
abd352c76538b4ee65b186f5942ac266fedc000b6da4c8915c67a06b84b607c2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Fedora Linux","version":"44","id":"","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for pycan-send 0.1.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.1.0 This release

2 release files No 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