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.
Installation: pip install mwsessions
Documentation: https://pythonhosted.org/mwsessions
License: MIT
## 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 | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
mwsessions-0.0.2.zip
(13.9 kB
view details)
mwsessions-0.0.2.tar.gz
(7.4 kB
view details)
File details
Details for the file mwsessions-0.0.2.zip.
File metadata
- Download URL: mwsessions-0.0.2.zip
- Upload date:
- Size: 13.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d55466f91fe7074253ad6eeb76d0c62b6d15c8091ff3a84318a88e61e94f6d71
|
|
| MD5 |
bc0be36aa2c5f23e06d31b473829ad7a
|
|
| BLAKE2b-256 |
80a9d146bf04cc7ba5a0e3262efcaa1a2c997970cc809e90df69e5692238fde5
|
File details
Details for the file mwsessions-0.0.2.tar.gz.
File metadata
- Download URL: mwsessions-0.0.2.tar.gz
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f8bac7fd5816b97026aba929ccb737836bae1218cecd723100de970f36fa1a17
|
|
| MD5 |
52eaacdec64414f560abc01a423cb116
|
|
| BLAKE2b-256 |
ec6413726fa3fd6495bfc09d5ab370e96277deccb084218cb4673b69b0cc2b34
|