Amplitude API v2 logger for Python
Project description
amplitude-logger
Python client for Amplitude API v2 (https://developers.amplitude.com/docs/http-api-v2)
Installation
pip install amplitude-logger
Usage
Amplitude API
-
Request your API key at https://developers.amplitude.com/
-
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
Release history Release notifications | RSS feed
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 hashes)
Built Distribution
Close
Hashes for amplitude_logger-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b60a8f46f579083d8a9b5ceef2b197af96e997bc8cd855ec5a66fb3adaed3558 |
|
MD5 | 9a0fdb7b1c5e464b744a7b5447e30623 |
|
BLAKE2b-256 | cd0532978064b062f2f758f9e9c93d7b714edaa7f2da30ee368ef0ebdec5a26f |