Skip to main content

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.

asciicast

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)

Uploaded Source

Built Distribution

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

rst2ansi-0.1.3-py3-none-any.whl (14.6 kB view details)

Uploaded Python 3

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

Hashes for rst2ansi-0.1.3.tar.gz
Algorithm Hash digest
SHA256 64e3ed3b805ab3c6534742689ccc9a11b8d49aecf01b9a5a5826f8c3a5a55e4b
MD5 f2eac471d3d0a4f634b9b3d28356d41b
BLAKE2b-256 95a61f83c074fb015627e274e2ef9b924788520b3f5db8fd2c3753e515779b59

See more details on using hashes here.

File details

Details for the file rst2ansi-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for rst2ansi-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9fbf578a91ef57cd7c53a29a1638b04ec99451234a6e195113ab6c80d8d289e8
MD5 51537b13c4236a0671997b2f3666094b
BLAKE2b-256 59412c7c5176ffa769a772359fc9f938d13acec2169de746d9c157a8eeba059a

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