Skip to main content

# MediaWiki Wikibase

This package provides basic functionality for processing and normalizing Wikidata Entity JSON.

## Usage

`python >>> import mwbase >>> import requests >>> >>> wb_doc = requests.get( ... "https://wikidata.org/wiki/Special:EntityData/Q42.json").json() >>> >>> entity = mwbase.Entity.from_json(wb_doc['entities']['Q42']) >>> >>> entity.labels['en'] 'Douglas Adams' >>> entity.properties.keys() dict_keys(['P1273', 'P1411', 'P269', 'P569', 'P950', 'P373', 'P140', 'P2604', 'P2168', 'P2626', 'P3762', 'P244', 'P691', 'P2605', 'P1263', 'P856', 'P108', 'P2019', 'P20', 'P69', 'P1559', 'P40', 'P1695', 'P18', 'P119', 'P106', 'P1953', 'P735', 'P214', 'P26', 'P1442', 'P1303', 'P2048', 'P1816', 'P509', 'P1670', 'P103', 'P349', 'P646', 'P2469', 'P2387', 'P409', 'P800', 'P19', 'P2191', 'P21', 'P2188', 'P2163', 'P910', 'P1477', 'P268', 'P3430', 'P3106', 'P434', 'P271', 'P22', 'P1003', 'P1617', 'P551', 'P949', 'P1006', 'P1015', 'P2611', 'P1417', 'P3373', 'P2963', 'P1207', 'P31', 'P866', 'P1266', 'P1233', 'P1258', 'P1005', 'P1284', 'P1196', 'P906', 'P734', 'P25', 'P998', 'P227', 'P947', 'P1315', 'P535', 'P3417', 'P648', 'P570', 'P172', 'P1415', 'P1368', 'P2435', 'P27', 'P396', 'P1375', 'P1412', 'P345', 'P3222', 'P213']) >>> entity.sitelinks.keys() dict_keys(['shwiki', 'eswikiquote', 'ruwikiquote', 'ruwiki', 'itwikiquote', 'bewiki', 'mgwiki', 'hewikiquote', 'frwiki', 'arzwiki', 'gawiki', 'cswikiquote', 'fawikiquote', 'huwikiquote', 'elwiki', 'jvwiki', 'rowiki', 'etwiki', 'huwiki', 'ukwiki', 'azwiki', 'trwiki', 'bgwikiquote', 'kowiki', 'euwiki', 'nlwikiquote', 'mkwiki', 'plwiki', 'dawiki', 'dewiki', 'eowikiquote', 'svwiki', 'zhwiki', 'cawiki', 'tawiki', 'idwiki', 'mlwiki', 'nnwiki', 'eswiki', 'viwiki', 'frwikiquote', 'lawiki', 'bswiki', 'enwiki', 'scwiki', 'enwikiquote', 'elwikiquote', 'fiwiki', 'mrwiki', 'fiwikiquote', 'simplewiki', 'jawiki', 'scowiki', 'be_x_oldwiki', 'iswiki', 'zhwikiquote', 'nowiki', 'etwikiquote', 'fawiki', 'arwiki', 'plwikiquote', 'lvwiki', 'bnwiki', 'bgwiki', 'slwiki', 'cywiki', 'iowiki', 'astwiki', 'kawiki', 'hewiki', 'barwiki', 'bswikiquote', 'dewikiquote', 'ltwikiquote', 'vepwiki', 'hywikiquote', 'ocwiki', 'mrjwiki', 'skwiki', 'ptwikiquote', 'ptwiki', 'glwikiquote', 'liwikiquote', 'glwiki', 'warwiki', 'trwikiquote', 'srwiki', 'azwikiquote', 'itwiki', 'thwikiquote', 'svwikiquote', 'hywiki', 'eowiki', 'cswiki', 'sqwiki', 'urwiki', 'simplewikiquote', 'skwikiquote', 'hrwiki', 'nlwiki']) `

Metadata

Release files for mwbase 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mwbase 0.1.5
File Size Uploaded Provenance Actions
mwbase-0.1.5.tar.gz 10.4 kB Without provenance Details for mwbase-0.1.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mwbase 0.1.5
File Interpreter ABI Platform Actions
mwbase-0.1.5-py3-none-any.whl Python 3 none any Details for mwbase-0.1.5-py3-none-any.whl

Total release size: 24.1 kB

Release files / mwbase-0.1.5.tar.gz

Download URL mwbase-0.1.5.tar.gz
Size 10.4 kB
Tags Source
SHA-256 checksum
How to use checksums
50b2f1ea4562ffe16c8faedcbe4ce71c19fe2798aa0ea235c52d2a8d0cc2d7c3
BLAKE2b-256 checksum
How to use checksums
4f156ffc916ca6c4d60dc9fc2f64d3c4c7dc4f63faff3068770a192ed3e6c435
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.15.0 CPython/3.7.7

Release files / mwbase-0.1.5-py3-none-any.whl

Download URL mwbase-0.1.5-py3-none-any.whl
Size 13.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9215644c8d38b08ecb4379fba3f620df71822ccf8aed0cd48b482a774baa9e0d
BLAKE2b-256 checksum
How to use checksums
449d3e4ddf62c3b08adddd6ae6f0b54128e1abf0a9cf105e077b03d62312c348
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.15.0 CPython/3.7.7

Security for mwbase 0.1.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page