VOOZH about

URL: https://pypi.org/project/pandoc/

⇱ pandoc Β· PyPI


Skip to main content

pandoc 2.4

pip install pandoc

Latest release

Released:

Pandoc Documents for Python

Navigation

Verified details

These details have been verified by PyPI
Maintainers
πŸ‘ Avatar for boisgera from gravatar.com
boisgera

Unverified details

These details have not been verified by PyPI
Meta

Project description

Pandoc (Python Library)

πŸ‘ Python
πŸ‘ PyPI version
πŸ‘ Mkdocs
πŸ‘ GitHub discussions
πŸ‘ Downloads
πŸ‘ GitHub stars

πŸ‘ linux
πŸ‘ macos
πŸ‘ windows

πŸš€ Getting started

Install Pandoc first, for example with conda:

$ conda install -c conda-forge pandoc

Then, install the Pandoc Python Library with pip:

$ pip install --upgrade pandoc

🌌 Overview

Pandoc is the awesome open-source command-line tool that converts documents from one format to another. The project was initiated by John MacFarlane; under the hood, it's a Haskell library.

The Pandoc Python Library brings Pandoc's document model to Python:

$ echo "Hello world!" | python -m pandoc read 
Pandoc(Meta({}), [Para([Str('Hello'), Space(), Str('world!')])])

It can be used to analyze, create and transform documents, in Python:

>>> import pandoc
>>> text = "Hello world!"
>>> doc = pandoc.read(text)
>>> doc
Pandoc(Meta({}), [Para([Str('Hello'), Space(), Str('world!')])])

>>> paragraph = doc[1][0]
>>> paragraph
Para([Str('Hello'), Space(), Str('world!')])
>>> from pandoc.types import Str
>>> paragraph[0][2] = Str('Python!')
>>> text = pandoc.write(doc)
>>> print(text)
Hello Python!

For more information, refer to the πŸ“– documentation.

Project details

Verified details

These details have been verified by PyPI
Maintainers
πŸ‘ Avatar for boisgera from gravatar.com
boisgera

Unverified details

These details have not been verified by PyPI
Meta

Release history Release notifications | RSS feed

Download files

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

Source Distribution

pandoc-2.4.tar.gz (34.6 kB view details)

Uploaded Source

File details

Details for the file pandoc-2.4.tar.gz.

File metadata

  • Download URL: pandoc-2.4.tar.gz
  • Upload date:
  • Size: 34.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for pandoc-2.4.tar.gz
Algorithm Hash digest
SHA256 ecd1f8cbb7f4180c6b5db4a17a7c1a74df519995f5f186ef81ce72a9cbd0dd9a
MD5 d2e9236dead8427ea9a1653ba8123b37
BLAKE2b-256 109ae3186e760c57ee5f1c27ea5cea577a0ff9abfca51eefcb4d9a4cd39aff2e

See more details on using hashes here.

Supported by

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