Script your slides in YAML file and show it in terminal.
Project description
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
Project details
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 termslides-1.10.tar.gz.
File metadata
- Download URL: termslides-1.10.tar.gz
- Upload date:
- Size: 7.9 MB
- Tags: Source
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dc54cc9f8b8bbe696f74f62ee9de82d1e44dc7aa91e885ce54fae8ddd9580b0b
|
|
| MD5 |
4248fc0c14184cc72698526b8bbfa54a
|
|
| BLAKE2b-256 |
0e502c98dcfeb9e1dfde7b873cfc7e76a057e908736161855905d048d149cea7
|
File details
Details for the file termslides-1.10-py3-none-any.whl.
File metadata
- Download URL: termslides-1.10-py3-none-any.whl
- Upload date:
- Size: 7.9 MB
- Tags: Python 3
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
82d0894fd6d4e9e88a44e434925e1962d68cb1e40f08f48e4c075a0e8710664a
|
|
| MD5 |
5426603335b828ba778558c3f7884396
|
|
| BLAKE2b-256 |
3f237b689be584abd57706dee4b0bbbc8b7ea6f76e04d32ac3de4c80e76d87af
|