:target: https://pypi.python.org/pypi/pymmd/
:alt: Latest Version
.. image:: https://img.shields.io/pypi/dm/pymmd.svg
:target: https://pypi.python.org/pypi/pymmd/
:alt: Downloads
.. image:: https://img.shields.io/pypi/l/pymmd.svg
:target: https://pypi.python.org/pypi/pymmd/
:alt: License
.. image:: https://landscape.io/github/jasedit/pymmd/master/landscape.svg?style=flat
:target: https://landscape.io/github/jasedit/pymmd/master/
:alt: Code Health
pymmd
============
Python wrapper for `MultiMarkdown <https://github.com/fletcher/MultiMarkdown-5>`_, 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 <https://docs.python.org/2/library/ctypes.html>`_ 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:
.. code:: bash
pip install pymmd
For Linux users, the shared library can be installed by executing:
.. code:: bash
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:
.. code:: bash
python -c "import pymmd; print(pymmd.version())"
Examples
=============
Converting a string of MultiMarkdown directly to various outputs:
.. code:: python
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)
Conversion can be performed with the `Transclusion <http://fletcher.github.io/MultiMarkdown-5/transclusion>`_ capabilities of MultiMarkdown, either by specifying the directory name:
.. code:: python
import pymmd
with open('./document.mmd') as fp:
src = fp.read()
output = pymmd.convert(src, dname='.')
Files can also be converted directly from file:
.. code:: python
import pymmd
#MMD file named data.mmd
html_output = pymmd.convert_from("./data.mmd")
Metadata
Release files for pymmd 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| pymmd-0.4.0-py3-none-win_amd64.whl | Python 3 | none | Windows x86-64 | Details for pymmd-0.4.0-py3-none-win_amd64.whl |
| pymmd-0.4.0-py3-none-win32.whl | Python 3 | none | Windows x86-32 | Details for pymmd-0.4.0-py3-none-win32.whl |
| pymmd-0.4.0-py3-none-macosx_10_6_intel.whl | Python 3 | none | macOS 10.6+ Intel (x86-64, i386) | Details for pymmd-0.4.0-py3-none-macosx_10_6_intel.whl |
| pymmd-0.4.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for pymmd-0.4.0-py2.py3-none-any.whl |
| pymmd-0.4.0-py2-none-win_amd64.whl | Python 2 | none | Windows x86-64 | Details for pymmd-0.4.0-py2-none-win_amd64.whl |
| pymmd-0.4.0-py2-none-win32.whl | Python 2 | none | Windows x86-32 | Details for pymmd-0.4.0-py2-none-win32.whl |
| pymmd-0.4.0-py2-none-macosx_10_6_intel.whl | Python 2 | none | macOS 10.6+ Intel (x86-64, i386) | Details for pymmd-0.4.0-py2-none-macosx_10_6_intel.whl |
Total release size: 1.3 MB
Release files / pymmd-0.4.0-py3-none-win_amd64.whl
| Download URL | pymmd-0.4.0-py3-none-win_amd64.whl |
|---|---|
| Size | 115.3 kB |
| Tags | Python 3 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
586556ea44ef9a23c3937ec0872700d82a09eb6fb512fe94b03f540ec8612b8f
|
|
BLAKE2b-256 checksum How to use checksums |
206ca9a401d97cd684e53fc3407e796614febde12c58c4ce04b9bd89e272d8f7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / pymmd-0.4.0-py3-none-win32.whl
| Download URL | pymmd-0.4.0-py3-none-win32.whl |
|---|---|
| Size | 99.8 kB |
| Tags | Python 3 Windows x86-32 |
|
SHA-256 checksum How to use checksums |
f3607fb561ee5f39c90c2b965424bfc869b661d34637795e4fc13ac9d622c393
|
|
BLAKE2b-256 checksum How to use checksums |
be11af715751a152b5d0d959ebe06f138d5c707d2014cbd324395dcb2433d5f6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / pymmd-0.4.0-py3-none-macosx_10_6_intel.whl
| Download URL | pymmd-0.4.0-py3-none-macosx_10_6_intel.whl |
|---|---|
| Size | 303.4 kB |
| Tags | Python 3 macOS 10.6+ Intel (x86-64, i386) |
|
SHA-256 checksum How to use checksums |
ec32b22e578710c3121e2719096dd3e5811a45c38dea368aeb74f2d8adb4a0ca
|
|
BLAKE2b-256 checksum How to use checksums |
e6717dba5a0202602c4628223edaa862c637de0ddaad4526a3845e45d57942a0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / pymmd-0.4.0-py2.py3-none-any.whl
| Download URL | pymmd-0.4.0-py2.py3-none-any.whl |
|---|---|
| Size | 303.4 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
8bb54ef82ccfc0aaa968584b71306d5b92f823a6badd22a083297a88480dc177
|
|
BLAKE2b-256 checksum How to use checksums |
746fa6e07702eaffccbd12dddf054dbe34ef46562ea4f2c875deb893b599133e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / pymmd-0.4.0-py2-none-win_amd64.whl
| Download URL | pymmd-0.4.0-py2-none-win_amd64.whl |
|---|---|
| Size | 115.4 kB |
| Tags | Python 2 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
840f0859b3045158f96b9fb529d481b2dd38fb929e610ce3da6f364647235559
|
|
BLAKE2b-256 checksum How to use checksums |
ceca7e164d0d1d9380dd022d5c9542ed5b92999fb951f7bae516806d6de0010a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / pymmd-0.4.0-py2-none-win32.whl
| Download URL | pymmd-0.4.0-py2-none-win32.whl |
|---|---|
| Size | 99.8 kB |
| Tags | Python 2 Windows x86-32 |
|
SHA-256 checksum How to use checksums |
ca611be1d99672dcfa338e9d46ca40644dc0ba59cca8e57d8628696cb6edbfcf
|
|
BLAKE2b-256 checksum How to use checksums |
c6f6ad083658e83952b27e653e7f4c7f02116ccc4acd267b22cc93c7f8742808
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / pymmd-0.4.0-py2-none-macosx_10_6_intel.whl
| Download URL | pymmd-0.4.0-py2-none-macosx_10_6_intel.whl |
|---|---|
| Size | 303.4 kB |
| Tags | Python 2 macOS 10.6+ Intel (x86-64, i386) |
|
SHA-256 checksum How to use checksums |
a10adc711d5722f59b562b68a4b2d44f02062758159e3e5d4953e09783d62a21
|
|
BLAKE2b-256 checksum How to use checksums |
a25c364ca32a830c9f8ac26217cd1a8daed2a7b7d510056c4341bab976bc6207
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pymmd 0.4.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.