Skip to main content

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

smc.mw-0.1.zip (357.9 kB view details)

Uploaded Source

File details

Details for the file smc.mw-0.1.zip.

File metadata

  • Download URL: smc.mw-0.1.zip
  • Upload date:
  • Size: 357.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for smc.mw-0.1.zip
Algorithm Hash digest
SHA256 e0351615891b3c7958fe7c79eb062c142c6f9f66a6c41bc5eb7b86ea458b5734
MD5 6b6d59151e42b72a6c38c501d80c8d7f
BLAKE2b-256 1cd01486cbc495bddb5277a478d48f2c7e35fa4b97b348913d8e54ec94e10f14

See more details on using hashes here.

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