Skip to main content

Python wrapper for Pandoc - the universal document converter

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pyandoc, version 0.0.1
Filename, size & hash File type Python version Upload date
pyandoc-0.0.1.tar.gz (3.4 kB) View hashes Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page