Skip to main content

spplot

This utility is a text mode implementation of what can be done in Arduino IDE when choosing Serial Plotter option, i.e. it plots the numbers received on the serial port in real time.

spemu

There's also a helper utility included, called spemu which is a serial port emulator. It's useful for testing when no real device is nearby.

Usage

Run spemu. The program will print file descriptor and PTY device path. You can write directly to the spemu stdin or open file descriptor with some script and write to it. The things you write will be outputted by the virtual COM port.

Installation

spplot

Install from PyPI:

python3 -m pip install spplot

Install locally:

python3 -m pip install . --upgrade

spemu

To compile it, just run make.

Requirements

spplot

  • Python 3 with f-strings
  • POSIX-compliant, color-supporting terminal
  • Font with Braille characters
  • Modules from requirements.txt

spemu

  • C compiler
  • UNIX-like system

Disclaimer: Work in Progress

This is a dirty draft of what I want it to be. I'll try to optimize it in my free time and add some colors to differentiate the plots. As for now, it is what it is.

The initial menu is made in TUI style but if you provide port and baudrate as CLI args, you won't see it.

Roadmap

  • colored lines for different subplots
  • total average / current buffer average and other stats
  • better error handling
  • buffer, display and calculation optimizations
  • proper handling of negative values
  • set y axis range option
  • plot on n-th readout option
  • command line args
  • dynamic resizing
  • human menu keymapping
  • make a python package
  • make a PyPI release

Metadata

Release files for spplot 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for spplot 0.0.2
File Size Uploaded
spplot-0.0.2.tar.gz 5.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for spplot 0.0.2
File Interpreter ABI Platform
spplot-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 11.9 kB

Release files / spplot-0.0.2.tar.gz

Download URL spplot-0.0.2.tar.gz
Size 5.9 kB
Tags Source
SHA-256 checksum
How to use checksums
fb46fb109631cb95884a54f2db65fca32b4065e920c8be3167d6d7a968b54bdb
BLAKE2b-256 checksum
How to use checksums
dd0473d7ac62e5b1c41f9ba744ec143cc3c782dd8d6647cd65526017a5e2e6d9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

Release files / spplot-0.0.2-py3-none-any.whl

Download URL spplot-0.0.2-py3-none-any.whl
Size 6.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
39e7fa8cc19a2545b971eb464ad5690fa95f81b0f8e3004938deb26a42b09d83
BLAKE2b-256 checksum
How to use checksums
300362b24e1689d816261023d79bc76c8d786ab65b8135d9293001613e971d2e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page