MediaWiki events
Wiki-tool builders & researchers rely on various sources of information about what’s happened and is currently happening in Wikipedia. These data sources tend to be structured in differently and contain incomplete or poorly structured information. Some datasources are queryable, but require complexity to “listen” to ongoing events while others are intended to only be used to “listen” to current events. ‘’MediaWiki events’’ is designed to minimize the frustration involved in process MediaWiki’s events.
Instal with pip: pip install mwevents
Note: Use of this library requires Python 3 or later.
Documentation: Comming soon!
- Example:
from mwevents.sources import API from mwevents import RevisionSaved, PageCreated api_source = API.from_api_url("http://en.wikipedia.org/w/api.php") listener = api_source.listener(events={RevisionSaved, PageCreated}) for event in listener: if isinstance(event, RevisionSaved): print(event.revision) else: # isinstance(event, PageCreated): print(event.page)
Contributors
None yet. See http://github.com/halfak/MediaWiki-events. Pull requests are encouraged.
Metadata
Release files for mwevents 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mwevents-0.1.0.tar.gz | 17.2 kB | Without provenance | Details for mwevents-0.1.0.tar.gz |
Release files / mwevents-0.1.0.tar.gz
| Download URL | mwevents-0.1.0.tar.gz |
|---|---|
| Size | 17.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8468e2c0e3c87176b8ba7786b3dc678e042cc57698976e16809ae126e2ae1a88
|
|
BLAKE2b-256 checksum How to use checksums |
0a129e724765807befbe80275445a281c2c4ee1198bfe75a8414999e3df671c1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for mwevents 0.1.0
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.