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

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.1.1.tar.gz (4.9 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.1.1-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for termdeck-0.1.1.tar.gz
Algorithm Hash digest
SHA256 26195900884670ab6d3607c79f090ab67cf9fd70334bfca7a6b1e4e7d54eed22
MD5 79aaf529272b281a1aa316224925124b
BLAKE2b-256 c1334644be17b69d3188ad2458fe68c53f159d5e7dcba4953656758b233e3ff5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: termdeck-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.8 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.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3947148662543f21b7bc5ebb5835e3ba7c2c24c2f1de6f4133038b63074d6e82
MD5 a55dbf59797db16e76d42daafbbb174e
BLAKE2b-256 e4757b0edf88f32cf2650efe502e0efe12621e73de0de62e8617cbfdedff5489

See more details on using hashes here.

Release history Release notifications | RSS feed

0.2.1

2 files

0.2.0

2 files

This release

0.1.1 This release

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