Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

A set of utilities for group MediaWiki user actions into sessions.

Project description

# MediaWiki Session Analysis

This library provides a set of utilities for group MediaWiki user actions into sessions.

## Basic example

>>> import mwsessions
>>>
>>> user_events = [
...     ("Willy on wheels", 20150101000000, {'rev_id': 1}),
...     ("Walter", 20150101000001, {'rev_id': 2}),
...     ("Willy on wheels", 20150101000001, {'rev_id': 3}),
...     ("Walter", 100035, {'rev_id': 4}),
...     ("Willy on wheels", 103602, {'rev_id': 5})
... ]
>>>
>>> for user, events in mwsessions.sessionize(user_events):
...     (user, events)
...
('Willy on wheels', [{'rev_id': 1}, {'rev_id': 3}])
('Walter', [{'rev_id': 2}, {'rev_id': 4}])
('Willy on wheels', [{'rev_id': 5}])

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

Project details


Release history Release notifications

This version
History Node

0.0.2

History Node

0.0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
mwsessions-0.0.2.tar.gz (7.4 kB) Copy SHA256 hash SHA256 Source None Sep 8, 2015
mwsessions-0.0.2.zip (13.9 kB) Copy SHA256 hash SHA256 Source None Sep 8, 2015

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page