--- id: mwtypes version: "0.4.0" license: MIT license_treatment: permissive maintenance: dormant --- # mwtypes — A set of types for processing MediaWiki data. License: permissive · Maintenance: dormant · Downloads: 247.8K/mo ## 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 above — 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 pip install mwtypes uv add mwtypes 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: unspecified - Install friction: low - Maintenance: dormant - Downloads: 247.8K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags mediawiki data types, mediawiki python library, wikipedia api types, mediawiki schema normalization, mediawiki database types, parse mediawiki data, mediawiki xml handling, mediawiki, wikipedia, data-normalization [View on SkillFed](https://skillfed.io/packages/mwtypes) · [View on PyPI](https://pypi.org/project/mwtypes/)