Skip to main content

Convert the parsed MediaWiki wikicode (using mwparserfromhell) to HTML.

Project description

https://travis-ci.org/clokep/mwcomposerfromhell.svg?branch=master

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

mwcomposerfromhell-0.2-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

Details for the file mwcomposerfromhell-0.2-py3-none-any.whl.

File metadata

  • Download URL: mwcomposerfromhell-0.2-py3-none-any.whl
  • Upload date:
  • Size: 11.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/2.7.16

File hashes

Hashes for mwcomposerfromhell-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 113392b4af6b9864e62fbd34a12aa61a95aca7760e88d76cfca0b8a1fa9290c2
MD5 63048051fb0483afdb8b448c3d0958cf
BLAKE2b-256 e92ccd12f98cb9880e80877ccd311e5c48f4eb6551c3e5c9c5f52ad35f8a647c

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page