Skip to main content

Trophy Python SDK

The Trophy Python SDK provides convenient access to the Trophy API from applications written in the Python language.

Trophy provides APIs and tools for adding gamification to your application, keeping users engaged through rewards, achievements, streaks, and personalized communication.

Installation

You can install the package via pip:

pip install trophy

Usage

The package needs to be configured with your account's API key which is available in the Trophy dashboard.

from trophy import EventRequestUser, TrophyApi

client = TrophyApi(
    api_key="YOUR_API_KEY",
)

client.metrics.event(
    key="words-written",
    user=EventRequestUser(
        id="18",
        email="jk.rowling@harrypotter.com",
        tz="Europe/London",
    ),
    value=750.0,
)

Documentation

See the Trophy API Docs for more information on the accessible endpoints.

Release files for trophy 1.25.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for trophy 1.25.0
File Size Uploaded
trophy-1.25.0.tar.gz 136.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for trophy 1.25.0
File Interpreter ABI Platform
trophy-1.25.0-py3-none-any.whl Python 3 none any Details

Total release size: 460.0 kB

Release files / trophy-1.25.0.tar.gz

Download URL trophy-1.25.0.tar.gz
Size 136.1 kB
Tags Source
SHA-256 checksum
How to use checksums
65c71182d989efc717a8129863e5325693b343dbe3cee5470bc352dab25cdd02
BLAKE2b-256 checksum
How to use checksums
6624877049d15ccab4b1c1f7ce1fc07442b77a680e346f2dde87bd89ee059b80
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 8, 2026.

Transparency log

Release files / trophy-1.25.0-py3-none-any.whl

Download URL trophy-1.25.0-py3-none-any.whl
Size 323.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6893a8a1ba7efc74316879db8e027ad84483e315ba3a64098eccf0d997d2c0b8
BLAKE2b-256 checksum
How to use checksums
838fa2882d2ca3ef573ecaa38075158344f3dc53c6c57bc5ea3fc7fa298ae07f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 8, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.25.0 This release

2 release files

1.22.0

2 release files

1.21.1

2 release files

1.21.0

2 release files

1.20.1

2 release files

1.19.0

2 release files

1.18.0

2 release files

1.17.0

2 release files

1.14.0

2 release files

1.10.0

2 release files

1.9.1

2 release files

1.8.0

2 release files

1.7.0

2 release files

1.6.0

2 release files

1.5.0

2 release files

1.4.0

2 release files

1.3.4

2 release files

1.2.1

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.42

2 release files

1.0.40

2 release files

1.0.38

2 release files

1.0.36

2 release files

1.0.35

2 release files

1.0.32

2 release files

1.0.31

2 release files

1.0.30

2 release files

1.0.29

2 release files

1.0.28

2 release files

1.0.27

2 release files

1.0.26

2 release files

1.0.25

2 release files

1.0.24

2 release files

1.0.20

2 release files

1.0.19

2 release files

1.0.18

2 release files

1.0.17

2 release files

1.0.16

2 release files

1.0.15

2 release files

1.0.14

2 release files

1.0.13

2 release files

1.0.12

2 release files

1.0.9

2 release files

1.0.8

2 release files

1.0.7

2 release files

1.0.6

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.1.11

2 release files

0.1.10

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page