epytext2rst-1.0.2
توضیحات
Convert epytext markup language in RestructuredText
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | epytext2rst-1.0.2 |
| نام | epytext2rst |
| نسخه کتابخانه | 1.0.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Stefan Lehmann |
| ایمیل نویسنده | Stefan.St.Lehmann@gmail.com |
| آدرس صفحه اصلی | https://bitbucket.org/mrleeh/epytext2rst |
| آدرس اینترنتی | https://pypi.org/project/epytext2rst/ |
| مجوز | GPL |
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\{(.*?)\} --> ``...``
نحوه نصب
نصب پکیج whl epytext2rst-1.0.2:
pip install epytext2rst-1.0.2.whl
نصب پکیج tar.gz epytext2rst-1.0.2:
pip install epytext2rst-1.0.2.tar.gz