Skip to main content
A fairly generic tool that allows you to capture all of the output from
a terminal application (including shells). This output is then rendered in
a pure-python terminal emulator (pyte), and the resulting virtual "screen"
is dumped to either generic JSON or a generic HTML snippet that can then
be used to by other tools or inserted into a webpage.

There are issues with some complex curses applications that use certain
CSI control codes not (yet) supported by pyte. For example, htop will not
work.

This tool was designed specifically to turn zsh themes into a gallery.


Example:

echo "ls\\nexit\\n" > omt-py html -- /bin/zsh


Commands:
omt-py json - Generates a JSON representation of the screen.
omt-py html - Generates a generic HTML snippet or a standalone
page.
omt-py iterm-to-css - Converts an iTerm2 theme into CSS suitable for
usage with the HTML snippets generated by omt.

Usage:
omt-py json [options] -- <argv>...
omt-py html [options] -- <argv>...
omt-py iterm-to-css [--prefix=<prefix>] <source>

Options:
--width=<columns> The number of columns for the pseudo-terminal.
[default: 80]
--height=<lines> The number of lines for the pseudo-terminal.
[default: 24]
--standalone When generating HTML, generate a standalone page
instead of a generic snippet.
--theme=<source> When generating standalone HTML, use this iTerm2
theme for the CSS.
--prefix=<prefix> The prefix to use for CSS selectors.
[default: omt]

Metadata

Release files for omt 0.1.0

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

Source distribution (sdist)

Source distribution for omt 0.1.0
File Size Uploaded Provenance Actions
omt-0.1.0.tar.gz 4.3 kB Without provenance Details for omt-0.1.0.tar.gz

Release files / omt-0.1.0.tar.gz

Download URL omt-0.1.0.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
08b4a31e0a45e398ae1b5bfa35351199ef45e5e357a1ff8bdf0fa2650026e45a
BLAKE2b-256 checksum
How to use checksums
ec9af300505238deae2f2b96c8ebf5119b54758abbaff3dcc974915d9fc4f2ad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for omt 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.

Release history Release notifications | RSS feed

This release

0.1.0 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