Skip to main content

A rst converter to ansi-decorated console output

Project description

build downloads pyversions format

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.4.tar.gz (9.8 kB view details)

Uploaded Source

Built Distribution

rst2ansi-0.1.4-py3-none-any.whl (18.2 kB view details)

Uploaded Python 3

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

Hashes for rst2ansi-0.1.4.tar.gz
Algorithm Hash digest
SHA256 02fb99beb7e535baf703848151d968258a7c34356382de6456501845bd276b32
MD5 67493bf92079278f8b84ce22969557f1
BLAKE2b-256 8c9992694156505d904ca0b54c20961224c97afb7998b426bf73cecc390c2e2e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rst2ansi-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 ec2c106bc6b0487ac3f3fbbf2149215b129dad83581d60667de6bc9ff7709afa
MD5 2080f305defd0b9d23c736324e524ad5
BLAKE2b-256 e518514d28b3bcf7ce9a44c3285f3c82721919d0065e3ec914087307d4eed38e

See more details on using hashes here.

Supported by

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