Metadata-Version: 2.0
Name: mwreverts
Version: 0.1.3
Summary: A set of utilities for detecting reverts in MediaWiki revisions.
Home-page: https://github.com/mediawiki-utilities/python-mwreverts
Author: Aaron Halfaker
Author-email: aaron.halfaker@gmail.com
License: MIT
Platform: UNKNOWN

# MediaWiki reverts

This library provides a set of utilities for detecting reverting activity in
MediaWiki projects.

* **Installation:** ``pip install mwreverts``
* **Documentation:** https://pythonhosted.org/mwreverts
* **Repositiory:** https://github.com/mediawiki-utilities/python-mwreverts
* **License:** MIT

## Basic example

    >>> import mwreverts
    >>>
    >>> checksum_revisions = [
    ...     ("aaa", {'rev_id': 1}),
    ...     ("bbb", {'rev_id': 2}),
    ...     ("aaa", {'rev_id': 3}),
    ...     ("ccc", {'rev_id': 4})
    ... ]
    >>>
    >>> list(mwreverts.detect(checksum_revisions))
    [Revert(reverting={'rev_id': 3},
            reverteds=[{'rev_id': 2}],
            reverted_to={'rev_id': 1})]

## Author
* Aaron Halfaker -- https://github.com/halfak

## See also 
* https://meta.wikimedia.org/wiki/Research:Revert


