A simple Python oscilloscope for displaying 1-dim dynamic data in the command line
Project description
TerminalScope
A very simple Python oscilloscope for displaying 1-dim dynamic data in the command line.
- Easy to integrate (no third-party libraries required)
- Support for multiple variables with different colors and symbols
- Lightweight and cross-platform compatibility (Windows, macOS, Linux, etc.)
- Typical use cases:
- Accessing your Raspberry Pi via SSH and wanting to display sensor data in real-time
- Debugging your motor PID controller and needing a simple graphical user interface
Installation
Requirements
- Python 3.7+
- No external dependencies
- Compatible with any terminal that supports ANSI color codes
From PyPI
pip install tscope
From Source
git clone https://github.com/sszxc/TerminalScope.git
cd TerminalScope
pip install -e .
Quick Start
import math
import time
from tscope import TerminalScope
# Create a scope with 3 variables
scope = TerminalScope(["sin(x)", "cos(x)", "ramp"], data_range=(-2, 2))
# Plot data
for i in range(100):
x = i * 0.1
scope.plot([math.sin(x), math.cos(x), x % 2 - 1])
time.sleep(0.1)
License
This project is licensed under the MIT License - see the LICENSE file for details.
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
tscope-0.1.3.tar.gz
(276.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
tscope-0.1.3-py3-none-any.whl
(12.4 kB
view details)
File details
Details for the file tscope-0.1.3.tar.gz.
File metadata
- Download URL: tscope-0.1.3.tar.gz
- Upload date:
- Size: 276.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
467a4ba0ec31b1576b272249bb3eec4ad9017d209c8c426693c32627f311121e
|
|
| MD5 |
22eff5fa3eff7f2498714db8d00fbd8d
|
|
| BLAKE2b-256 |
8733942009c6b82c09e8506e87514749dab880fb7ef8fbb276e8fa8306ad88f9
|
File details
Details for the file tscope-0.1.3-py3-none-any.whl.
File metadata
- Download URL: tscope-0.1.3-py3-none-any.whl
- Upload date:
- Size: 12.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
67b25b58efa95306d1d1ef82291266d54652d5657ea8fc70be7d7f4081c161e8
|
|
| MD5 |
2f412f5a039b169397ba8504b3e04475
|
|
| BLAKE2b-256 |
bb35dd9fb2d3e901099eb5414a549ccb298db842ad970909b51048983fdf1f46
|