Skip to main content

Python wrapper for the MultiMarkdown library.

Project description

Latest Version Downloads License Code Health

pymmd

Python wrapper for MultiMarkdown, which converts MultiMarkdown flavored text into one of several outputs formats. This package directly wraps the reference implementation, and provides a simple interface to the library.

The ctypes package is used to wrap libMultiMarkdown in a portable fashion.

Installation

This package requires MultiMarkdown installed as a shared library in order to function. For Windows and macOS, the shared library is included in the distributed package.

This package can be installed via pypi:

pip install pymmd

For Linux users, the shared library can be installed by executing:

python -c "import pymmd; pymmd.build_mmd()"

Which will download, build, and install the required library within the package’s directory. This may need to be run with sudo if the package is installed to a system-level site-packages directory.

Verifying the package is working as intended can be accomplished via a simple test command, which should print out the MultiMarkdown version in use:

python -c "import pymmd; print(pymmd.version())"

Examples

Converting a string of MultiMarkdown directly to various outputs:

import pymmd
# Generate string of MultiMarkdown text named data

html_output = pymmd.convert(data)
latex_output = pymmd.convert(data, fmt=pymmd.LATEX)

#Generate a snippet
html_snippet = pymmd.convert(data, ext=pymmd.SNIPPET)

Files can also be converted directly, which enables the Transclusion capabilities of MultiMarkdown.

import pymmd

#MMD file named data.mmd

html_output = pymmd.convert_from("./data.mmd")

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

pymmd-0.3.0.tar.gz (301.3 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

pymmd-0.3.0-py3-none-win_amd64.whl (113.0 kB view details)

Uploaded Python 3Windows x86-64

pymmd-0.3.0-py3-none-win32.whl (97.4 kB view details)

Uploaded Python 3Windows x86

pymmd-0.3.0-py3-none-macosx_10_6_intel.whl (303.1 kB view details)

Uploaded Python 3macOS 10.6+ Intel (x86-64, i386)

pymmd-0.3.0-py2.py3-none-any.whl (303.1 kB view details)

Uploaded Python 2Python 3

pymmd-0.3.0-py2-none-win_amd64.whl (115.1 kB view details)

Uploaded Python 2Windows x86-64

pymmd-0.3.0-py2-none-win32.whl (99.5 kB view details)

Uploaded Python 2Windows x86

pymmd-0.3.0-py2-none-macosx_10_6_intel.whl (303.1 kB view details)

Uploaded Python 2macOS 10.6+ Intel (x86-64, i386)

File details

Details for the file pymmd-0.3.0.tar.gz.

File metadata

  • Download URL: pymmd-0.3.0.tar.gz
  • Upload date:
  • Size: 301.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pymmd-0.3.0.tar.gz
Algorithm Hash digest
SHA256 064401e556a11fb95ca8f417afb92b5970a1142a910687bb68e142007b9e7a82
MD5 a11c3ee8e10492c5d07c54cc15df048f
BLAKE2b-256 d4e249a7c97700aa68477bbf655eda79cd8df1c65f2caa0108b9341ecd7e0833

See more details on using hashes here.

File details

Details for the file pymmd-0.3.0-py3-none-win_amd64.whl.

File metadata

File hashes

Hashes for pymmd-0.3.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 de3b6b5ebbe353b27cb6a902b5d856187a46133bc6052d135c1b73b545704766
MD5 354ab47aa631b660632b2cc18ab25662
BLAKE2b-256 7f82e9d082b1242cf38e97d23b8e56c93baa84e9bfd3c3e6f18b05b28fc59946

See more details on using hashes here.

File details

Details for the file pymmd-0.3.0-py3-none-win32.whl.

File metadata

  • Download URL: pymmd-0.3.0-py3-none-win32.whl
  • Upload date:
  • Size: 97.4 kB
  • Tags: Python 3, Windows x86
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pymmd-0.3.0-py3-none-win32.whl
Algorithm Hash digest
SHA256 187e09ee88803706de3bfc2945c4b80945158e8657968f9202a4b87528b03257
MD5 b825c793398cc5eb851a00b604275bce
BLAKE2b-256 4360da5b426f858a1ee5b1f2d2fe9b987193d32df45782b397d0c55994bb51e1

See more details on using hashes here.

File details

Details for the file pymmd-0.3.0-py3-none-macosx_10_6_intel.whl.

File metadata

File hashes

Hashes for pymmd-0.3.0-py3-none-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 4a9751a21aba72866b85996785dc48c69d31c7701ab1a317c9e1a84238172f08
MD5 aeebaacd1f844dd74e1bce07c4240269
BLAKE2b-256 1b01c1cb122d64a407a0bb2ef303f097809d2d28471342dbf9280bf68cd2b14a

See more details on using hashes here.

File details

Details for the file pymmd-0.3.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for pymmd-0.3.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 2ce7a38b03c3c6fbb5996ecf7f31127d9c9fced0119c42bd242ff6e7b1c2d523
MD5 a0b7671dc5e75673d09db281485b24c4
BLAKE2b-256 02f14b1ca0de7d9143465e0a6b9d3430cf9cc3ba8f130f897c6f9b13481aaa30

See more details on using hashes here.

File details

Details for the file pymmd-0.3.0-py2-none-win_amd64.whl.

File metadata

File hashes

Hashes for pymmd-0.3.0-py2-none-win_amd64.whl
Algorithm Hash digest
SHA256 92ca41b4fa82a7b63bfa1f2dd00d24ec81c0abccd0fb93a40c29b3a1ee123c37
MD5 ed7a0b3d2c168ea3017d346b92064008
BLAKE2b-256 707e507cdbe6d1b19578c561c34db635034cad0a102c3ea939768cc0421c5745

See more details on using hashes here.

File details

Details for the file pymmd-0.3.0-py2-none-win32.whl.

File metadata

  • Download URL: pymmd-0.3.0-py2-none-win32.whl
  • Upload date:
  • Size: 99.5 kB
  • Tags: Python 2, Windows x86
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pymmd-0.3.0-py2-none-win32.whl
Algorithm Hash digest
SHA256 7fdf41698d5fe09173a946a26e212a5a1b38335cbd5ba6b25a3494511444df61
MD5 c55aad52e6e3ebe9dc34401af48fb5a1
BLAKE2b-256 0132bf94e39ffcd38eecca3e94cfbec8f2576e93a24d47e00e10a5ed7ee6346b

See more details on using hashes here.

File details

Details for the file pymmd-0.3.0-py2-none-macosx_10_6_intel.whl.

File metadata

File hashes

Hashes for pymmd-0.3.0-py2-none-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 50b2e60f8f50f538f0bb82ee2545f1e6c77a09c7d0dfad6b0f9e9059968c3387
MD5 cdc85fd18782cbf6d5d30972f79ecea7
BLAKE2b-256 bd715c2aa55945f498895324710d8bad130e54cfa12d4fb8bb99a92d24d8280e

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