Jump to content

Python/Wmflib

From Wikitech
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

A Python package that contains custom modules to interact with the WMF production infrastructure.

It can be used in any script throughout the fleet as it doesn't require any special privilege to be run, as opposed to Spicerack and its Cookbooks and removes the need to re-implement each time the same functionalities over and over again.

For the current available modules see its documentation.

It's available both on PyPI as wmflib and apt.wikimedia.org as python3-wmflib and its source code lives on Gerrit in the operations/software/pywmflib repository.

When releasing a new version don't forget to upgrade any venv-based deployment (usually with the *-deploy repository) that use it, like for example Netbox.