TermSlides
Script your slides in YAML and show it in terminal.
Install
pip install termslides
Show Slides
termslides your_slides.yaml
Compose Slides
termslides parses YAML file input for slides, which is expected to contain key-value pairs.
Following is an example YAML file with one slide.
title: TermSlides Example
Diagram:
notes: This is an example
startAnimation: scroll
pageAnimation: stars
endAnimation: matrix
content:
- type: text
content: Hello world!
animation: typing
afterStart: true
colour: rainbow
y: 2
x: 2
At the top level, title is reserved keyword. Its value will be set as the title of current terminal window. The rest of key-value pairs are treated as slide name-content pairs.
The slide content is another set of key-value pairs. content key is compulsory and the following are optional:
notes: Notes for current slide which is shown in slides list mode.duration: The show time in frames before switching to next slide. The frame rate is 20 frames/second.startAnimation: Slide starting animation.scrollonly.endAnimation: Slide ending animation.scroll,matrix,shoot,droporwipe.pageAnimation: The animation between starting and ending.stars,snow,explosion,fireworksorrain.
The value of content is yet another set of key-value pairs. type and content are common compulsory keys.
Available types:
-
text: Text, the most common type.- Other compulsory attributes:
- None
- Optional attributes:
animation:typingormirage.afterStart: Set value totrueto start text animation after slide starting animation.colour:black,red,green,yellow,blue,magenta,cyan,white,rainboworcycle.cycledoesn't work withanimation.y: Default value is to put the text in the middle of y axis.x: Default value is to put the text in the middle of x axis.attr:bold,normal,reverseorunderlinebg: The background colour.black,red,green,yellow,blue,magenta,cyanorwhite.
- Other compulsory attributes:
-
figlet: pyfiglet- Other compulsory attributes:
font: Font examples
- Optional attributes:
animation:typing,mirageorfire.afterStart: Same astext.colour: Same astext.y: Same astext.x: Same astext.attr: Same astext.bg: Same astext.
- Other compulsory attributes:
-
uml: Sequence diagram by PlantUML- Other compulsory attributes:
- None
- Optional attributes:
animation: Same astext.afterStart: Same astext.colour: Same astext.y: Same astext.x: Same astext.attr: Same astext.bg: Same astext.
- Other compulsory attributes:
-
table: Table by python-tabulate- Other compulsory attributes:
- None
- Optional attributes:
hasHeader: Set value totrueto interpret the first row of data as table header.tablefmt: Table format.numalign: Number alignment.floatfmt: Number formating.animation: Same astext.afterStart: Same astext.colour: Same astext.y: Same astext.x: Same astext.attr: Same astext.bg: Same astext.
- Other compulsory attributes:
-
image: Grey scale ascii text image- Other compulsory attributes:
- None
- Optional attributes:
height: Target image heighty: Same astext.x: Same astext.
- Other compulsory attributes:
-
color-image: Block color image- Other compulsory attributes:
- None
- Optional attributes:
height: Target image heighty: Same astext.x: Same astext.
- Other compulsory attributes:
Key Binding
- Slides List Mode
- ↓: Next slide
- ↑: Previous slide
- Space: Play ending animation if any
- Enter: Switching to presentation mode
- q: Quit
- Presentation Mode
- →: Next slide
- ←: Previous slide
- Space: Play ending animation or next slide
- Enter or q: Switching to slides list mode
Example
Metadata
Release files for termslides 1.10
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 |
|---|---|---|---|---|
| termslides-1.10.tar.gz | 7.9 MB | Without provenance | Details for termslides-1.10.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| termslides-1.10-py3-none-any.whl | Python 3 | none | any | Details for termslides-1.10-py3-none-any.whl |
Total release size: 15.7 MB
Release files / termslides-1.10.tar.gz
| Download URL | termslides-1.10.tar.gz |
|---|---|
| Size | 7.9 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dc54cc9f8b8bbe696f74f62ee9de82d1e44dc7aa91e885ce54fae8ddd9580b0b
|
|
BLAKE2b-256 checksum How to use checksums |
0e502c98dcfeb9e1dfde7b873cfc7e76a057e908736161855905d048d149cea7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.6
|
Release files / termslides-1.10-py3-none-any.whl
| Download URL | termslides-1.10-py3-none-any.whl |
|---|---|
| Size | 7.9 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
82d0894fd6d4e9e88a44e434925e1962d68cb1e40f08f48e4c075a0e8710664a
|
|
BLAKE2b-256 checksum How to use checksums |
3f237b689be584abd57706dee4b0bbbc8b7ea6f76e04d32ac3de4c80e76d87af
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.6
|
Security for termslides 1.10
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.