Skip to main content

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

screenshot

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.4.tar.gz (276.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tscope-0.1.4-py3-none-any.whl (12.6 kB view details)

Uploaded Python 3

File details

Details for the file tscope-0.1.4.tar.gz.

File metadata

  • Download URL: tscope-0.1.4.tar.gz
  • Upload date:
  • Size: 276.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for tscope-0.1.4.tar.gz
Algorithm Hash digest
SHA256 5fdd62b2b2e43c1ce771681d4c902f30513985106455c4b682eefb77f0251fd9
MD5 b33e98357c4cf55894d13e75289b5c6e
BLAKE2b-256 ff98d358844a6a0f7d871caac4340a8b130f3cf54c5384b83a365d5daf76f0ea

See more details on using hashes here.

File details

Details for the file tscope-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: tscope-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 12.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for tscope-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 f53ab906318ad11dd7ed5f415c193662d48b885a9e2a8bfcbbf9456168334a92
MD5 e17ea7aa6db189777a7111bca53cc01c
BLAKE2b-256 4855bef1c9063b57c1ef6a6a7672066251fc9397488ddab33461b030959667df

See more details on using hashes here.

Supported by

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