ts-topy
A monitoring tool for Teraslice distributed computing clusters, built on Python with Textual.
Overview
This is a rewrite of teraslice-top in Python, designed to provide better scalability and UX for monitoring Teraslice clusters with many jobs.
Installation
# Install using uv (recommended for CLI tools)
uv tool install ts-topy
# Or from PyPI
pip install ts-topy
# Or using pipx
pipx install ts-topy
Usage
# Select from or add cluster to ~/.teraslice/aliases.yaml
ts-topy
# Specify custom URL
ts-topy https://teraslice.example.com:8000
# Set refresh interval (default: 5s)
ts-topy http://localhost:5678 --interval 5
ts-topy http://localhost:5678 -i 5
# Set request timeout (default: 10s)
ts-topy http://localhost:5678 --request-timeout 30
# All options
ts-topy https://teraslice.example.com:8000 -i 5 --request-timeout 30
Features
- Real-time monitoring of Teraslice cluster state
- Three-pane display showing:
- Execution Contexts
- Controllers
- Jobs
- Global search/filter across all data
- Auto-refresh with configurable intervals
- Terminal UI built with Textual
Technology Stack
- Python 3.10+
- uv - Python project and package manager
- Textual - Terminal UI framework
- httpx - Async HTTP client
- Pydantic - Data validation and models
- Typer - CLI interface
Development
# Install dependencies
uv sync
# Run the application
uv run ts-topy
Mock Server
For development and testing without a real Teraslice cluster, you can use the built-in mock server:
# Install mock server dependencies
uv sync --extra mock
# Start the mock server
uv run ts-topy mock-server
# In another terminal, monitor the mock server
uv run ts-topy http://localhost:5678
See MOCK_SERVER.md for detailed documentation on the mock server, including all available endpoints, options, and mock data characteristics.
Releasing
This project uses GitHub Actions for automated releases to PyPI. To create a new release:
-
Bump the version using the bump script:
# For a patch release (bug fixes) uv run scripts/bump_version.py patch # For a minor release (new features) uv run scripts/bump_version.py minor # For a major release (breaking changes) uv run scripts/bump_version.py major # Or set a specific version uv run scripts/bump_version.py --set 1.2.3
-
Review and commit the changes:
git diff # Review the version change git add pyproject.toml git commit -m "Bump version to X.Y.Z"
-
Create and push a git tag:
git tag vX.Y.Z git push origin main --tags
-
GitHub Actions will automatically:
- Build the package
- Create a GitHub release
- Publish to PyPI
-
Verify the release:
- Check the GitHub releases page
- Verify on PyPI
Manual Release (if needed)
If you need to build and publish manually:
# Build the package
uv build
# Publish to PyPI (requires PyPI credentials)
uv publish
License
MIT
Metadata
Release files for ts-topy 0.5.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ts_topy-0.5.1.tar.gz | 55.2 kB | With provenance | Details for ts_topy-0.5.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ts_topy-0.5.1-py3-none-any.whl | Python 3 | none | any | Details for ts_topy-0.5.1-py3-none-any.whl |
Total release size: 81.9 kB
Release files / ts_topy-0.5.1.tar.gz
| Download URL | ts_topy-0.5.1.tar.gz |
|---|---|
| Size | 55.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a08f440c33052252b1e9ffa65682b788fc503b2bb11faf551d1cebb9decee005
|
|
BLAKE2b-256 checksum How to use checksums |
2a3191db690b2371dbece3f585c5330310895a6ea0c696b635cd38ab84562fd3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 18, 2026.
Transparency logRelease files / ts_topy-0.5.1-py3-none-any.whl
| Download URL | ts_topy-0.5.1-py3-none-any.whl |
|---|---|
| Size | 26.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f312afe9a6819318b6f55b94d064c08bce1973aba422591d1887cbf4ad2ecdd1
|
|
BLAKE2b-256 checksum How to use checksums |
4ff7a090271d837066ede6b007f7b54f88c3b974f49c2858ecbb31fac8658a2c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 18, 2026.
Transparency logSecurity for ts-topy 0.5.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for ts_topy-0.5.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 18, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.