Skip to main content

A lightweight and modern animated terminal window

Project description

Termynal

GitHub Workflow Status PyPI PyPI - Python Version Docs GitHub PyPI - Downloads GitHub last commit

A lightweight and modern animated terminal window. Built for mkdocs and zensical.

Installation

termynal

Examples

Usage

Use <!-- termynal --> before code block

<!-- termynal -->

```
$ python script.py
```

Mkdocs integration

Declare the plugin:

...
plugins:
  - termynal
...

Optionally, pass options to the processor:

[...]
plugins:
  - termynal:
      prompt_literal_start:
        - "$"
        - ">"
[...]

If you do not want to copy termynal.css and termynal.js as static files, you can embed them directly in generated HTML:

[...]
plugins:
  - termynal:
      include_assets: true
[...]

This config allows you to use another prompt:

<!-- termynal -->

```
> pip install termynal
---> 100%
Installed
```

Zensical integration

zensical does not support arbitrary MkDocs plugins yet, but it supports Python Markdown extensions. Use termynal as a markdown extension and enable inline assets:

[project.markdown_extensions.termynal]
include_assets = true
title = "bash"
buttons = "macos"
prompt_literal_start = ["$"]

You can override default assets with your own files:

[project.markdown_extensions.termynal]
include_assets = true
assets_override_css = "docs/stylesheets/termynal.css"
assets_override_js = "docs/javascripts/termynal.js"

For Zensical-style asset management, keep include_assets = false and register assets explicitly:

[project]
extra_css = ["stylesheets/termynal.css"]
extra_javascript = ["javascripts/termynal.js"]

[project.markdown_extensions.termynal]
include_assets = false

Credits

Thanks ines

Contribution

Contribution guidelines for this project

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

termynal-0.14.0.tar.gz (178.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

termynal-0.14.0-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

File details

Details for the file termynal-0.14.0.tar.gz.

File metadata

  • Download URL: termynal-0.14.0.tar.gz
  • Upload date:
  • Size: 178.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.10 {"installer":{"name":"uv","version":"0.10.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for termynal-0.14.0.tar.gz
Algorithm Hash digest
SHA256 2918a1a6cf468497fbb3a72dc3726743988829eef1136d0c78a81df70ec869f6
MD5 0866d0c52964429509720277283cc8ce
BLAKE2b-256 268cea13868e6008ed964837db011648e3e7766e0ecfa1b42d7b9a4cf0c228e2

See more details on using hashes here.

File details

Details for the file termynal-0.14.0-py3-none-any.whl.

File metadata

  • Download URL: termynal-0.14.0-py3-none-any.whl
  • Upload date:
  • Size: 11.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.10 {"installer":{"name":"uv","version":"0.10.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for termynal-0.14.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b5147545e29256d35148251f5c2d3d23dec1d2fb0b4ba464ff330a7de8b56fc6
MD5 b95c2876409bb8a53f028bce4bb4db5e
BLAKE2b-256 c38fc089f7c9f9fc1da25e6271386e5df84e1f6e0b04d2f0b408939b51b2876f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page