Convert the parsed MediaWiki wikicode (using mwparserfromhell) to HTML.
Project description
mwcomposerfromhell is a Python package that provides an easy-to-use composer to convert the MediaWiki wikicode to HTML via mwparserfromhell. It supports Python 3.
Usage
Normal usage is rather straightforward (where text is page text):
>>> import mwparserfromhell >>> import mwcomposerfromhell >>> wikicode = mwparserfromhell.parse(text) >>> html = mwcomposerfromhell.compose(wikicode)
html is a str object for the output HTML.
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 Distribution
Close
Hashes for mwcomposerfromhell-0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e228f37028fe57fb92f384bfee0ccee006d1328f9eeabd6a5f8afef458ab5666 |
|
MD5 | 43fc01c0731992100f7351dfdd2921b1 |
|
BLAKE2b-256 | 3b8bb2be8cee80fff0faba2a545fc1c2f91b127e74009f3e92ae06ce9bc2f75f |