Generate SVGs from any Python code, even in your documentation.
Project description
Termage
See the docs for some live examples.
Termage
allows you to generate up-to-date, reproducible and real screenshots of Python output while building your documentation. It uses PyTermGUI to create the SVGs, and pre-processes your markdown file into a codefences
format.
Installation
Termage
is best installed using pip
:
$ pip install mkdocs-termage-plugin
This installs the plugin, as well as PyTermGUI as a dependency. By this point you probably should already have mkdocs installed.
Setup
To use the plugin, you should first add it to your mkdocs.yml
plugin list:
plugins:
- termage
Latest release
0.6.0 - 2022-08-22
Additions
- Add support for inserting SVGs inline, without writing files
Refactors
- Unify the codeblock-formatting API under
execution.format_codeblock
- Rewrite & refactor most of the plugin to be more maintainable
- Refactor the Python API so that the
termage
function is called by the CLI, not the other way around.
Read the full changelog here.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file termage-0.6.0.tar.gz
.
File metadata
- Download URL: termage-0.6.0.tar.gz
- Upload date:
- Size: 3.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.22.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a7d11c22002d0cf4f53df41527b685e5529c8c6757a05cab9ed9df17808dc8e |
|
MD5 | 279942d0182ec240178cd452d4a71e03 |
|
BLAKE2b-256 | b8521603d31f9a837e5bd6759dcb1c8037a8b6eeb5146221b90abe18bd0a8179 |
File details
Details for the file termage-0.6.0-py3-none-any.whl
.
File metadata
- Download URL: termage-0.6.0-py3-none-any.whl
- Upload date:
- Size: 9.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.22.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 67f3cce369ef9ea2fea2fdba15858c73e232bc27b1ed15000ff1337850774efd |
|
MD5 | 3493d0975e275ef7ee4706ad364ed991 |
|
BLAKE2b-256 | e18797a1da06a275209fc445052a3733a6523606b7eee97ab237d20f6fd58bde |