skillfed

mwtypes

A set of types for processing MediaWiki data.

mwtypes v0.4.0 247.8K downloads/30d#8,682 on PyPI2
Permissive license MIT DORMANT released

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 mwtypes

uv

uv add mwtypes

poetry

poetry add mwtypes

Installing 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

Environment :: Other EnvironmentIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyTopic :: Scientific/EngineeringTopic :: Software Development :: Libraries :: Python ModulesTopic :: Text Processing :: GeneralTopic :: Utilities

Tags

mediawiki data typesmediawiki python librarywikipedia api typesmediawiki schema normalizationmediawiki database typesparse mediawiki datamediawiki xml handling
mediawikiwikipediadata-normalization

More Scientific/Engineering packages