Skip to main content

Amplitude API v2 logger for Python

Project description

amplitude-logger

GitHub-issues

Python client for Amplitude API v2 (https://developers.amplitude.com/docs/http-api-v2)

Installation

pip install amplitude-logger

Usage

Amplitude API

  1. Request your API key at https://developers.amplitude.com/

  2. Use that token to initialize client:

from amplitude import AmplitudeLogger
api_key = 'xxxxxxxxxxxxxxx'

amplitude_logger = AmplitudeLogger(api_key=api_key)

event_args = {
    "user_id": "USER_ID",
    "event_type": "Event Name",
    "event_properties": {"param": "value", "data": "value"},
}
event = amplitude_logger.create_event(**event_args)
amplitude_logger.log_event(event)

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

amplitude-logger-1.0.0.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

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

amplitude_logger-1.0.0-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

Details for the file amplitude-logger-1.0.0.tar.gz.

File metadata

  • Download URL: amplitude-logger-1.0.0.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.24.0 setuptools/51.3.3 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

File hashes

Hashes for amplitude-logger-1.0.0.tar.gz
Algorithm Hash digest
SHA256 a9385c5af78258e77ccf14c8702a70bec5090fce54f08266f826ee73d1d2fabe
MD5 70639adc5d72c6394e6211e64801ec6e
BLAKE2b-256 a459bbba124b74dd56de994004ac15201ccaee5791579ee0b8697989b4ba0604

See more details on using hashes here.

File details

Details for the file amplitude_logger-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: amplitude_logger-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 2.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.24.0 setuptools/51.3.3 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

File hashes

Hashes for amplitude_logger-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b60a8f46f579083d8a9b5ceef2b197af96e997bc8cd855ec5a66fb3adaed3558
MD5 9a0fdb7b1c5e464b744a7b5447e30623
BLAKE2b-256 cd0532978064b062f2f758f9e9c93d7b714edaa7f2da30ee368ef0ebdec5a26f

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