Skip to main content

reflowrst

Installation

>>> sudo pip install reflowrst

Usage

Example:

>>> from reflowrst import reflow
>>> text = 'Here is a paragraph that is far too long and will need to wrap.'
>>> print(reflow(text, 47))
Here is a paragraph that is far too long and
will need to wrap.

You can also get the longest possible form of the rst text by using 0 for the space. For example:

>>> paragraph = '''Here is a paragraph that is far too long and
will need to wrap.'''
>>> print(reflow(paragraph, 0))
Here is a paragraph that is far too long and will need to wrap.

Todo

  • ☑ Titles

  • ☑ Transitions

  • ☑ Paragraphs

  • ☑ Bullet Lists

  • ☑ Enumerated Lists

  • ☑ Definitions

  • ☑ Fields

  • ☑ Options

  • ☑ Literal Blocks

  • ☐ Quoted Literal Blocks

  • ☑ Line Blocks

  • ☑ Block Quotes

  • ☐ Doctest Blocks

  • ☑ Grid Tables

  • ☑ Simple Tables

  • ☑ Footnotes

  • ☑ Citations

  • ☑ Directives

Metadata

Release files for reflowrst 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for reflowrst 1.1.0
File Size Uploaded Provenance
reflowrst-1.1.0.tar.gz 46.2 kB Without provenance Details

Release files / reflowrst-1.1.0.tar.gz

Download URL reflowrst-1.1.0.tar.gz
Size 46.2 kB
Tags Source
SHA-256 checksum
How to use checksums
4ab397447d53ec86f6086ad55524c3bdc42c55151c45a6f364bfe38763dc366b
BLAKE2b-256 checksum
How to use checksums
e9ced2c7adaeb3e8b05226bb11911776974060bf9c29863a8909ff6f7e42dbf6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for reflowrst 1.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page