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.3.tar.gz
(7.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.3-py3-none-any.whl
(14.6 kB
view details)
File details
Details for the file rst2ansi-0.1.3.tar.gz.
File metadata
- Download URL: rst2ansi-0.1.3.tar.gz
- Upload date:
- Size: 7.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
64e3ed3b805ab3c6534742689ccc9a11b8d49aecf01b9a5a5826f8c3a5a55e4b
|
|
| MD5 |
f2eac471d3d0a4f634b9b3d28356d41b
|
|
| BLAKE2b-256 |
95a61f83c074fb015627e274e2ef9b924788520b3f5db8fd2c3753e515779b59
|
File details
Details for the file rst2ansi-0.1.3-py3-none-any.whl.
File metadata
- Download URL: rst2ansi-0.1.3-py3-none-any.whl
- Upload date:
- Size: 14.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9fbf578a91ef57cd7c53a29a1638b04ec99451234a6e195113ab6c80d8d289e8
|
|
| MD5 |
51537b13c4236a0671997b2f3666094b
|
|
| BLAKE2b-256 |
59412c7c5176ffa769a772359fc9f938d13acec2169de746d9c157a8eeba059a
|