Skip to main content

CLI for Zenoh

Project description

Zenoh CLI

A command line tool for interacting with a Zenoh session.

Typical use cases include:

  • Tests
  • Investigations
  • Probing
  • As part of a bash pipeline

zenoh-cli makes use of codecs for encoding and decoding to and from the wire payloads on the zenoh network bus. By default, zenoh-cli bundles the following codecs:

  • text
  • base64
  • JSON

A plugin system is in place to allow for easily extending the available codecs in zenoh-cli, see below.

Installation

pip install zenoh-cli

Usage

usage: zenoh [-h] [--mode {peer,client}] [--connect CONNECT] [--listen LISTEN] [--config CONFIG] [--log-level LOG_LEVEL] {info,network,scout,delete,put,subscribe,get} ...

Zenoh command-line client application

positional arguments:
  {info,network,scout,delete,put,subscribe,get}

options:
  -h, --help            show this help message and exit
  --mode {peer,client}
  --connect CONNECT     Endpoints to connect to. (default: None)
  --listen LISTEN       Endpoints to listen on. (default: None)
  --config CONFIG       A path to a configuration file. (default: None)
  --log-level LOG_LEVEL

Example output of zenoh network

network-example.svg

Extending with codecs for encoding/decoding values

zenoh-cli comes with a plugin system for easily extending it with custom encoders and decoders (codecs) for the data values. The plugin system makes use of the entrypoints provided by setuptools, see here for details. zenoh-cli gather plugins from two custom "groups":

  • zenoh_cli.codecs.encoders
  • zenoh_cli.codecs.decoders

For an example, see example_plugin

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

zenoh_cli-0.6.8-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

Details for the file zenoh_cli-0.6.8-py3-none-any.whl.

File metadata

  • Download URL: zenoh_cli-0.6.8-py3-none-any.whl
  • Upload date:
  • Size: 10.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for zenoh_cli-0.6.8-py3-none-any.whl
Algorithm Hash digest
SHA256 8f4288e848eb34d7db9f41c140000b3c6731584ac7618b0650552d961733dbcb
MD5 0ba35ab076c16522c49e1c3b6c1daa64
BLAKE2b-256 4966181caef0b1c227e6d2f57825e0d2cdcac22d2591d66c3aead79f80696346

See more details on using hashes here.

Provenance

The following attestation bundles were made for zenoh_cli-0.6.8-py3-none-any.whl:

Publisher: release.yml on RISE-Maritime/zenoh-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 Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page