Pywikibot

Latest version: v9.2.0

Safety actively analyzes 641002 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 5 of 16

7.7.1

-----

*10 October 2022*

* New wikis are supported (:phab:`T314642`, :phab:`T314648`, :phab:`T316459`, :phab:`T317115`, :phab:`T319193`)

7.7.0

-----
*25 September 2022*

* TypeError is raised if *aliases* parameter of :meth:`WikibasePage.editAliases
<page.WikibasePage.editEntity>` method is not a list (:phab:`T318034`)
* Raise TypeError in :meth:`AliasesDict.normalizeData
<pywikibot.page._collections.AliasesDict.normalizeData>` if *data* value is not a list (:phab:`T318034`)
* tools' threading classes were moved to :mod:`tools.threading` submodule
* No longer raise NotimplementedError in :meth:`APISite.page_from_repository
<pywikibot.site._apisite.APISite.page_from_repository>` (:phab:`T318033`)
* Ability to set ``PYWIKIBOT_TEST_...`` environment variables with pwb wrapper (:phab:`T139847`)
* OmegaWiki family was removed
* Provide global ``-config`` option to specify the user config file name
* Run :mod:`pywikibot.scripts.login` script in parallel tasks if ``-async`` option is given (:phab:`T57899`)
* Ability to preload categories was added to :meth:`APISite.preloadpages
<pywikibot.site._generators.GeneratorsMixin.preloadpages>` (:phab:`T241689`)
* Add :class:`WikiBlame<page._toolforge.WikiBlameMixin>` support was added to get the five topmost authors
* Raise KeyError instead of AttributeError if :class:`page.FileInfo` is used as Mapping
* i18n and L10N updates

7.6.0

-----
*21 August 2022*

* Add support for pcmwiki, guvwikt and bjnwikt (:phab:`T309059`, :phab:`T310882`, :phab:`T312217`)
* support *not* loading text :meth:`site.APISite.preloadpages` (:phab:`T67163`)
* :func:`textlib.TimeStripper.timestripper` removes HTML elements before searching for
timestamp in text (:phab:`T302496`)
* backport :mod:`backports.pairwise()<backports>` from Python 3.10
* L10N updates
* Fix partial caching in :meth:`Category.subcategories()<page.Category.subcategories>` (:phab:`T88217`)
* Method :meth:`Page.has_content()<page.BasePage.has_content>` was added (:phab:`T313736`)
* Discard cache and reload it if cache was loaded without content and content is required
in :meth:`Page.templates()<page.BasePage.templates>` (:phab:`T313736`)
* Add support for vikidia:oc
* Exit loop in PageFromFileReader if match.end() <= 0 (:phab:`T313684`)
* Allow Exception as parameter of pywikibot.exceptions.Error
* Make :func:`GoogleSearchPageGenerator<pagegenerators.GoogleSearchPageGenerator>`
and :func:`PetScanPageGenerator<pagegenerators.PetScanPageGenerator>` a restartable
Generator (:phab:`T313681`, :phab:`T313683`)
* Provide a :class:`collections.GeneratorWrapper<tools.collections.GeneratorWrapper>`
class to start/restart a generator (:phab:`T301318`, :phab:`T312654`, :phab:`T312883`)
* tools' itertools functions were moved to :mod:`tools.itertools` submodule
* tools' collections classes were moved to :mod:`tools.collections` submodule
* Set successful login status for the OAuth case (:phab:`T313571`)

7.5.0

-----
*22 July 2022*

* Add support for blkwiki (:phab:`T310875`)
* L10N Updates
* Fix duplicate source detection in :meth:`pywikibot.WikidataBot.user_add_claim_unless_exists`
* :mod:`pywikibot.textlib`.tzoneFixedOffset class was renamed to :class:`pywikibot.time.TZoneFixedOffset`
* Wrapper method :meth:`parsevalue()<pywikibot.site._datasite.DataSite.parsevalue>`
around wbparsevalue was added (:phab:`T112140`, :phab:`T312755`)
* L10N updates
* Fix cp encodings in :func:`get_charset_from_content_type()
<comms.http.get_charset_from_content_type>` (:phab:`T312230`)
* New :mod:`pywikibot.time` module with new functions in addition to `Timestamp`
* :meth:`Page.revisions()<page.BasePage.revisions>` supports more formats/types for
starttime and endtime parameters, in addition to those allowed by
:meth:`Timestamp.fromISOformat()<pywikibot.Timestamp.fromISOformat>`.
* New :meth:`Timestamp.set_timestamp()<pywikibot.Timestamp.set_timestamp>` method
* Fully ISO8601 and POSIX format support with :class:`pywikibot.Timestamp`;
formats are compliant with MediaWiki supported formats
* Handle asynchronous page_put_queue after KeyboardInterrupt in Python 3.9+ (:phab:`T311076`)
* No longer expect a specific namespace alias in cosmetic_changes
:meth:`translateAndCapitalizeNamespaces
<cosmetic_changes.CosmeticChangesToolkit.translateAndCapitalizeNamespaces>`

7.4.0

-----
*26 June 2022*

* Provide Built Distribution with Pywikibot (:pep:`427`)
* Update `WRITE_ACTIONS` in used by :class:`api.Request<data.api.Request>`
* Move :func:`get_closest_memento_url<data.memento.get_closest_memento_url>` from weblinkchecker script to memento
module.
* Add :mod:`memento module<data.memento>` to fix memento_client package (:phab:`T185561`)
* L10N and i18n updates
* Fix Flow board topic continuation when iterating in reverse (:phab:`T138323`)
* Add Avestan transliteration
* Use Response.json() instead of json.loads(Response.text)
* Show an APIError if PetScanPageGenerator.query() fails (:phab:`T309538`)
* `login.py` is now a utiliy script even for site-package installation (:phab:`T309290`)
* `preload_sites.py` is now a utiliy script even for site-package installation (:phab:`T308912`)
* :attr:`generator_completed<bot.BaseBot.generator_completed>` became a public attribute
* Return gracefully from pwb.find_alternates if folder in user_script_paths does not exist (:phab:`T308910`)

7.3.0

-----
*21 May 2022*

* Add support for kcgwiki (:phab:`T305282`)
* Raise InvalidTitleError instead of unspecific ValueError in ProofreadPage (:phab:`T308016`)
* Preload pages if GeneratorFactory.articlenotfilter_list is not empty; also set attribute ``is_preloading``.
* ClaimCollection.toJSON() should not ignore new claim (:phab:`T308245`)
* use linktrail via siteinfo and remove `update_linkrtrails` maintenance script
* Print counter statistic for all counters (:phab:`T307834`)
* Use proofreadpagesinindex query module
* Prioritize -namespaces options in `pagegenerators.handle_args` (:phab:`T222519`)
* Remove `ThreadList.stop_all()` method (:phab:`T307830`)
* L10N updates
* Improve get_charset_from_content_type function (:phab:`T307760`)
* A tiny cache wrapper was added to hold results of parameterless methods and properties
* Increase workers in preload_sites.py
* Close logging handlers before deleting them (:phab:`T91375`, :phab:`T286127`)
* Clear _sites cache if called with pwb wrapper (:phab:`T225594`)
* Enable short creation of a site if family name is equal to site code
* Use `exc_info=True` with pywikibot.exception() by default (:phab:`T306762`)
* Make IndexPage more robust when getting links in Page ns (:phab:`T307280`)
* Do not print log header twice in log files (:phab:`T264235`)
* Do not delegate logging output to the root logger (:phab:`T281643`)
* Add `get_charset_from_content_type` to extract the charset from the content-type response header

Page 5 of 16

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.