brendonh / pyth

Python text markup and conversion
MIT License
89 stars 79 forks source link

======================================== pyth - Python text markup and conversion

Pyth is intended to make it easy to convert marked-up text between different common formats.

Marked-up text means text which has:

Formats I initially want to support are:

These three formats cover web, Word / OpenOffice, and print.

Design principles

Examples

See http://github.com/brendonh/pyth/tree/master/examples/

Unit tests

The sources contains some unit tests (written using python unittest module) in the 'tests' directory.

To run the tests we can either run them individually as python script, either use python nose_. If using nose then we just need to go into the tests directory and invoke nosetest from there (make sure that pyth module is in PYTHONPATH).

.. _python nose: http://code.google.com/p/python-nose/