Metadata-Version: 2.4
Name: pycan-send
Version: 0.0.1
Summary: Command line tool that quickly lets you send a can frame using the message and signal names encoded in a KCD
Project-URL: Documentation, https://sr.ht/~laplace/pycan-send#readme
Project-URL: Issues, https://sr.ht/~laplace/pycan-send/issues
Project-URL: Source, https://sr.ht/~laplace/pycan-send
Author-email: Alexander Becker <nabla.becker@mailbox.org>
License-Expression: GPL-3.0-or-later
License-File: LICENSE.txt
Classifier: Development Status :: 4 - Beta
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Requires-Python: >=3.8
Requires-Dist: cantools
Requires-Dist: click
Description-Content-Type: text/markdown

# pycan-send

[![PyPI - Version](https://img.shields.io/pypi/v/pycan-send.svg)](https://pypi.org/project/pycan-send)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/pycan-send.svg)](https://pypi.org/project/pycan-send)

-----

## Table of Contents

- [Installation](#installation)
- [License](#license)

## Installation

```console
pip install pycan-send
```

## Usage

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

`Value` can be numeric or, for signals that define labeled choices in the
KCD, the label name itself (e.g. `-s Mode Active`).

## Fish tab completion

One-shot (current shell only):

```fish
_PYCAN_SEND_COMPLETE=fish_source pycan-send | source
```

Persistent:

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

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

## License

`pycan-send` is distributed under the terms of the [MIT](https://spdx.org/licenses/MIT.html) license.
