mwtypes
A set of types for processing MediaWiki data.
What it is and what it does
mwtypes is a Python library that defines a standard set of classes for representing MediaWiki data—the kind you encounter in Wikipedia databases, XML dumps, and API responses. Its purpose is to bridge naming and structural differences between these three sources, so you can work with MediaWiki information consistently regardless of where it came from.
The library depends only on jsonable for serialization support. It's designed for developers working with MediaWiki data programmatically—whether you're parsing Wikipedia dumps, querying the MediaWiki API, or reading database exports. The package has been stable since 2015 but is currently dormant, with no active development; the last release was in July 2024.
Use it for:
- Parse and normalize Wikipedia or MediaWiki dump data into consistent Python objects.
- Convert between different MediaWiki API response formats and internal database representations.
- Build tools that read MediaWiki data from multiple sources and need a unified type system.
- Serialize MediaWiki objects to JSON for storage or transmission using standardized schemas.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides standardized Python classes for MediaWiki data types, normalizing representations across database, XML dumps, and API responses.
Yes, if you are working directly with MediaWiki or Wikipedia data and need a stable, lightweight type system to normalize across sources. The permissive MIT license and low install friction make it a safe choice. However, verify that the included types match your specific use case, and be aware that maintenance is dormant—if you need active support or compatibility updates for newer MediaWiki API versions, you may need to maintain a fork or seek alternatives.
Install
mwtypes on PyPI
pip
pip install mwtypesuv
uv add mwtypespoetry
poetry add mwtypesInstalling mwtypes
Before you install
Low install friction with a single lightweight dependency (jsonable). Dormant maintenance status—last release was 2024-07-09 and no commits since then—but the repository remains active and the package has been stable since its 2015 initial release.
License in practice
MIT license is permissive; you can use, modify, and redistribute this package with minimal restrictions, provided you retain the license notice.
Quickstart
pip install mwtypes
import mwtypes
# Use mwtypes classes to work with MediaWiki data structures
Verify before relying
- What specific MediaWiki data types (e.g., User, Page, Revision, Edit) are included in the class set.
- Whether the library is actively maintained for compatibility with current MediaWiki API versions.
- Performance characteristics when handling large-scale MediaWiki data or dumps.
Package facts
| License | MIT (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — jsonable |
| Maintenance | dormant — 766 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 247,802/month — #8,682 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: mwtypes-0.4.0-py2.py3-none-any.whl
Tags
More Scientific/Engineering packages
NumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
pandaspandas provides fast, flexible data structures…
permissive · top 100 on PyPI
scipyscipy provides numerical algorithms for…
permissive · top 100 on PyPI
scikit-learnscikit-learn provides a comprehensive Python…
permissive · top 1,000 on PyPI
dilldill extends Python's pickle module to…
permissive · top 1,000 on PyPI
multiprocessMultiprocess is an enhanced fork of Python's…
permissive · top 1,000 on PyPI
mwcliProvides helper functions and classes for…
permissive · top 15,000 on PyPI
mwxmlEfficiently parse and stream-process MediaWiki…
permissive · top 15,000 on PyPI
mwclientmwclient is a Python client library for the…
permissive · top 15,000 on PyPI
wikipediaProvides simple Python access to Wikipedia…
permissive · top 5,000 on PyPI
mwparserfromhellParses MediaWiki wikicode into a queryable…
permissive · top 5,000 on PyPI
pywikibotPywikibot is a Python framework that interfaces…
permissive · top 15,000 on PyPI
wikitextparserParses and manipulates MediaWiki wikitext…
copyleft · top 15,000 on PyPI
zhconvConverts text between Simplified and…
copyleft · top 15,000 on PyPI
w3libw3lib provides utility functions for common web…
permissive · top 5,000 on PyPI
Wikipedia-APIWikipedia-API is a Python wrapper for…
permissive · top 5,000 on PyPI