https://github.com/rossmacarthur/nanocom
:computer: An ultra simple command line serial client
https://github.com/rossmacarthur/nanocom
pyserial python python2 python3 serial
Last synced: 12 months ago
JSON representation
:computer: An ultra simple command line serial client
- Host: GitHub
- URL: https://github.com/rossmacarthur/nanocom
- Owner: rossmacarthur
- License: mit
- Created: 2017-08-24T13:22:48.000Z (over 8 years ago)
- Default Branch: trunk
- Last Pushed: 2023-06-11T15:36:30.000Z (almost 3 years ago)
- Last Synced: 2025-04-13T16:08:40.411Z (12 months ago)
- Topics: pyserial, python, python2, python3, serial
- Language: Python
- Homepage:
- Size: 24.4 KB
- Stars: 13
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# nanocom
[](https://pypi.org/project/nanocom/)

[](https://github.com/rossmacarthur/nanocom/actions?query=workflow%3Abuild)
[](https://github.com/psf/black)
An ultra simple command line serial client.
## Getting started
Install it using
```sh
pip install nanocom
```
and connect to your serial port using
```sh
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](LICENSE) or
http://opensource.org/licenses/MIT).