User:Tuju

Python conversion of Mediawiki has been brought up on the IRC channel at least twice in the past years. Currently the Mediawiki code has been written in PHP the scripting language that is solely used in web environments and is basically a template language (text where code parts are escaped). Because it's not a generic purpose language like Perl or Python, there are fewer potential contributors who can easily contribute to the Mediawiki project in an ad hoc manner. Some command line maintenance tools have already been written in Python from very early on and it shows that where PHP is not mandatory, there exists a will to use something else and it has been a popular Python language.

Purpose of this page is to collect information what it would require to convert Mediawiki to Python for good - not to maintain two parallel codebases. There are probably more reasons and will not to do it, but it doesn't stop us studying the subject and killing the idea systematically in a true analytic wiki style. Maybe we all can learn something about this study, how it would / could be done.

Existing Python code

 * pywikibot
 * mediawiki-utilities

Web framework
List of potential web frameworks:

Parsers

 * https://github.com/goldsmith/Wikipedia
 * https://github.com/earwig/mwparserfromhell/
 * https://github.com/5j9/wikitextparser
 * https://github.com/pediapress/mwlib
 * https://github.com/peter17/mediawiki-parser
 * https://github.com/lambdafu/smc.mw/
 * https://radimrehurek.com/gensim/scripts/segment_wiki.html