Skip to main content

No project description provided

Project description



Python API for Amplitude Analytics Logging -

This API is a simple (unofficial) wrapper for the Amplitude HTTP API

1. Install amplitude-python

Potential preparation before installing: create and activate virtualenv or conda environment

1.1 Install from pypi with conda or pip

pip install amplitude-python

1.2 Install from github

$ git clone
$ cd amplitude-python
$ python instal

2. Logging to Amplitude with amplitude-python

Recommend having a look at Amplitude HTTP API Documentation before start logging.

import amplitude

# initialize amplitude logger
amplitude_logger = amplitude.AmplitudeLogger(api_key = "SOME_API_KEY_STRING")

# example event
event_args = {"device_id":"somedeviceid", "event_type":"justtesting",
"event_properties":{"property1":"somevalue", "propertyN":"anothervalue"}
event = amplitude_logger.create_event(**event_args)

# send event to amplitude

3. Test amplitude-python module

python test

Project details

Download files

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

Files for amplitude-python, version 0.13
Filename, size File type Python version Upload date Hashes
Filename, size amplitude-python-0.13.tar.gz (3.3 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page