Skip to main content

Convert epytext markup language in RestructuredText

Project description

eyptext2rst is a command line tool to convert epytext markup language in RestructuredText.

General usage

epytext2rst.py [-h] [-v] [-o OUTPUT] input

positional arguments:
    input input file or directory to convert

optional arguments:
    -h, --help show this help message and exit
    -v, --verbose show changes
    -o OUTPUT, --output-dir OUTPUT directory for output of parsed files

To convert all python files (.py, .pyw) in a directory just type this:

python epytext2rst.py mydirectory -o newdirectory

If you just want to know what gets substituted do this:

python epytext2rst.py mydirectory -v

Convention

epytext2rst handles the conversion of the following Epytext components:

Keywords

@(param|type|rtype|return|ivar) --> :(param|type|rtype|return|ivar)

Italics

I\{(.*?)\}    --> *..*

Bold

B\{(.*?)\}    --> **..**

Code

C\{(.*?)\}    --> ``...``

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

epytext2rst-1.0.2.tar.gz (1.7 kB view details)

Uploaded Source

File details

Details for the file epytext2rst-1.0.2.tar.gz.

File metadata

File hashes

Hashes for epytext2rst-1.0.2.tar.gz
Algorithm Hash digest
SHA256 9a603b743891b594f5867c5fbd1a70ed602be14e1f2b43b881c3886d004672ad
MD5 6950ad62af3842870cba31442adb1de9
BLAKE2b-256 af3a73e28e055099592fab1352cce352aa70ec44b542b6673288b0bfee023ad9

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