- (no changes yet)
This section lists features, methods, parameters, or attributes that are deprecated and scheduled for removal in future Pywikibot releases.
Deprecated items may still work in the current release but are no longer recommended for use. Users should update their code according to the recommended alternatives.
Pywikibot follows a clear deprecation policy: features are typically deprecated in one release and removed in the third subsequent major release, remaining available for the two releases in between.
- 9.6.0: :meth:`BaseSite.languages()<pywikibot.site._basesite.BaseSite.languages>` will be removed in favour of :attr:`BaseSite.codes<pywikibot.site._basesite.BaseSite.codes>`
- 9.5.0: :meth:`DataSite.getPropertyType()<pywikibot.site._datasite.DataSite.getPropertyType>` will be removed in favour of :meth:`DataSite.get_property_type()<pywikibot.site._datasite.DataSite.get_property_type>`
- 9.3.0: :meth:`page.BasePage.userName` and :meth:`page.BasePage.isIpEdit` are deprecated in favour of
useroranonattributes of :attr:`page.BasePage.latest_revision` property - 9.3.0: botflag parameter of :meth:`Page.save()<page.BasePage.save>`, :meth:`Page.put() <page.BasePage.put>`, :meth:`Page.touch()<page.BasePage.touch>` and :meth:`Page.set_redirect_target()<page.Page.set_redirect_target>` was renamed to bot
- 9.2.0: All parameters of :meth:`Page.templates<page.BasePage.templates>` and :meth:`Page.itertemplates()<page.BasePage.itertemplates>` must be given as keyworded arguments
- 9.2.0: Imports of :mod:`logging` functions from the :mod:`bot` module are deprecated and will be desupported
- 9.2.0: total argument in
-logeventspagegenerators option is deprecated; use-limitinstead (:phab:`T128981`) - 9.0.0: The content parameter of :meth:`proofreadpage.IndexPage.page_gen` is deprecated and will be ignored (:phab:`T358635`)
- 9.0.0:
nextparameter of :meth:`userinterfaces.transliteration.Transliterator.transliterate` was renamed tosucc - 9.0.0:
userinterfaces.transliteration.transliteratorobject was renamed to :class:`Transliterator <userinterfaces.transliteration.Transliterator>` - 9.0.0: The
typeparameter of :meth:`site.APISite.protectedpages() <pywikibot.site._generators.GeneratorsMixin.protectedpages>` was renamed toprotect_type - 9.0.0: The
allparameter of :meth:`site.APISite.namespace() <pywikibot.site._apisite.APISite.namespace>` was renamed toall_ns - 9.0.0:
filterparameter of :func:`date.dh` was renamed tofilter_func - 9.0.0:
dictparameter of :class:`data.api.OptionSet` was renamed todata - 9.0.0: :func:`pywikibot.version.get_toolforge_hostname` is deprecated with no replacement
- 9.0.0:
allrevisionsparameter of :class:`xmlreader.XmpDump` is deprecated, userevisionsinstead (:phab:`T340804`) - 9.0.0:
iteritemsmethod of :class:`data.api.Request` will be removed in favour ofitems - 9.0.0:
SequenceOutputter.output()is deprecated in favour of the :attr:`tools.formatter.SequenceOutputter.out` property
- 10.7.0: The old
(type, value, traceback)signature in :meth:`tools.collections.GeneratorWrapper.throw` will be removed in Pywikibot 13, or earlier if it is dropped from a future Python release. (:phab:`T340641`) - 10.6.0: :meth:`Family.isPublic()<family.Family.isPublic>` will be removed (:phab:`T407049`)
- 10.6.0: :meth:`Family.interwiki_replacements<family.Family.interwiki_replacements>` is deprecated; use :attr:`Family.code_aliases<family.Family.code_aliases>` instead.
- Keyword argument for char parameter of :meth:`Transliterator.transliterate <userinterfaces.transliteration.Transliterator.transliterate>` and positional arguments for prev and succ parameters are deprecated.
- 10.6.0: Positional arguments of :func:`daemonize()<daemonize.daemonize>` are deprecated and must be given as keyword arguments.
- 10.5.0: Accessing the fallback '*' keys in 'languages', 'namespaces', 'namespacealiases', and 'skins' properties of :attr:`APISite.siteinfo<pywikibot.site._apisite.APISite.siteinfo>` are deprecated and will be removed.
- 10.5.0: The methods :meth:`APISite.protection_types() <pywikibot.site._apisite.APISite.protection_types>` and :meth:`APISite.protection_levels() <pywikibot.site._apisite.APISite.protection_levels>` are deprecated. :attr:`APISite.restrictions<pywikibot.site._apisite.APISite.restrictions>` should be used instead.
- 10.4.0: Require all parameters of :meth:`Site.allpages() <pywikibot.site._generators.GeneratorsMixin.allpages>` except start to be keyword arguments.
- 10.4.0: Positional arguments of :class:`pywikibot.Coordinate` are deprecated and must be given as keyword arguments.
- 10.3.0: :meth:`throttle.Throttle.getDelay` and :meth:`throttle.Throttle.setDelays` were renamed to :meth:`get_delay()<throttle.Throttle.get_delay>` and :meth:`set_delays() <throttle.Throttle.set_delays>`; the old methods will be removed (:phab:`T289318`)
- 10.3.0: :attr:`throttle.Throttle.next_multiplicity` attribute is unused and will be removed (:phab:`T289318`)
- 10.3.0: requestsize parameter of :class:`throttle.Throttle` call is deprecated and will be dropped (:phab:`T289318`)
- 10.3.0: :func:`textlib.to_latin_digits` will be removed in favour of
:func:`textlib.to_ascii_digits`,
NON_LATIN_DIGITSof :mod:`userinterfaces.transliteration` will be removed in favour ofNON_ASCII_DIGITS(:phab:`T398146#10958283`) - 10.2.0: :mod:`tools.threading.RLock<tools.threading>` is deprecated and moved to :mod:`backports`
module. The :meth:`backports.RLock.count` method is also deprecated. For Python 3.14+ use
RLockfrom Python librarythreadinginstead. (:phab:`T395182`) - 10.1.0: revid and date parameters of :meth:`Page.authorship() <page._toolforge.WikiBlameMixin.authorship>` were dropped
- 10.0.0: last_id of :class:`comms.eventstreams.EventStreams` was renamed to last_event_id (:phab:`T309380`)
- 10.0.0: 'millenia' argument for precision parameter of :class:`pywikibot.WbTime` is deprecated; 'millennium' must be used instead
- 10.0.0: includeredirects parameter of :func:`pagegenerators.AllpagesPageGenerator` and :func:`pagegenerators.PrefixingPageGenerator` is deprecated and should be replaced by filterredir
- 11.0.0: The User-Agent variable script_product is deprecated; use script instead. The User-Agent variable version is deprecated; use revision instead. The User-Agent variables lang, code and family are deprecated; use site instead.
- 11.0.0: Positional argument for block parameter is deprecated; use a keyword argument instead.
- 11.0.0: Keyword parameters for text_a and text_b of :class:`diff.PatchManager` are deprecated. Positional parameters for by_letter and replace_invisible are deprecated.