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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

trophy-1.21.1.tar.gz (120.9 kB view details)

Uploaded Source

Built Distribution

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

trophy-1.21.1-py3-none-any.whl (281.1 kB view details)

Uploaded Python 3

File details

Details for the file trophy-1.21.1.tar.gz.

File metadata

  • Download URL: trophy-1.21.1.tar.gz
  • Upload date:
  • Size: 120.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for trophy-1.21.1.tar.gz
Algorithm Hash digest
SHA256 4bdd61e91d9a327a93f178403fffec0730e310129ea654604cb889e5514a833e
MD5 d7650a9852621190c4eb6cfcc821b86f
BLAKE2b-256 f07e8f75c21da4fb6529f08bf0c25820d65f493ec42fbb69fd12b8628cb07a70

See more details on using hashes here.

Provenance

The following attestation bundles were made for trophy-1.21.1.tar.gz:

Publisher: publish-package.yml on trophyso/trophy-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file trophy-1.21.1-py3-none-any.whl.

File metadata

  • Download URL: trophy-1.21.1-py3-none-any.whl
  • Upload date:
  • Size: 281.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for trophy-1.21.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0c0c547014e5d051c38df1d3d2cd7305bcc99f0ae7065fe72b6f0448db8160e3
MD5 cd76a9ac0656834f502c5eea29a9923e
BLAKE2b-256 c8f5fad222c4343f013ac91d64947f3b1444944386fbbe2462a9e36ec0e59b5d

See more details on using hashes here.

Provenance

The following attestation bundles were made for trophy-1.21.1-py3-none-any.whl:

Publisher: publish-package.yml on trophyso/trophy-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

1.21.1 This release

2 files

1.21.0

2 files

1.20.1

2 files

1.19.0

2 files

1.18.0

2 files

1.17.0

2 files

1.16.0

2 files

1.15.0

2 files

1.14.0

2 files

1.13.0

2 files

1.12.0

2 files

1.11.0

2 files

1.10.0

2 files

1.9.1

2 files

1.8.0

2 files

1.7.0

2 files

1.6.0

2 files

1.5.0

2 files

1.4.0

2 files

1.3.4

2 files

1.2.1

2 files

1.1.2

2 files

1.1.1

2 files

1.1.0

2 files

1.0.42

2 files

1.0.40

2 files

1.0.38

2 files

1.0.36

2 files

1.0.35

2 files

1.0.34

2 files

1.0.32

2 files

1.0.31

2 files

1.0.30

2 files

1.0.29

2 files

1.0.28

2 files

1.0.27

2 files

1.0.26

2 files

1.0.25

2 files

1.0.24

2 files

1.0.23

2 files

1.0.22

2 files

1.0.21

2 files

1.0.20

2 files

1.0.19

2 files

1.0.18

2 files

1.0.17

2 files

1.0.16

2 files

1.0.15

2 files

1.0.14

2 files

1.0.13

2 files

1.0.12

2 files

1.0.11

2 files

1.0.10

2 files

1.0.9

2 files

1.0.8

2 files

1.0.7

2 files

1.0.6

2 files

1.0.5

2 files

1.0.4

2 files

1.0.3

2 files

1.0.2

2 files

1.0.1

2 files

1.0.0

2 files

0.1.11

2 files

0.1.10

2 files

0.1.9

2 files

0.1.8

2 files

0.1.7

2 files

0.1.6

2 files

0.1.5

2 files

0.1.4

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page