You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Go to file
pre-commit-ci[bot] 84e6801a64
[pre-commit.ci] pre-commit autoupdate (#281)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
5 days ago
.github Bump docker/setup-buildx-action from 2.7.0 to 3.0.0 (#251) 6 months ago
docker Various infrastructure updates (#168) 1 year ago
docs [pre-commit.ci] pre-commit autoupdate (#240) 7 months ago
spiel [pre-commit.ci] pre-commit autoupdate (#267) 3 months ago
tests [pre-commit.ci] pre-commit autoupdate (#240) 7 months ago
.coveragerc Slide Transitions (#207) 1 year ago
.dockerignore make a Docker image and publish to GHCR (#15) 3 years ago
.gitignore Optimizations for `Image` and `Plot` (#37) 3 years ago
.pre-commit-config.yaml [pre-commit.ci] pre-commit autoupdate (#281) 5 days ago
LICENSE Initial commit 3 years ago
README.md Document slide content rendering and triggers (#188) 1 year ago
codecov.yml Set up infrastructure (#1) 3 years ago
mkdocs.yml [pre-commit.ci] pre-commit autoupdate (#240) 7 months ago
poetry.lock Bump aiohttp from 3.9.2 to 3.9.4 (#280) 1 week ago
pyproject.toml Switch to Ruff (#226) 12 months ago
synthfile Slide Transitions (#207) 1 year ago

README.md

Spiel

PyPI PyPI - License Docs

pre-commit.ci status codecov Code style: black

GitHub issues GitHub pull requests

Spiel is a framework for building and presenting richly-styled presentations in your terminal using Python.

To see what Spiel can do without installing it, you can view the demonstration deck in a container:

$ docker run -it --rm ghcr.io/joshkarpel/spiel

Alternatively, install Spiel (pip install spiel) and run this command to view the demonstration deck:

$ spiel demo present

The first slide of the demo deck The demo deck in "deck view"

Quick Start

If you want to jump right in, install Spiel (pip install spiel), create a file called deck.py, and copy this code into it:

from rich.console import RenderableType

from spiel import Deck, present

deck = Deck(name="Your Deck Name")


@deck.slide(title="Slide 1 Title")
def slide_1() -> RenderableType:
    return "Your content here!"


if __name__ == "__main__":
    present(__file__)

That is the most basic Spiel presentation you can make. To present the deck, run python deck.py. You should see:

Barebones slide

Check out the Quick Start tutorial to continue!

Documentation

To learn more about Spiel, take a look at the documentation.

Contributing

If you're interested in contributing to Spiel, check out the Contributing Guide.