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:

sudo python -c "import pymmd; pymmd.build_mmd('/usr/local/lib')"; sudo ldconfig

Which will install the required library and update the library cache to make it ready for operation.

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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

pymmd-0.2.1-py3-none-win_amd64.whl (112.7 kB view details)

Uploaded Python 3Windows x86-64

pymmd-0.2.1-py3-none-win32.whl (97.1 kB view details)

Uploaded Python 3Windows x86

pymmd-0.2.1-py3-none-macosx_10_6_intel.whl (302.8 kB view details)

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

pymmd-0.2.1-py2.py3-none-any.whl (302.8 kB view details)

Uploaded Python 2Python 3

pymmd-0.2.1-py2-none-win_amd64.whl (114.7 kB view details)

Uploaded Python 2Windows x86-64

pymmd-0.2.1-py2-none-macosx_10_6_intel.whl (302.8 kB view details)

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

pymmd-0.2.1-py2-none-any.whl (302.8 kB view details)

Uploaded Python 2

File details

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

File metadata

File hashes

Hashes for pymmd-0.2.1-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 56a82c0246d3bd40eeb6caacbf735929359e49ed238bdb164db70011d7c435c1
MD5 4f8fdffe14dd582b7eaa235a28d6afff
BLAKE2b-256 464e11e1fff8ca501dcdd2c5e4b73c0d896805d0ce3474d9f7e7b197b5632c5b

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pymmd-0.2.1-py3-none-win32.whl
Algorithm Hash digest
SHA256 b040346286804a78b284414eae154e38f9f7f60d79aa760c1904ba6755dacef9
MD5 906d52796b03344d9d29b7b5c0ccbc98
BLAKE2b-256 27c22f3640eac8bcf87145b4a48e641848690521dfe1b67cd3f6d01ddd05b95c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymmd-0.2.1-py3-none-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 3899a6363469f2eef81a203266ec5e853384347ebc9f085409ac43a77a0b4712
MD5 9c141068bdc77d70110c5fba6376a5e3
BLAKE2b-256 936f30cba87011d18b6ea16d8d9524cd107a6084f2f7684859c1601fc765aa6c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymmd-0.2.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b91ec6a3639fecf1c9bee17cedb78b05d3bda8a731d05a87dbeab8d24372016a
MD5 c6881978d2f628a2bcef765d1cd9aee9
BLAKE2b-256 19b309b7a2e3841f7592607a451887519373cd028097153b94a9712e6f668120

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymmd-0.2.1-py2-none-win_amd64.whl
Algorithm Hash digest
SHA256 dc278c0382fea659ba3f253d857492d56464f33ceefc26d2022e4488ea2b97ef
MD5 87f09e76b0fb250b0fbe823740290e6f
BLAKE2b-256 a68ed0bc0628b0ac40f9b1a93c53318d9e5eb63fbaa21ebddc1a4dfad4a6612b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pymmd-0.2.1-py2-none-macosx_10_6_intel.whl
Algorithm Hash digest
SHA256 1cc07157ad17a6cc3af20c4eae1e39f182f3be562dc23877034481719a7338a8
MD5 8f2d16725409d8f395db36204d068c2f
BLAKE2b-256 fab81411324bfc7473964ef7d9efd340ebabc5d19f1fdf48e0fcfabe1a8964c0

See more details on using hashes here.

File details

Details for the file pymmd-0.2.1-py2-none-any.whl.

File metadata

File hashes

Hashes for pymmd-0.2.1-py2-none-any.whl
Algorithm Hash digest
SHA256 430a2e493d671d7e8801d91ab4bd12be1beff99937fc3371e782fba435d49827
MD5 eaf6526fa191d957ec44c5729d0fc26a
BLAKE2b-256 9b7076a8f5c37ad3090d2d265e3ed3e9f13d660152bf1c124a1456fb1307ee51

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