Skip to content

0.4

Compare
Choose a tag to compare
@lokal-profil lokal-profil released this 17 Feb 22:37
· 9 commits to master since this release
030e3c3

This introduces multiple breaking changes but has been designed to raise deprecation warnings for all of these making it easier to adapt code built on pre-0.4 releases.

To display the deprecation warnings run your script using the pywikibot -debug flag (you must be making use of pywikibot.handleArgs()) or add the -Wd option to your python call.

The major changes are:

  • Re-factor of the WikidataStuff class to make Statement, Qualifier and Reference stand-alone classes. These were internal classes before. References to the old names no longer work but the deprecation messages point to the new schema.
  • Re-naming of all modules, classes, functions and function arguments to conform with PEP8. Usage of the old names works but raises a deprecation warning pointing to the new naming convention.
  • Re-naming of the package, to conform with PEP8, from wikidataStuff to wikidatastuff. The old name still works but raises a deprecation warning.
  • Some functions moved from wikidata_stuff to helpers.

Minor/internal changes:

  • Standardised string formatting
  • Standardised line breaking