Please see the Python integration docs for details. Assuming you have a local version of PostHog running, you can run python3 example.py to see the library in action ...