0.4
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 makeStatement
,Qualifier
andReference
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
towikidatastuff
. The old name still works but raises a deprecation warning. - Some functions moved from
wikidata_stuff
tohelpers
.
Minor/internal changes:
- Standardised string formatting
- Standardised line breaking