Skip to main content

Slydes

Why not show your presentations with Python?

codecov CircleCI

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 ❤️

Metadata

Release files for slydes 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for slydes 0.0.3
File Size Uploaded Provenance Actions
slydes-0.0.3.tar.gz 3.3 kB Without provenance Details for slydes-0.0.3.tar.gz

Release files / slydes-0.0.3.tar.gz

Download URL slydes-0.0.3.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
ce59c2339898b860830bedecf02abb4dde54ae5f627fb0a0089facf40dfa1e45
BLAKE2b-256 checksum
How to use checksums
dd67e8c56442b366537e1b0651f7f275b32fa7916636b3d1bacfc7e9694a55fe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for slydes 0.0.3

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.

Release history Release notifications | RSS feed

This release

0.0.3 This release

1 release file No provenance

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