Manual:Pywikibot/Compat/deprecation

Pywikibot compat is deprecated. Users still using compat should migrate to core.

Background
Pywikibot (then "Pywikipediabot") was started back in 2002. In 2002 MediaWiki didn't have an api so pywikibot used screen sraping to interact with MediaWiki. In 2007 a new branch (rewrite, now core) was started from scratch using the (then new) MediaWiki api. Over the years core got more mature and most scripts we're migrated. In 2013 core surpassed compat in number of changes. In 2015 the developers of Pywikibot decided to deprecate the compat version of Pywikibot and discontinue support for compat.

Using scripts
If you're just using Pywikibot scripts you can just install Pywikibot core. Most scripts have been migrated. Pywikibot core uses a wrapper to run all the scripts. If you are using standard scripts (like redirect.py), you can run it in core by using pwb.py. For example:

Migrating code
If you wrote scripts based on compat, there is a conversion in core which helps you to migrate. And there is a script that automatically port your compat-based scripts to core.

If you have problems converting your code get in touch with us so we can help you.

Blocking bugs?
If you have seen any blocking bug that doesn't let you run your script in core. Please file bug in phabricator if it's not there and mention it in T99365

Comments?
Please add your comments in T99365