Skip to main content

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


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.1.zip (10.1 kB view details)

Uploaded Source

mwsessions-0.0.1.tar.gz (4.9 kB view details)

Uploaded Source

File details

Details for the file mwsessions-0.0.1.zip.

File metadata

  • Download URL: mwsessions-0.0.1.zip
  • Upload date:
  • Size: 10.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for mwsessions-0.0.1.zip
Algorithm Hash digest
SHA256 3e5e11f178dae80bdbf3bdf20587bd932bdf8893dc865c4cfcd97fed6e440bb8
MD5 2ec45f402383f6c8b6cd49ac3b0ef84b
BLAKE2b-256 4f39c06a168e3cad09e0d103a920ca79fac486f123a62da1516613d39489b1ab

See more details on using hashes here.

File details

Details for the file mwsessions-0.0.1.tar.gz.

File metadata

  • Download URL: mwsessions-0.0.1.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for mwsessions-0.0.1.tar.gz
Algorithm Hash digest
SHA256 176440558ee0c988d0e726495a392620825ce9548eabb52efe96d7ccc2988268
MD5 5c3c8f71e4eb013adfad04d8d653318f
BLAKE2b-256 bd4df516dc3cf032622ea08a19cfcd2b7fa446b754c881cb1043e5d051927a55

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page