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.

Source Distribution

pyandoc-0.0.1.tar.gz (3.4 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page