Ultra simple command line serial client.
Project description
nanocom
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file nanocom-2.0.1.tar.gz
.
File metadata
- Download URL: nanocom-2.0.1.tar.gz
- Upload date:
- Size: 4.8 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4fb2641cc493bdbfc067c5a17d4b6b65008725d30fdcb52306cbf714904c73a0 |
|
MD5 | e1ad9270da5924d187f851d17416400f |
|
BLAKE2b-256 | bf12a9e6229e6358fb2f0a4e61be5cf0bf5898729850ebd65cebba7b9a306efd |
File details
Details for the file nanocom-2.0.1-py3-none-any.whl
.
File metadata
- Download URL: nanocom-2.0.1-py3-none-any.whl
- Upload date:
- Size: 5.6 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 74fc361eed3f63c120daf873fd174e8685684f6a46329a979f37e3dfc5ab0e69 |
|
MD5 | 745fe26111cb870499e4ac384df68715 |
|
BLAKE2b-256 | fa347f08b84e2ad3028eefd3182a0eddd8e16b9251d06017622d7bfd9d17a36b |