Skip to main content

backend reporting via a worker/queue system

Project description

event-reporter

A Python wrapper for backend reporting via a worker/queue system.

travis

Codecov

System flow:

Store event quickly on webserver [e.g. within a flask endpoint]:

from event_reporter import EventReporter
from redis import StrictRedis

er = EventReporter(conn=StrictRedis())

er.store('ga', 'event', '<uuid4 clientid>', aip='1', uip='1.2.3.4', ds='web')

Fetch event within worker and dispatch to final destination:

from event_reporter import EventReporter
from redis import StrictRedis

er = EventReporter(conn=StrictRedis())

r = er.fetch()

er.dispatch(r)

Testing

export UA_ID='My_UA_ID'

nosetests -s

.. and check your GA property to see the data.

Project details


Download files

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

Source Distribution

event-reporter-1.0.2.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

event_reporter-1.0.2-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file event-reporter-1.0.2.tar.gz.

File metadata

  • Download URL: event-reporter-1.0.2.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.6.5

File hashes

Hashes for event-reporter-1.0.2.tar.gz
Algorithm Hash digest
SHA256 5cb5bea337fe8dc622e6cea1e34d1fac466045bf404fe84a5ce76c6246cbb826
MD5 7d64e72caa29f213d90a8ba040aff9b6
BLAKE2b-256 820f480136b2e7fa7459d0de6f570dc7405371afe07ebd2b0d0ada5c741ea522

See more details on using hashes here.

File details

Details for the file event_reporter-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: event_reporter-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.6.5

File hashes

Hashes for event_reporter-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1b7bffbe987152fd1cc554b724d90ff49267c6c958828cff1398f2b8ddc67ddb
MD5 d2976f2032f1a76eb29cbc85adb7d46c
BLAKE2b-256 dbdccb6219c83d2c4a6448073fd728d6193679613fa0f9da44ad93aebc771054

See more details on using hashes here.

Supported by

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