TermDeck
Terminal presentations, written in Markdown or Python. Built on Textual.
Each file in a deck folder is one slide. Navigate with the arrow keys.
Install
pip install termdeck
Optional extras:
pip install "termdeck[music]" # interactive music-pad slides
Usage
termdeck # play the bundled sample deck
termdeck ./my-deck # play your own deck
python -m termdeck # same thing
Navigate with ← / → arrow keys; quit with Ctrl+C.
Writing a deck
A deck is a folder of slide files. Files are sorted by name.
Markdown slides
# My title
- a bullet
- another bullet
Python slides
A Python slide is a Textual Screen. It must expose a Slide class:
from textual.app import ComposeResult
from textual.screen import Screen
from textual.widgets import Button
class Slide(Screen):
def compose(self) -> ComposeResult:
yield Button("Hello")
The screen's widgets are styled by styles/default.tcss, which you can override in
your deck if you want. All Textual functionality is available for rich,
interactive slides.
Development
pip install -e ".[dev]"
python test.py
python -m build
License
MIT
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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
File details
Details for the file termdeck-0.1.0.tar.gz.
File metadata
- Download URL: termdeck-0.1.0.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5317ee2a57e132ed1faa000f908f3c1c1ff89956918693fb4944073fbea00383
|
|
| MD5 |
f01e21a727b023df51f1d3975cbb7bff
|
|
| BLAKE2b-256 |
72c0d5bd4b9dc666191e161d40995d1536d414813ae7b16c9ded11e09758ae9d
|
File details
Details for the file termdeck-0.1.0-py3-none-any.whl.
File metadata
- Download URL: termdeck-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
10148919284bb02e9d27e41ae77d04e98974af6eaad21be011464d46fed11e37
|
|
| MD5 |
1754e34d2900f85a3b9e937668b3aee6
|
|
| BLAKE2b-256 |
e3e8bdc8151e65c0489f62d03fa06bd27b28571746e029c0faf7b7c50aa2d9a4
|