A rst converter to ansi-decorated console output
Project description
A python module dedicated to rendering RST (reStructuredText) documents to ansi-escaped strings suitable for display in a terminal.
Installation
Requirements
Python 3.3+
PyPi package
pip install rst2ansi
Usage
As a CLI utility:
usage: rst2ansi [-h] [file]
Prints a reStructuredText input in an ansi-decorated format suitable for
console output.
positional arguments:
file A path to the file to open
optional arguments:
-h, --help show this help message and exit
As a python module:
from rst2ansi import rst2ansi
print(rst2ansi('I **love** reStructuredText!'))
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
rst2ansi-0.1.4.tar.gz
(9.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
rst2ansi-0.1.4-py3-none-any.whl
(18.2 kB
view details)
File details
Details for the file rst2ansi-0.1.4.tar.gz.
File metadata
- Download URL: rst2ansi-0.1.4.tar.gz
- Upload date:
- Size: 9.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
02fb99beb7e535baf703848151d968258a7c34356382de6456501845bd276b32
|
|
| MD5 |
67493bf92079278f8b84ce22969557f1
|
|
| BLAKE2b-256 |
8c9992694156505d904ca0b54c20961224c97afb7998b426bf73cecc390c2e2e
|
File details
Details for the file rst2ansi-0.1.4-py3-none-any.whl.
File metadata
- Download URL: rst2ansi-0.1.4-py3-none-any.whl
- Upload date:
- Size: 18.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ec2c106bc6b0487ac3f3fbbf2149215b129dad83581d60667de6bc9ff7709afa
|
|
| MD5 |
2080f305defd0b9d23c736324e524ad5
|
|
| BLAKE2b-256 |
e518514d28b3bcf7ce9a44c3285f3c82721919d0065e3ec914087307d4eed38e
|