tardis.analytics package

Submodules

tardis.analytics.apps module

class tardis.analytics.apps.AnalyticsConfig(app_name, app_module)

Bases: django.apps.config.AppConfig

name = 'tardis.analytics'
verbose_name = 'Analytics framework'

tardis.analytics.ga module

Google analyitics tracking

tardis.analytics.ga.track_download(label, session_id, ip, user, total_size=None, num_files=None, ua=None)
tardis.analytics.ga.track_login(label, session_id, ip, user)
tardis.analytics.ga.track_logout(label, session_id, ip, user)

tardis.analytics.tracker module

Generic tracking and analytics interface Supports Google Analytics through ga.py, others may follow

class tardis.analytics.tracker.IteratorTracker(iterator, tracker_data=None)

Bases: object

wraps file iterator to track successful and incomplete downloads

close()
next()
tardis.analytics.tracker.service = <module 'tardis.analytics.ga' from '/home/docs/checkouts/readthedocs.org/user_builds/mytardis/checkouts/develop/tardis/analytics/ga.pyc'>

This can become a setting to other service in the future

Module contents