Kryten Shell
Interactive TUI shell for inspecting and controlling the Kryten ecosystem.
Features
- Live Monitoring: Watch events, chat, and playlist changes in real-time
- Interactive Commands: Send messages, manage playlist, query state with natural syntax
- KV Store Inspector: Browse and inspect NATS KV store contents
- Event Streaming: View all Kryten ecosystem events with filtering
- Solarized Dark Theme: Easy on the eyes for extended sessions
- Command History: Persistent history across sessions with up/down navigation
- Tab Completion: Autocomplete commands as you type
Installation
cd kryten-shell
poetry install
Usage
# Start with defaults (localhost:4222)
poetry run kryten-shell
# Or use the short alias
poetry run ksh
# Connect to specific NATS server
poetry run kryten-shell --host 192.168.1.10 --port 4222
# Join a channel on startup
poetry run kryten-shell --channel cyberia
Keyboard Shortcuts
| Key | Action |
|---|---|
F1 |
Show help |
F2 |
Switch to Chat tab |
F3 |
Switch to Playlist tab |
F4 |
Switch to Events tab |
F5 |
Switch to KV Store tab |
Ctrl+R |
Refresh current view |
Ctrl+L |
Clear current log |
Ctrl+Q |
Quit |
Escape |
Focus command input |
↑/↓ |
Navigate command history |
Tab |
Autocomplete command |
Commands
Connection
connect- Connect to NATS serverdisconnect- Disconnect from serverchannel [name]- Join channel or show currentdiscover- Discover available channels
Chat
msg <message>- Send a chat message
Playlist
playlist- Show playlistnowplaying- Show current videoskip- Skip current video
KV Store
kv buckets- List KV bucketskv get <bucket> <key>- Get a valuekv keys <bucket>- List keys in bucket
Utility
help [command]- Show helpclear- Clear current viewrefresh- Refresh current viewfilter [pattern]- Filter events by typestatus- Show connection statusquit- Exit shell
Configuration
Configuration is stored in the platform-specific config directory:
- Windows:
%APPDATA%\kryten\kryten-shell\config.json - Linux:
~/.config/kryten-shell/config.json - macOS:
~/Library/Application Support/kryten-shell/config.json
Example config:
{
"nats": {
"host": "localhost",
"port": 4222
},
"channel": "cyberia",
"show_timestamps": true,
"max_chat_lines": 500,
"max_event_lines": 1000
}
Development
# Install with dev dependencies
poetry install --with dev
# Run with textual dev tools
poetry run textual run kryten_shell.app:KrytenShellApp
# Run tests
poetry run pytest
# Type checking
poetry run mypy kryten_shell
# Linting
poetry run ruff check kryten_shell
License
MIT
Metadata
Release files for kryten-shell 0.1.4
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 |
|---|---|---|---|---|
| kryten_shell-0.1.4.tar.gz | 45.5 kB | Without provenance | Details for kryten_shell-0.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| kryten_shell-0.1.4-py3-none-any.whl | Python 3 | none | any | Details for kryten_shell-0.1.4-py3-none-any.whl |
Total release size: 99.7 kB
Release files / kryten_shell-0.1.4.tar.gz
| Download URL | kryten_shell-0.1.4.tar.gz |
|---|---|
| Size | 45.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6623eb0db94eb1c166c5b27fab7d62057813004fde144ed1456079522714c4dd
|
|
BLAKE2b-256 checksum How to use checksums |
4a4977db50a64072d60c8ae7cf75d3de8e82d90e592209e98c9c48eba1b05a11
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.2.1 CPython/3.12.11 Windows/11
|
Release files / kryten_shell-0.1.4-py3-none-any.whl
| Download URL | kryten_shell-0.1.4-py3-none-any.whl |
|---|---|
| Size | 54.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ebe531cad1e1d46e565b47259ec441da6d8865567acf9ec4ff54cfc8a8a621a9
|
|
BLAKE2b-256 checksum How to use checksums |
a1d419897b9bcebdc9a99ff2f8fc0ec754f9857fb77946fa4eb114c374dc0267
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.2.1 CPython/3.12.11 Windows/11
|
Security for kryten-shell 0.1.4
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.