pyth 0.6.0
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:
- Paragraphs
- Headings
- Bold, italic, and underlined text
- Hyperlinks
- Bullet lists
- Simple tables
- Very little else
Formats I initially want to support are:
- xhtml
- rtf
- pdf (output)
These three formats cover web, Word / OpenOffice, and print.
Design principles
- Ignore unsupported information in input formats (e.g. page layout)
- Ignore font issues – output in a single font.
- Ignore specific text sizes – support relative sizes (bigger, littler) only. Output in a single base size.
- Have no dependencies unless they are written in Python, and work
- Make it easy to add support for new formats, by using an architecture based on plugins and adapters.
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).
| File | Type | Py Version | Uploaded on | Size |
|---|---|---|---|---|
| pyth-0.6.0.tar.gz (md5) | Source | 2014-07-15 | 23KB | |
- Downloads (All Versions):
- 0 downloads in the last day
- 8 downloads in the last week
- 2261 downloads in the last month
- Author: Brendon Hogger
- Home Page: http://wiki.github.com/brendonh/pyth
-
Categories
- Development Status :: 5 - Production/Stable
- Intended Audience :: Developers
- License :: OSI Approved :: MIT License
- Programming Language :: Python :: 2.5
- Programming Language :: Python :: 2.6
- Programming Language :: Python :: 2.7
- Topic :: Office/Business
- Topic :: Software Development :: Libraries
- Topic :: Text Editors :: Word Processors
- Topic :: Text Processing
- Topic :: Text Processing :: Filters
- Topic :: Text Processing :: Markup
- Package Index Owner: brendonh
- DOAP record: pyth-0.6.0.xml


