A Python wrapper for MRML (Rust port of MJML).
Project description
mjml-python
A Python wrapper for MRML (Rust port of MJML).
Installation
pip install mjml-python
Usage
from mjml import mjml2html
html = mjml2html('''
<mjml>
<mj-body>
<mj-section>
<mj-column>
<mj-image width="100px" src="/assets/img/logo-small.png"></mj-image>
<mj-divider border-color="#F45E43"></mj-divider>
<mj-text font-size="20px" color="#F45E43" font-family="helvetica">Hello World</mj-text>
</mj-column>
</mj-section>
</mj-body>
</mjml>
''')
Development
python -m venv env
. env/bin/activate
pip install -r requirements.txt
maturin develop
Project details
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distributions
Close
Hashes for mjml_python-0.1.0-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0128755e352045de45eb9a40abfb2161a159d9acedf13779dd1f0f81ab632df5 |
|
MD5 | 5d55cca3e9f9a84dfeccb1d4f35bfc33 |
|
BLAKE2b-256 | bb325bc36c03cdf8bee1a0512478facb1edda353221174ec2d02c306b182e2b0 |
Close
Hashes for mjml_python-0.1.0-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f28c30eb8373a904c60c3b53c1e8356b4be8f0970b99c698c03cbe20e1bfef8 |
|
MD5 | eea937e576e972d6740d0d1f2815950f |
|
BLAKE2b-256 | e3aaec5e4ce82f2cb05bf5668f6f568587c2b148cd16b3e77cc586ecd3d22aad |
Close
Hashes for mjml_python-0.1.0-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e5a4143ef1ddbf6e860cc57e4f7a24ac1fef14ea08b1bd64a5543ff6373c49a5 |
|
MD5 | c8c0c2df74134e4e8e337be7568144e4 |
|
BLAKE2b-256 | b191f62d457c0928e74e716e43cfc30e1ba50bb25021ca0a909a3716c0355785 |
Close
Hashes for mjml_python-0.1.0-cp311-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 57966b5b183bf0a59e92dc101210f15f771b8dcab93130454623d4b5e6586383 |
|
MD5 | 827b433bded03819789a16527f08955a |
|
BLAKE2b-256 | e03bd413dd0de8d0d02e9702638bcb72da567ce31e6fb626d5236001e1776edd |
Close
Hashes for mjml_python-0.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 71e28bf61f7f7416c4c1baa474eaf227ce410364b8153ff911c261820f54eb6d |
|
MD5 | 5510489b6c9c81e2144ff5d0ff30da7b |
|
BLAKE2b-256 | e2588422458633087b872348847ddf688c4e3bdf60c431765889bb2a611a04ad |
Close
Hashes for mjml_python-0.1.0-cp311-cp311-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c3f515532512cc5e689cff962be0510afe4a5198a060fe44d8ddbbbac44fee4b |
|
MD5 | 5ac3cb8b7c2366077e5c56bedd9e228b |
|
BLAKE2b-256 | 7f230d9f90455aaf264f70e471720ebeb55b056e5bad634a329e49990315b814 |
Close
Hashes for mjml_python-0.1.0-cp310-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 96a44e1e208f086e8b055f6149157ab3aa1cbbcbec28e529be439017bf12c382 |
|
MD5 | b635b73e14d00a6a1b4f109fc0bf8557 |
|
BLAKE2b-256 | 625da0644d1e9697d8a02cc000a2fd0f152a3cc9331916ee5d50917e915188c0 |
Close
Hashes for mjml_python-0.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bacfd9cd23ebe81718ee49d2f4ddca0082dc2143a0395b9fb966de5d1a608f65 |
|
MD5 | 0a191c9df6a94be824ab020b1f621f8b |
|
BLAKE2b-256 | df58b079f32604dfef448da2c462a858ed792593cc785104b428bfeaa468fe48 |
Close
Hashes for mjml_python-0.1.0-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 208ffe6c22d0f19086cd163779d18ffd1b8f7b3a5fb786c3676c0e19ec94ec8c |
|
MD5 | 46564a3563a5d54bbcfdaefabea3df11 |
|
BLAKE2b-256 | b0a5539d8f22afc4b288bc74216d50381114604e743cf16f1b7605649a75f189 |
Close
Hashes for mjml_python-0.1.0-cp39-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed0e9fc3d0bbccecea5dc8987736ee67b9bbbf04befbddccc54abf375bd59dd4 |
|
MD5 | dc47d07d712852ed74c3601b9d131879 |
|
BLAKE2b-256 | 578a38aaf304c26b8cdb00e9ecee1e4d1909d040210c1cd900b2106f934e5eae |
Close
Hashes for mjml_python-0.1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c4ec3a5a6f75ccc3f9f7aa8bc5ac6d88718e7c79edee52ae5e8a16d41bb4ba45 |
|
MD5 | 533d29867f9d16e0c0cc3c2be6b43628 |
|
BLAKE2b-256 | 40baa5474c7b3811b37575d9982e4f801611f27ab97e4832f351251db1e7525d |
Close
Hashes for mjml_python-0.1.0-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 938e60604b52eb8661200c6deb5e4e3019aa5856120020a7a058db5f10406202 |
|
MD5 | 6b8aab43fb9cb57bfa5a71fdd6cabb61 |
|
BLAKE2b-256 | c33e2914e12599586f3dfe5480dfc0c23dcf663e956d7c38ebcd748aedf16f03 |
Close
Hashes for mjml_python-0.1.0-cp38-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b7354060344f5c4e3985e962babf34d5132d89e96cc85926a8be2829d1168b45 |
|
MD5 | 047995f7428370c66fe44b30b9474ce7 |
|
BLAKE2b-256 | f1d84ff1d7b7bad02d2b0118ab4bc9f8dfe0bfc1bd2e0c7828cb95cd18fc378b |
Close
Hashes for mjml_python-0.1.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f7c4f67fe87b694f22985c83a3d78666b8e7d0c93b5f66253ff8bf66869dbc71 |
|
MD5 | b199040415adb1b60b5bd73407d0ccba |
|
BLAKE2b-256 | c2ab24e2fae86d123e0c1323127b6e4686ff7d3d1046c483c14fcfd2f7ca1842 |
Close
Hashes for mjml_python-0.1.0-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2190c5eab3537e489f9b2e8375daac5f03dbf0003f16a2aefa027d525c42e06d |
|
MD5 | e93b9e048460f27cb2bdc7f5f6098a41 |
|
BLAKE2b-256 | 5f018742608ec26f4faa3cd09e2f9b221871db2b762233e83b16f160225b6117 |
Close
Hashes for mjml_python-0.1.0-cp37-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2913425dfe26764a654c5dd135e2e6d47ef5584f8cceffadd503baf3841df3ad |
|
MD5 | 025d3622d8fd0c9e353b0600070fe475 |
|
BLAKE2b-256 | 55061e81075e776e0afce248c6e3a75e501aad1bc187e01429e0d4bc591a1dee |
Close
Hashes for mjml_python-0.1.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d26eef336a3b8ef25a9da798db4a8a542fae90f12a9b9eb7f8c12f8037f9efe |
|
MD5 | bbcdec9ba80bf60cbc04677b1f9183b6 |
|
BLAKE2b-256 | 036e4a2e099e32169ad684ea5945959454cda103fc1b897044597b067bb3f85c |
Close
Hashes for mjml_python-0.1.0-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f826a64de6c8b997e8c244d95bff1867fd06ef292c669188dd18211e42259c81 |
|
MD5 | 7a3d87dbf3a3d80a24af53665278c9b5 |
|
BLAKE2b-256 | 9435c7f808a6a3a8239be9a9983e04735b0b6b8485e6686fd700c165fbecfec2 |