Skip to main content

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

![diagram](diagram.png)

Image paragraphs (![alt](path)) are rendered as images. Relative paths are resolved from the slide file's directory.

Supported formats: png, jpg, jpeg, gif, webp, bmp.

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

termdeck-0.2.0.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

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

termdeck-0.2.0-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file termdeck-0.2.0.tar.gz.

File metadata

  • Download URL: termdeck-0.2.0.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.11.2

File hashes

Hashes for termdeck-0.2.0.tar.gz
Algorithm Hash digest
SHA256 b00dec6c87a4cc60986d7c56e96e3d227f6176a53260e145171e6b076f7ccef9
MD5 0adce2776bb03562550b922656d22d67
BLAKE2b-256 a51b40d4134edf80e45d6d92f891d38519704eb2120b14ca4b366542dbf2bab4

See more details on using hashes here.

File details

Details for the file termdeck-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: termdeck-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 7.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.11.2

File hashes

Hashes for termdeck-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 19b94b89c5a2ecc5bcd302eb9b4936475a98cc93d02472c08b9ed8e8d7712661
MD5 7c1c0fa3ca2d16ef235bcfc7836b2e35
BLAKE2b-256 0c0a853c2733537725e8f3d641b35b17fbb5a2bb002c5c78d5fecd4bc8df2c95

See more details on using hashes here.

Release history Release notifications | RSS feed

0.2.1

2 files

This release

0.2.0 This release

2 files

0.1.1

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page