Presenturpy - a python tool for terminal presentations
What is it?
A library, coded in 24 hours or so for a school project. Allows to place text blocks in 2D coordinates and make individual slides out of them. No pip dependencies btw
Why?
Because check this out:
terminal, default settings
Usage
Loading from file (file syntax ↡):
from presenturpy import Presentation
presentation = Presentation.load_from_file("path")
presentation.show()
Direct usage:
from presenturpy import Alignment, Presentation, SlideBuilder
slides = []
slides.append(
SlideBuilder() # (x, y), (0,0) is upper left
.add_text("Hello, world!", (Alignment.MIDDLE, Alignment.MIDDLE))
.set_duration(5) # seconds
.build()
)
slides.append(
SlideBuilder()
.add_text(
"Thanks for watching!", (Alignment.MIDDLE, Alignment.BOTTOM),
transition=True
)
.set_confirmation(True)
.build()
)
# If the final slide has a set duration, the slide will be shown until the time runs out.
presentation = Presentation(slides)
presentation.show()
File syntax
Example file:
[5[,0|.0] s|sec|seconds] # Duration, needs confirmation if none
```lu m;10[;0] # Pivot corner (the one you write coordinates for)
Example text # (lu|ld|ru|rd)
Because I have to explain # Side indentation - wraps every line in a number of spaces on each side
a bunch of stuff here # xpos;ypos - allows negative absolute values.
yeah # l|m|r for horizontal alignment, u|m|d for vertical
```+ # + allows word wrapping if you don't mind having 1 letter of the word on the next line sometimes
# If you do, try to adjust side indentation.
--- # Slide delimiter
# Next slide here
To-do (maybe)
- Refactoring (kinda)
- Even more refactoring
- Renaming corners
- Easy slide duplication
Metadata
Release files for presenturpy 0.0.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 |
|---|---|---|---|---|
| presenturpy-0.0.0.tar.gz | 2.0 MB | Without provenance | Details for presenturpy-0.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| presenturpy-0.0.0-py3-none-any.whl | Python 3 | none | any | Details for presenturpy-0.0.0-py3-none-any.whl |
Total release size: 2.0 MB
Release files / presenturpy-0.0.0.tar.gz
| Download URL | presenturpy-0.0.0.tar.gz |
|---|---|
| Size | 2.0 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9246fad31abbabb67c8bfe2112ba25ff228b90cacd413239c18eb06afb4fbcf9
|
|
BLAKE2b-256 checksum How to use checksums |
6f1f63a0d37bbe104a0b9e76f4904355690a39e6656e3d3a2bd89f4181f0a110
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.5
|
Release files / presenturpy-0.0.0-py3-none-any.whl
| Download URL | presenturpy-0.0.0-py3-none-any.whl |
|---|---|
| Size | 5.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7ebe59522fb81c10c5b3b6f7f55191c7767f9ecad6e7e83fbcb154ad078d9995
|
|
BLAKE2b-256 checksum How to use checksums |
74740d659ddbeb09509e8f429a7cfc5d0325c02be028fde65fef3ff847d328f3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.5
|
Security for presenturpy 0.0.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.