Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • BackTrack 5 R2
  • Wine 1.4 / 1.5.5
  • Mozilla Firefox 12...
  • Ubuntu 11.04
  • Angry Birds 1.1.2.1
  • Ubuntu 10.04.4 LTS
  • Linux Kernel 3.4
  • Ubuntu Manual 10.10
  • Adobe Flash Player...
  • Pidgin 2.10.4
  • Home > Linux > Programming > Interpreters

    PyLit 0.7.5

    Download button

    No screenshots available
    Downloads: 390  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Günter Milde | More programs
    GPL / FREE
    August 31st, 2009, 22:58 GMT [view history]
    ROOT / Programming / Interpreters

     Read user reviews (0)  Refer to a friend  Subscribe

    PyLit description

    Literate Programming with reStructuredText

    PyLit (Python Literate) provides a plain but efficient tool for literate programming: a bidirectional text/code converter.

    It converts between text with embedded source code and source code with embedded documentation (comment blocks).

    Usage:
    #> python pylit.py [options] INFILE [OUTFILE]

    Options:


     --version show program’s version number and exit
     -h, --help show this help message and exit
     -c, --code2txt convert code source to text source
     --comment-string=COMMENT_STRING
     text block marker (default '# ')
     -d, --diff test for differences to existing file
     --doctest run doctest.testfile() on the text version
     -e, --execute execute code (Python only)
     --language=LANGUAGE
     use LANGUAGE native comment style
     --overwrite=OVERWRITE
     overwrite output file (default ‘update’)
     --replace move infile to a backup copy (appending ‘~’)
     -s, --strip export by stripping text or code
     -t, --txt2code convert text source to code source



    Product's homepage

    Here are some key features of "PyLit":

    · Dual Source
    · Simplicity
    · Markup with reStructuredText
    · Python Doctest Support

    Requirements:

    · Python

    Limitations:

    · The parallel existence of code and text formats might lead to confusion on which is the up to date, authoritative source.
    · While by default, an output file is not overwritten if it is newer than the input file, loss of changes can occur when both formats are edited in parallel.
    · PyLit does not allow the specification of a separate output file for individual code blocks like e.g. noweb. The “dual source” concept limits the choice to one output file per input file. However, this can be compensated by the use of the include directive. See the tutorial for an example.
    · Only one comment string (including whitespace) can be specified as “text block marker”.

    What's New in This Release: [ read full changelog ]

    · Bugfix: ignore blank lines in test for end of code block

      


    TAGS:

    Python | Literate Programming | reStructuredText | Python | Literate | Programming



    HTML code for linking to this page:


    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM