Skip to main content

Presentation Console: prescons.py

This is a “pseudo-interactive” python console for giving presentations that involve some live coding. It reads code from an input file and runs it line by line. You can move through the code by hitting the space bar.

You can also switch to (and from) a normal interactive console by pressing Ctrl-C. This allows you to inspect, and even make changes to, the console’s environment in the middle of a presentation.

There is a video of it in action, for my Europython talk on the descriptor protocol, at youtube.com/watch?v=D3-NZXHO5QI. The input file can be found at github.com/inglesp/Discovering-Descriptors/blob/master/descriptors.py.

Suggestions, bug reports, patches welcome at github.com/inglesp/prescons.

Usage:

$ python prescons.py <filename>

Alternatively, install the library from PyPI (eg with $ pip install prescons) and then run:

$ python -m prescons <filename>

Tested on Posix and Windows, and with pythons 2.7 and 3.2+

Thanks to Asim Ihsan (github.com/asimihsan) and Tom Close (github.com/TomClose) for testing and ideas.

Metadata

Release files for prescons 0.2.1

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

Source distribution (sdist)

Source distribution for prescons 0.2.1
File Size Uploaded Provenance Actions
prescons-0.2.1.tar.gz 2.6 kB Without provenance Details for prescons-0.2.1.tar.gz

Release files / prescons-0.2.1.tar.gz

Download URL prescons-0.2.1.tar.gz
Size 2.6 kB
Tags Source
SHA-256 checksum
How to use checksums
a2aac5c7a04eb42fd7fd676682be9a319d1722c9f4a22862e6e2e2421ec532d6
BLAKE2b-256 checksum
How to use checksums
76b17bbb41a117377c0e1ba0fdebd9d0efde3873fc80bddc56eb77494069c863
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for prescons 0.2.1

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.2.1 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