Skip to main content

Ultra simple command line serial client.

Project description

nanocom

PyPI PyPI: supported Python Build status Code style

An ultra simple command line serial client.

Getting started

Install it using

pip install nanocom

and connect to your serial port using

nanocom --port /dev/ttyUSB0 --baudrate 115200

Usage

Running nanocom --help will display all the cli options. The following options are available

-p, --port

The path to the serial port. On macOS it will be something like /dev/tty.usbserial and on Linux probably something like /dev/ttyUSB0. This option is required.

-b, --baudrate

The baudrate of the serial port. This is typically something like 9600 or 115200 but any integer is accepted. If not given, this option defaults to 115200.

-m, --map

A character map, key, value pair, such that when the key character is entered into the client the value string will be sent instead. The value string can be multiple characters and multiple character maps are allowed. An example would be if you wanted to send a carriage return and a new line when a new line character was given you would use --map "\n" "\r\n".

-c, --exit-char

The exit character where the Ctrl key and this character are used to exit the client. The character must be one of A to Z, [, \, ], or _. For example if you gave the option --exit-char \\ then the client would exit when you pressed Ctrl + \.

License

This project is licensed under the MIT license (LICENSE or http://opensource.org/licenses/MIT).

Project details


Download files

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

Source Distribution

nanocom-2.0.0.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

nanocom-2.0.0-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file nanocom-2.0.0.tar.gz.

File metadata

  • Download URL: nanocom-2.0.0.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for nanocom-2.0.0.tar.gz
Algorithm Hash digest
SHA256 03075751079da3e03b4007aa842327e9446dc3b9fcb9bb687ffa9e56705c4e9f
MD5 3d0bf5a1081d42a9e8d3bcc7c391cfa0
BLAKE2b-256 93e93f2a3fd64ba7afce339c5b618faf2efdab13bda4d371e34af5e318cfbede

See more details on using hashes here.

File details

Details for the file nanocom-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: nanocom-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

File hashes

Hashes for nanocom-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 54c79d72334314d0c502da05285f03d141f2f354bd214e0282d3e8ec27fb45b7
MD5 e53cb8d569cb2da2dd83425ac99385ee
BLAKE2b-256 d9fbd2d4ecd1adff4480e66b403d04c2f4e49ef1ebbcd58998dbc3d30ab17168

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page