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 pyandoc.

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.1.tar.gz (3.0 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for pypandoc-0.5.1.tar.gz
Algorithm Hash digest
SHA256 303de0aedfd0d895649a2a69d5ee5b4acef29bd895f002e54f71170310586759
MD5 348ffe714316256185dbf879bb1680c8
BLAKE2b-256 1cf36951df42c19b3c537b5124175de9a02201c48940d47c692fb36cca9401f5

See more details on using hashes here.

Supported by

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