Install & Compatibility
Where this runs
tested against v0.4.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.044s · 18.2MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 1.6s · import 0.040s · 19MB
16MB installed
● package 16MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
Page
✓ from mwtypes import Page
Standard import for Page type.
Revision
✓ from mwtypes import Revision
Standard import for Revision type.
Basic usage creating a Page with a Revision.
from mwtypes import Page, Revision
# Create a simple page object
page = Page(
id=123,
title='Test Page',
namespace=0,
revisions=[Revision(id=1, text='Hello World')]
)
print(page.title)
Errors
Common errors & fixes
ImportError: No module named 'mwtypes'
mwtypes not installed or environment issue.
fixRun `pip install mwtypes`.
AttributeError: 'Page' object has no attribute 'revisions'
Revisions are stored under `page.revisions` but may be missing if page has no revisions.
fixCheck `page.revisions is not None` before accessing.
Upgrade
Version history
0.4.0latest on PyPI · released Jul 9, 2024
Audit
Dependencies
No dependency data recorded yet.