Skip to main content

A set of utilities for processing MediaWiki XML dump data.

Project description

# MediaWiki XML

This library contains a collection of utilities for efficiently processing MediaWiki’s XML database dumps. There are two important concerns that this module intends to address: complexity and performance of streaming XML parsing. This library enables memory efficent stream processing of XML dumps with a simple [iterator]( strategy. This library also implements a distributed processing strategy (see [map()]( that enables parallel processing of many XML dump files at the same time.

## Example

>>> import mwxml
>>> dump = mwxml.Dump.from_file(open("dump.xml"))
>>> print(, dump.site_info.dbname)
Wikipedia enwiki
>>> for page in dump:
...     for revision in page:
...        print(

## Author * Aaron Halfaker –

## See also * *

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for mwxml, version 0.3.3
Filename, size File type Python version Upload date Hashes
Filename, size mwxml-0.3.3-py2.py3-none-any.whl (32.6 kB) File type Wheel Python version 3.5 Upload date Hashes View
Filename, size mwxml-0.3.3.tar.gz (16.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page