Skip to main content

Asyncio Snowplow event tracker for Python. Add analytics to your Python and Django apps, webapps and games

Project description

Build Status Test Coverage http://img.shields.io/badge/license-Apache--2-blue.svg?style=flat

Pypi Snowplow Tracker Python Versions Monthly Downloads

Overview

This is a fork of to the official Snowplow Python Tracker that leverages asyncio for high-performance event tracking.

With this tracker you can collect event data from your Python-based applications, games or Python web servers/frameworks.

Example

from aio_snowplow_tracker import Tracker, Emitter, Subject
import asyncio

async def main():
    e = Emitter('d3rkrsqld9gmqf.cloudfront.net')
    s = Subject().set_user_id('5432')
    t = Tracker(e, subject=s, app_id='example-app')
    await t.track_page_view('http://example.com', 'Title')

asyncio.run(main())

Installation

To install the Snowplow Python Tracker locally, assuming you already have Pip installed:

$ pip install aio-snowplow-tracker --upgrade

To install the Snowplow Tracker with extras:

# Redis extra
$ pip install aio-snowplow-tracker[redis]
# Celery extra
$ pip install aio-snowplow-tracker[celery]

Find out more

The official Snowplow Python Tracker documentation is applicable to this library as well, with some minor changes:

  1. import aio_snowplow_tracker instead of import snowplow_tracker.

  2. await Tracker calls.

Technical Docs

Contributing

techdocs

contributing

Technical Docs

Contributing

Maintainer Quickstart

Assuming pyenv is installed

host$ git clone git@github.com:snowplow/snowplow-python-tracker.git
host$ cd snowplow-python-tracker
host$ pyenv install 3.7.11 && pyenv install 3.8.11 && pyenv install 3.9.6
host$ ./run-tests.sh deploy
host$ ./run-tests.sh test

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

aio-snowplow-tracker-1.0.0a3.tar.gz (25.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aio_snowplow_tracker-1.0.0a3-py3-none-any.whl (29.3 kB view details)

Uploaded Python 3

File details

Details for the file aio-snowplow-tracker-1.0.0a3.tar.gz.

File metadata

  • Download URL: aio-snowplow-tracker-1.0.0a3.tar.gz
  • Upload date:
  • Size: 25.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for aio-snowplow-tracker-1.0.0a3.tar.gz
Algorithm Hash digest
SHA256 ece7a9ea1f1325e110c7d354e2e4fa75fdddf8b63bbcf21bca47dc9dd8363f3e
MD5 b8485fc1ada35f66198bbe7f7f2c3608
BLAKE2b-256 dc10869a2137489e6a5e401af548da4f6d59fe8a0e910080612828213de0dbea

See more details on using hashes here.

File details

Details for the file aio_snowplow_tracker-1.0.0a3-py3-none-any.whl.

File metadata

File hashes

Hashes for aio_snowplow_tracker-1.0.0a3-py3-none-any.whl
Algorithm Hash digest
SHA256 8b19869dc74db8de05f409f9909b7ded5fc1ae854e20be682fc199097536314c
MD5 e90f2db073f0ead929e8017d8b9e76a6
BLAKE2b-256 0fbe7a7bfd9ba1b75793e5e0c26aac6b869d8caae774b778adcb3dda9bfc0397

See more details on using hashes here.

Supported by

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