Collecting data with Trackers and Webhooks

  1. Home
  2. Docs
  3. Collecting data with Trackers and Webhooks
  4. Trackers – collecting data from your own applications
  5. Python Tracker
  6. Setup

Setup

Integration options

Tracker compatibility

As a programming language that lets you work more quickly and integrate your systems more effectively, Python is available in a huge number of different computing environments and platforms, from Civilization IV through Django framework to Ubuntu One.

To make the Snowplow Python Tracker work out-of-the-box with as many different Python programs as possible, we have tried to:

  1. Minimize external dependencies and third party libraries
  2. Provide setup instructions

Dependencies

To make the Snowplow Python Tracker work with as many different Python programs as possible, we have tried to keep external dependencies to a minimum. The main external dependencies currently are:

  • PyContracts – Python package that allows one to declare constraints on function parameters and return values.
  • Requests – HTTP library

These dependencies can be installed from the package manager of the host system or through PyPi.

In addition, since version 0.9.0, extra functionality, like the redis and celery emitters, was separated and needs to be explicitly installed, so as to keep the core version as light as possible.

Setup

PyPI

The Snowplow Python Tracker is published to PyPI, the the official third-party software repository for the Python programming language.

This makes it easy to either install the tracker locally, or to add it as a dependency into your own Python app.

pip

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

$ pip install snowplow-tracker --upgrade

**New in v0.9.0 : To install the Snowplow Tracker with extras:

# Redis extra $ pip install snowplow-tracker[redis] # Celery extra $ pip install snowplow-tracker[celery]
Code language: PHP (php)


To add the Snowplow Tracker as a dependency to your own Python app, edit your requirements.txt and add:

snowplow-tracker==0.9.0

easy_install

If you are still using easy_install:

$ easy_install -U snowplow-tracker

If you’d like to learn more about Snowplow Insights you can book a demo with our team, or if you’d prefer, you can try Snowplow technology for yourself quickly and easily.