skip to navigation
skip to content

pyandoc 0.0.1

Python wrapper for Pandoc - the universal document converter

Downloads ↓

Pyandoc: a simple Pandoc wrapper for Python

Requirements

  • Pandoc

Usage

Get setup.

import pandoc

pandoc.PANDOC_PATH = '/usr/bin/pandoc'

Let's start with a Markdown document:

doc = pandoc.Document()
doc.markdown = '''
# I am an H1 Tag

* bullet point
* more points
* point with [link](http://kennethreitz.com)!
'''

Now let's convert that into a ReST document:

>>> print doc.rst

I am an H1 Tag
==============


-  bullet point
-  more points
-  point with `link <http://kennethreitz.com>`_!

Enjoy.

Roadmap

  • Cleanup
  • Figure out epub, odt support
  • Figure out better path management
  • Proper Exceptions
  • Unit testing
  • CI

v 0.0.1 (01-02-2010)

  • Initial release
 
File Type Py Version Uploaded on Size # downloads
pyandoc-0.0.1.tar.gz (md5) Source 2011-01-03 3KB 451