Fastdeck
Fastdeck is a Python library for creating and managing slide decks.
Fastdeck Python library is maintained to support the app ⚡️Fastdeck AI.
Create and share minimal slides in seconds, on the go.
Installation
You can install FastDeck using pip:
pip install fastdeck
Usage
Here's a basic overview of how to use FastDeck:
- Import the necessary classes:
from fastdeck import Presentation, Slide, Content
- Create a presentation:
presentation = Presentation()
- Create slides and add content:
slide = Slide()
content = Content()
content.add_heading("Welcome to FastDeck")
content.add_text("This is a simple demonstration of FastDeck capabilities.")
slide.add_content([content.render()])
- Add the slide to the presentation:
presentation.add_slide(slide)
- Generate and save the HTML:
presentation.save_html("my_presentation.html")
Example
Here's a more comprehensive example that demonstrates various features of FastDeck:
from fastdeck import Presentation, Slide, Content
import plotly.express as px
# Create a new presentation
presentation = Presentation()
# Create the title slide
title_slide = Slide(center=True)
title_content = Content()
title_content.add_heading("FastDeck Demo", tag="h1")
title_content.add_text("A powerful library for creating slide decks")
title_slide.add_content([title_content.render()])
presentation.add_slide(title_slide)
title_slide.save_slide_html('title_slide.html') # Save individual slide
# Create a content slide
content_slide = Slide()
content = Content()
content.add_heading("Features of FastDeck")
content.add_list([
"Easy to use Python API",
"Support for various content types",
"Customizable styles",
"Export to HTML"
])
content_slide.add_content([content.render()])
presentation.add_slide(content_slide)
content_slide.save_slide_html('content_slide.html') # Save individual slide
# Create a slide with a Plotly graph
plotly_slide = Slide()
plotly_content = Content()
plotly_content.add_heading("Plotly Graph")
df = px.data.iris()
fig = px.scatter(df, x='sepal_width', y='sepal_length', color='species', size='petal_length', hover_data=['petal_width'])
fig.update_layout(autosize=True)
json_fig = fig.to_json()
plotly_slide.add_content([json_fig], columns=[12], styles=[{'class': 'stretch'}])
presentation.add_slide(plotly_slide)
plotly_slide.save_slide_html('plotly_slide.html') # Save individual slide
# Save the entire presentation
presentation.save_html("fastdeck_demo.html")
This example creates a presentation with three slides:
- A title slide
- A content slide with a list of features
- A slide with a Plotly graph
After running this script, you'll have an HTML file named fastdeck_demo.html that you can open in a web browser to view your presentation.
Documentation
For more detailed information about FastDeck's classes and methods, please refer to the documentation.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This project is licensed under the MIT License.
Acknowledgements
- Reveal.js
- This python package is inspired by the respysive-slide wrapper.
Metadata
Release files for fastdeck 0.1.0
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 |
|---|---|---|---|---|
| fastdeck-0.1.0.tar.gz | 13.2 kB | Without provenance | Details for fastdeck-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fastdeck-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for fastdeck-0.1.0-py3-none-any.whl |
Total release size: 26.5 kB
Release files / fastdeck-0.1.0.tar.gz
| Download URL | fastdeck-0.1.0.tar.gz |
|---|---|
| Size | 13.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
433660c3f833fe9efe5a0cf25877f571121fa23b9f9be2c2d1f98dc7444c40da
|
|
BLAKE2b-256 checksum How to use checksums |
15f4b1ae3048669bdcf00d8ea2c68714ad13cd07e13a344bcae91242d1419dae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.4
|
Release files / fastdeck-0.1.0-py3-none-any.whl
| Download URL | fastdeck-0.1.0-py3-none-any.whl |
|---|---|
| Size | 13.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
97c585666b4c96a6e78ad35565750bf3b17e71d4eaa3dbf352c088698b4f910c
|
|
BLAKE2b-256 checksum How to use checksums |
0af1711fb27b65461ccaa306221b0b198a3c0bb59655b6aa7a2e7232f023546e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.4
|
Security for fastdeck 0.1.0
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.