mwcomposerfromhell
mwcomposerfromhell is a Python package that provides an easy-to-use method to convert MediaWiki Wikicode to HTML via mwparserfromhell. It supports Python 3.
Usage
Normal usage is rather straightforward to convert from a str of Wikicode to a str of HTML. It involves two steps:
Parse the Wikicode to an abstract syntax tree using mwparserfromhell.
Convert the AST to HTML.
>>> import mwparserfromhell
>>> import mwcomposerfromhell
>>> wikicode = mwparserfromhell.parse(text) # Step 1
>>> html = mwcomposerfromhell.compose(wikicode) # Step 2
You can also use it from the command line if you already have your wikicode in a file. The convert HTML is output on standard out.
python -m mwcomposerfromhell path/to/my/wikicode
Metadata
Release files for mwcomposerfromhell 0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mwcomposerfromhell-0.5.tar.gz | 21.3 kB | Without provenance | Details for mwcomposerfromhell-0.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mwcomposerfromhell-0.5-py3-none-any.whl | Python 3 | none | any | Details for mwcomposerfromhell-0.5-py3-none-any.whl |
Total release size: 40.9 kB
Release files / mwcomposerfromhell-0.5.tar.gz
| Download URL | mwcomposerfromhell-0.5.tar.gz |
|---|---|
| Size | 21.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c73c6935dca08af729c6405058611014642090a424826f14ea20f32683282b66
|
|
BLAKE2b-256 checksum How to use checksums |
8b108d93025e303b36dfacea9f88a9dc45232d039ce914dbe9580458eff01158
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.7.13
|
Release files / mwcomposerfromhell-0.5-py3-none-any.whl
| Download URL | mwcomposerfromhell-0.5-py3-none-any.whl |
|---|---|
| Size | 19.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ed4125b64d82ea725085250482867498665d8aa193f471fe70c76ac9f700a278
|
|
BLAKE2b-256 checksum How to use checksums |
bf0ebe4d4072bb774b8b980e23f152eb12bd84c2f5accd7ac747be2455bdd282
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.7.13
|
Security for mwcomposerfromhell 0.5
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.