Skip to main content

Thin wrapper for pandoc.

Project description

pypandoc provides a thin wrapper for pandoc, a universal document converter. Use it as follows:

import pypandoc

output = pypandoc.convert('somefile.md', 'rst')

# alternatively you could just pass some string to it and define its format
output = pypandoc.convert('#some title', 'rst', format='md')

The code infers pandoc --from format automatically based on given file extension unless one is provided explicitly. extra_args parameter makes it possible to access various pandoc options. Please refer to pandoc -h and the official documentation for further details.

See also pypandoc.

License

pypandoc is available under MIT license. See LICENSE for more details.

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

pypandoc-0.5.0.tar.gz (3.1 kB view details)

Uploaded Source

File details

Details for the file pypandoc-0.5.0.tar.gz.

File metadata

  • Download URL: pypandoc-0.5.0.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pypandoc-0.5.0.tar.gz
Algorithm Hash digest
SHA256 4770ebe8c0e9d4ea23eb9ce49cc22796e725d366cf6cb91dca53599ecdf8820d
MD5 15c6aa27036c5b8030911adecdb55918
BLAKE2b-256 61e5964313e0aaecf7a4fb27c59caff1e06ec021b08d0f773fcd7aec819960be

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page