trophy 0.1.4__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
trophy-0.1.4/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Trophy
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,2 @@
1
+ include README.md
2
+ include LICENSE
trophy-0.1.4/PKG-INFO ADDED
@@ -0,0 +1,53 @@
1
+ Metadata-Version: 2.2
2
+ Name: trophy
3
+ Version: 0.1.4
4
+ Summary: A Python library for the Trophy API
5
+ License: MIT
6
+ Project-URL: Homepage, https://github.com/trophyso/trophy-python
7
+ Project-URL: Repository, https://github.com/trophyso/trophy-python
8
+ Description-Content-Type: text/markdown
9
+ License-File: LICENSE
10
+ Requires-Dist: requests
11
+ Requires-Dist: httpx
12
+
13
+ # Trophy Python SDK
14
+
15
+ The Trophy Python SDK provides convenient access to the Trophy API from applications written in the
16
+ Python language.
17
+
18
+ Trophy provides APIs and tools for adding gamification to your application, keeping users engaged
19
+ through rewards, achievements, streaks, and personalized communication.
20
+
21
+ ## Documentation
22
+
23
+ See the [Trophy API Docs](https://trophy.docs.buildwithfern.com/overview/introduction) for more
24
+ information.
25
+
26
+ ## Installation
27
+
28
+ You can install the package via pip:
29
+
30
+ ```bash
31
+ pip install trophy-python
32
+ ```
33
+
34
+ ## Usage
35
+
36
+ The package needs to be configured with your account's API key which is available in the Trophy
37
+ dashboard.
38
+
39
+ ```python
40
+ from trophy import TrophyApiClient
41
+
42
+ client = TrophyApiClient(api_key='your-api-key')
43
+
44
+ # Send a metric event
45
+ client.metrics.event("words-written", {
46
+ "user": {
47
+ "id": "18",
48
+ "email": "jk.rowling@harrypotter.com",
49
+ "tz": "Europe/London"
50
+ },
51
+ "value": 750
52
+ })
53
+ ```
trophy-0.1.4/README.md ADDED
@@ -0,0 +1,41 @@
1
+ # Trophy Python SDK
2
+
3
+ The Trophy Python SDK provides convenient access to the Trophy API from applications written in the
4
+ Python language.
5
+
6
+ Trophy provides APIs and tools for adding gamification to your application, keeping users engaged
7
+ through rewards, achievements, streaks, and personalized communication.
8
+
9
+ ## Documentation
10
+
11
+ See the [Trophy API Docs](https://trophy.docs.buildwithfern.com/overview/introduction) for more
12
+ information.
13
+
14
+ ## Installation
15
+
16
+ You can install the package via pip:
17
+
18
+ ```bash
19
+ pip install trophy-python
20
+ ```
21
+
22
+ ## Usage
23
+
24
+ The package needs to be configured with your account's API key which is available in the Trophy
25
+ dashboard.
26
+
27
+ ```python
28
+ from trophy import TrophyApiClient
29
+
30
+ client = TrophyApiClient(api_key='your-api-key')
31
+
32
+ # Send a metric event
33
+ client.metrics.event("words-written", {
34
+ "user": {
35
+ "id": "18",
36
+ "email": "jk.rowling@harrypotter.com",
37
+ "tz": "Europe/London"
38
+ },
39
+ "value": 750
40
+ })
41
+ ```
@@ -0,0 +1,22 @@
1
+ [build-system]
2
+ requires = ["setuptools", "wheel"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "trophy"
7
+ version = "0.1.4"
8
+ description = "A Python library for the Trophy API"
9
+ license = {text = "MIT"}
10
+ readme = "README.md"
11
+ dependencies = [
12
+ "requests",
13
+ "httpx",
14
+ ]
15
+
16
+ [project.urls]
17
+ Homepage = "https://github.com/trophyso/trophy-python"
18
+ Repository = "https://github.com/trophyso/trophy-python"
19
+
20
+ [tool.setuptools.packages.find]
21
+ where = ["trophy"]
22
+ include = ["trophy"]
trophy-0.1.4/setup.cfg ADDED
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,53 @@
1
+ Metadata-Version: 2.2
2
+ Name: trophy
3
+ Version: 0.1.4
4
+ Summary: A Python library for the Trophy API
5
+ License: MIT
6
+ Project-URL: Homepage, https://github.com/trophyso/trophy-python
7
+ Project-URL: Repository, https://github.com/trophyso/trophy-python
8
+ Description-Content-Type: text/markdown
9
+ License-File: LICENSE
10
+ Requires-Dist: requests
11
+ Requires-Dist: httpx
12
+
13
+ # Trophy Python SDK
14
+
15
+ The Trophy Python SDK provides convenient access to the Trophy API from applications written in the
16
+ Python language.
17
+
18
+ Trophy provides APIs and tools for adding gamification to your application, keeping users engaged
19
+ through rewards, achievements, streaks, and personalized communication.
20
+
21
+ ## Documentation
22
+
23
+ See the [Trophy API Docs](https://trophy.docs.buildwithfern.com/overview/introduction) for more
24
+ information.
25
+
26
+ ## Installation
27
+
28
+ You can install the package via pip:
29
+
30
+ ```bash
31
+ pip install trophy-python
32
+ ```
33
+
34
+ ## Usage
35
+
36
+ The package needs to be configured with your account's API key which is available in the Trophy
37
+ dashboard.
38
+
39
+ ```python
40
+ from trophy import TrophyApiClient
41
+
42
+ client = TrophyApiClient(api_key='your-api-key')
43
+
44
+ # Send a metric event
45
+ client.metrics.event("words-written", {
46
+ "user": {
47
+ "id": "18",
48
+ "email": "jk.rowling@harrypotter.com",
49
+ "tz": "Europe/London"
50
+ },
51
+ "value": 750
52
+ })
53
+ ```
@@ -0,0 +1,9 @@
1
+ LICENSE
2
+ MANIFEST.in
3
+ README.md
4
+ pyproject.toml
5
+ trophy/trophy.egg-info/PKG-INFO
6
+ trophy/trophy.egg-info/SOURCES.txt
7
+ trophy/trophy.egg-info/dependency_links.txt
8
+ trophy/trophy.egg-info/requires.txt
9
+ trophy/trophy.egg-info/top_level.txt
@@ -0,0 +1,2 @@
1
+ requests
2
+ httpx