Why not show your presentations with Python?
Project description
Slydes
Why not show your presentations with Python?
Installing
$ pip install slydes
Create a presentation
$ cat presentation.py
from slydes import Presentation, Template
talk = Presentation()
template = Template()
@talk.add_slide
def first_slide():
title = 'This is the title!'
msg = '''
Hello world!
My name is PySlides!
'''
return template.default(title, msg)
@talk.add_slide
def second_slide():
title = 'The second slide!'
msg = '''
* Bullet points!
* why
* not?
'''
return template.default(title, msg)
Run it
$ ipython
from presentation import talk
talk.next()
--------------------------------------------------------------------------------
# #
# #
# This is the title! #
# #
# #
# Hello world! #
# My name is PySlides! #
# #
# #
# #
# #
# #
# #
# #
# #
# #
# #
# #
--------------------------------------------------------------------------------
Presentation Mode
Now you can navigate the presentation using the arrow keys! To exit, just type CTRL+C
.
talk.present()
Complete API
# Move to next slide
talk.next()
# or
talk()
# Move to previous slide
talk.previous()
# Shows current slide
talk.current()
Important (or not!)
The library is suuuuuuuper alpha, at the point that we could change everything!
If you have any ideas, please drop an issue ❤️
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
slydes-0.0.3.tar.gz
(3.3 kB
view details)
File details
Details for the file slydes-0.0.3.tar.gz
.
File metadata
- Download URL: slydes-0.0.3.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce59c2339898b860830bedecf02abb4dde54ae5f627fb0a0089facf40dfa1e45 |
|
MD5 | f20d83caca28f0bf94d000ce3c89745f |
|
BLAKE2b-256 | dd67e8c56442b366537e1b0651f7f275b32fa7916636b3d1bacfc7e9694a55fe |