Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Ampli Python Wrapper

An example app using the Ampli Python Wrapper using basic Python

Usage

Setup the project

You will need to do the following before running the app.

pip install -r requirements.txt

cp .env.example .env

Run the app

You can run the app using the events from our sample tracking plan. This will log events to your Amplitude project.

  • python app.py

Pull your Ampli Wrapper

If you want to use your own tracking plan and Ampli Wrapper

  1. npm i -g @amplitude/ampli
  2. ampli pull
  3. Edit .env file add your API key
  4. Update app.py to use the events from your tracking plan

Project structure

  • README.md - you are here *
  • ampli/
    • ampli.py - Generated SDK, don't modify by hand. Update with ampli pull
    • requirements.txt - Dependencies of ampli wrapper
  • app.py - Example user app using Ampli wrapper. A good place to start.
  • plugins.py - Example plugin for Event enrichment