Skip to main content
2025 Python Packaging Survey is now live!  Take the survey now

MediaWiki-compatible parser for Python.

Project description

smc.mw

A mediawiki-compatible parser for Python.

Using

To run the tests:

$ make -C tests

The test result can be found in tests/out/report.html.

A command line tool is available, too (installed as “mw”):

$ echo "''Hello World''" | python smc/mw/tool.py
<html><body><p><i>Hello World</i>
</p></body></html>

Differences

For specific differences, see the test results.

  • __TOC__ and other magic words must appear on a line on their own, while MediaWiki allows them everyhwere with some strange consequences.

Thanks

The parser uses the grako parser generator for PEG grammars by ResQSoft Inc. and Juancarlo Añez.

Authors

Supported by

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