Skip to main content

py-3rdparty-mediawiki (Wikipush Toolkit)

Join the discussion pypi Github Actions Build GitHub issues GitHub closed issues PyPI Status API Docs License BITPlan

Python wrapper for mwclient with improvements for 3rd party wikis. Also known as the Wikipush Toolkit — a set of tools for automating MediaWiki page content handling using Python and a command line, presented at SMWCon Fall 2020. Works with any MediaWiki wiki: SMW wikis are queried natively; non-SMW wikis are supported by faking SMW-style queries for categories, enabling page pushing from wikis without Semantic MediaWiki installed.

Installation

pip install py-3rdparty-mediawiki

For MCP server support (for AI assistants):

pip install py-3rdparty-mediawiki[mcp]

Examples

wikipush

Copy pages between wikis:

wikipush -s smw -t test2 -q "[[Category:City]]|limit=5"
copying 4 pages from smw to test2
copying Demo:Tokyo ...✅
copying image File:SMW-Info-button.png ...✅
copying image File:Tokyo-Tsukishima-0011.jpg ...✅
copying Vienna ...✅
copying Warsaw ...✅
copying image File:6140285934 02e81b845f z.jpg ...✅
copying Demo:Würzburg ...✅

wikiupload

Upload files to a wiki:

wikiupload -t test --files car.png
uploading 1 files to test
1/1 ( 100%): uploading car.png ...✅

wikinuke

The default behavior is a dry run, listing whether the pages exist:

wikinuke -t test -p deleteMe1 deleteMe2 deleteMe3
deleting 3 pages in test (dry run)
1/3 (  33%): deleting deleteMe1 ...👍
2/3 (  67%): deleting deleteMe2 ...👍
3/3 ( 100%): deleting deleteMe3 ...👍

Use -f to force actual deletion:

wikinuke -t test -p deleteMe1 deleteMe2 deleteMe3 -f
deleting 3 pages in test (forced)
1/3 (  33%): deleting deleteMe1 ...✅
2/3 (  67%): deleting deleteMe2 ...✅
3/3 ( 100%): deleting deleteMe3 ...✅

wikiedit

Search and replace content in wiki pages:

wikiedit -t test -q "[[isA::CFP]]" --search "CALL FOR PAPER" --replace "CFP"
editing 1 pages in test (dry run)
1/1 ( 100%): editing CALL FOR PAPER Journal: Advances in Multimedia ... 👍

wikiuser

Configure wiki credentials interactively:

wikiuser
email: john@doe.com
scriptPath: /w
user: jd
url: http://www.semantic-mediawiki.org
version: Mediawiki 1.33
wikiId: smw
password: ****
shall i store jd smw? yes/no y/n

Documentation

Wiki

Metadata

Release files for py-3rdparty-mediawiki 0.19.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for py-3rdparty-mediawiki 0.19.8
File Size Uploaded Provenance Actions
py_3rdparty_mediawiki-0.19.8.tar.gz 90.5 kB With provenance Details for py_3rdparty_mediawiki-0.19.8.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for py-3rdparty-mediawiki 0.19.8
File Interpreter ABI Platform Actions
py_3rdparty_mediawiki-0.19.8-py3-none-any.whl Python 3 none any Details for py_3rdparty_mediawiki-0.19.8-py3-none-any.whl

Total release size: 152.5 kB

Release files / py_3rdparty_mediawiki-0.19.8.tar.gz

Download URL py_3rdparty_mediawiki-0.19.8.tar.gz
Size 90.5 kB
Tags Source
SHA-256 checksum
How to use checksums
8e2123ff3225d8c5d18d3c6bf35dc0b5e744a7bbc7ec1cea1ca85cf5c132af7a
BLAKE2b-256 checksum
How to use checksums
4a5fdd153ea87b093ac83ab0bc2a51470e6ceec9a25dd168d353630677271cf0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.

Transparency log

Release files / py_3rdparty_mediawiki-0.19.8-py3-none-any.whl

Download URL py_3rdparty_mediawiki-0.19.8-py3-none-any.whl
Size 62.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
331d30fbac08b1f7a0d154095d95dc6e6dfcf36ff307814f0e1b9723d09f5189
BLAKE2b-256 checksum
How to use checksums
26a70e2d7c4bcba656d9f1bd239007bca066c8db2adfadf8a0d026d47b3ea3a4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.

Transparency log

Security for py-3rdparty-mediawiki 0.19.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for py_3rdparty_mediawiki-0.19.8.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 3, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.19.8 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page