activitysmith 0.1.0__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.
Files changed (54) hide show
  1. activitysmith-0.1.0/LICENSE +21 -0
  2. activitysmith-0.1.0/PKG-INFO +85 -0
  3. activitysmith-0.1.0/README.md +63 -0
  4. activitysmith-0.1.0/activitysmith/__init__.py +3 -0
  5. activitysmith-0.1.0/activitysmith/client.py +29 -0
  6. activitysmith-0.1.0/activitysmith.egg-info/PKG-INFO +85 -0
  7. activitysmith-0.1.0/activitysmith.egg-info/SOURCES.txt +52 -0
  8. activitysmith-0.1.0/activitysmith.egg-info/dependency_links.txt +1 -0
  9. activitysmith-0.1.0/activitysmith.egg-info/requires.txt +7 -0
  10. activitysmith-0.1.0/activitysmith.egg-info/top_level.txt +2 -0
  11. activitysmith-0.1.0/activitysmith_openapi/__init__.py +48 -0
  12. activitysmith-0.1.0/activitysmith_openapi/api/__init__.py +6 -0
  13. activitysmith-0.1.0/activitysmith_openapi/api/live_activities_api.py +866 -0
  14. activitysmith-0.1.0/activitysmith_openapi/api/push_notifications_api.py +312 -0
  15. activitysmith-0.1.0/activitysmith_openapi/api_client.py +781 -0
  16. activitysmith-0.1.0/activitysmith_openapi/api_response.py +21 -0
  17. activitysmith-0.1.0/activitysmith_openapi/configuration.py +459 -0
  18. activitysmith-0.1.0/activitysmith_openapi/exceptions.py +199 -0
  19. activitysmith-0.1.0/activitysmith_openapi/models/__init__.py +30 -0
  20. activitysmith-0.1.0/activitysmith_openapi/models/content_state_end.py +120 -0
  21. activitysmith-0.1.0/activitysmith_openapi/models/content_state_start.py +127 -0
  22. activitysmith-0.1.0/activitysmith_openapi/models/content_state_update.py +118 -0
  23. activitysmith-0.1.0/activitysmith_openapi/models/live_activity_end_request.py +93 -0
  24. activitysmith-0.1.0/activitysmith_openapi/models/live_activity_end_response.py +96 -0
  25. activitysmith-0.1.0/activitysmith_openapi/models/live_activity_limit_error.py +93 -0
  26. activitysmith-0.1.0/activitysmith_openapi/models/live_activity_start_request.py +91 -0
  27. activitysmith-0.1.0/activitysmith_openapi/models/live_activity_start_response.py +96 -0
  28. activitysmith-0.1.0/activitysmith_openapi/models/live_activity_update_request.py +93 -0
  29. activitysmith-0.1.0/activitysmith_openapi/models/live_activity_update_response.py +96 -0
  30. activitysmith-0.1.0/activitysmith_openapi/models/push_notification_request.py +91 -0
  31. activitysmith-0.1.0/activitysmith_openapi/models/push_notification_response.py +94 -0
  32. activitysmith-0.1.0/activitysmith_openapi/models/rate_limit_error.py +89 -0
  33. activitysmith-0.1.0/activitysmith_openapi/models/send_push_notification429_response.py +137 -0
  34. activitysmith-0.1.0/activitysmith_openapi/rest.py +257 -0
  35. activitysmith-0.1.0/activitysmith_openapi/test/__init__.py +0 -0
  36. activitysmith-0.1.0/activitysmith_openapi/test/test_content_state_end.py +59 -0
  37. activitysmith-0.1.0/activitysmith_openapi/test/test_content_state_start.py +61 -0
  38. activitysmith-0.1.0/activitysmith_openapi/test/test_content_state_update.py +58 -0
  39. activitysmith-0.1.0/activitysmith_openapi/test/test_live_activities_api.py +52 -0
  40. activitysmith-0.1.0/activitysmith_openapi/test/test_live_activity_end_request.py +68 -0
  41. activitysmith-0.1.0/activitysmith_openapi/test/test_live_activity_end_response.py +58 -0
  42. activitysmith-0.1.0/activitysmith_openapi/test/test_live_activity_limit_error.py +58 -0
  43. activitysmith-0.1.0/activitysmith_openapi/test/test_live_activity_start_request.py +66 -0
  44. activitysmith-0.1.0/activitysmith_openapi/test/test_live_activity_start_response.py +58 -0
  45. activitysmith-0.1.0/activitysmith_openapi/test/test_live_activity_update_request.py +66 -0
  46. activitysmith-0.1.0/activitysmith_openapi/test/test_live_activity_update_response.py +58 -0
  47. activitysmith-0.1.0/activitysmith_openapi/test/test_push_notification_request.py +54 -0
  48. activitysmith-0.1.0/activitysmith_openapi/test/test_push_notification_response.py +56 -0
  49. activitysmith-0.1.0/activitysmith_openapi/test/test_push_notifications_api.py +38 -0
  50. activitysmith-0.1.0/activitysmith_openapi/test/test_rate_limit_error.py +54 -0
  51. activitysmith-0.1.0/activitysmith_openapi/test/test_send_push_notification429_response.py +58 -0
  52. activitysmith-0.1.0/pyproject.toml +39 -0
  53. activitysmith-0.1.0/setup.cfg +4 -0
  54. activitysmith-0.1.0/tests/test_smoke.py +7 -0
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 ActivitySmith
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,85 @@
1
+ Metadata-Version: 2.4
2
+ Name: activitysmith
3
+ Version: 0.1.0
4
+ Summary: Official ActivitySmith Python SDK
5
+ Author-email: ActivitySmith <adam@activitysmith.com>
6
+ License: MIT
7
+ Project-URL: homepage, https://activitysmith.com
8
+ Project-URL: documentation, https://activitysmith.com/docs
9
+ Project-URL: source, https://github.com/ActivitySmithHQ/activitysmith-python
10
+ Project-URL: issues, https://github.com/ActivitySmithHQ/activitysmith-python/issues
11
+ Keywords: activitysmith,live activities,push notifications,api,sdk
12
+ Requires-Python: >=3.9
13
+ Description-Content-Type: text/markdown
14
+ License-File: LICENSE
15
+ Requires-Dist: urllib3>=1.25.3
16
+ Requires-Dist: python-dateutil>=2.8.2
17
+ Requires-Dist: pydantic>=2
18
+ Provides-Extra: dev
19
+ Requires-Dist: pytest>=7; extra == "dev"
20
+ Requires-Dist: ruff>=0.5; extra == "dev"
21
+ Dynamic: license-file
22
+
23
+ # ActivitySmith Python Library
24
+
25
+ The ActivitySmith Python library provides convenient access to the ActivitySmith API from Python applications.
26
+
27
+ ## Documentation
28
+
29
+ See the [API reference](https://activitysmith.com/docs/api-reference/introduction).
30
+
31
+ ## Installation
32
+
33
+ This package is available on PyPI:
34
+
35
+ ```sh
36
+ pip install activitysmith
37
+ ```
38
+
39
+ Alternatively, install from source with:
40
+
41
+ ```sh
42
+ python -m pip install .
43
+ ```
44
+
45
+ ## Usage
46
+
47
+ ```python
48
+ import os
49
+ from activitysmith import ActivitySmith
50
+
51
+ client = ActivitySmith(
52
+ api_key=os.environ["ACTIVITYSMITH_API_KEY"],
53
+ )
54
+
55
+ # Push Notifications
56
+ client.notifications.send_push_notification(
57
+ push_notification_request={
58
+ # See PushNotificationRequest for fields
59
+ }
60
+ )
61
+
62
+ # Live Activities
63
+ client.live_activities.start_live_activity(
64
+ live_activity_start_request={
65
+ # See LiveActivityStartRequest for fields
66
+ }
67
+ )
68
+ ```
69
+
70
+ ## API Surface
71
+
72
+ The client exposes grouped resources:
73
+
74
+ - `client.live_activities`
75
+ - `client.notifications`
76
+
77
+ Request/response models are included and can be imported from `activitysmith_openapi.models`.
78
+
79
+ ## Requirements
80
+
81
+ - Python 3.9 or newer
82
+
83
+ ## License
84
+
85
+ MIT
@@ -0,0 +1,63 @@
1
+ # ActivitySmith Python Library
2
+
3
+ The ActivitySmith Python library provides convenient access to the ActivitySmith API from Python applications.
4
+
5
+ ## Documentation
6
+
7
+ See the [API reference](https://activitysmith.com/docs/api-reference/introduction).
8
+
9
+ ## Installation
10
+
11
+ This package is available on PyPI:
12
+
13
+ ```sh
14
+ pip install activitysmith
15
+ ```
16
+
17
+ Alternatively, install from source with:
18
+
19
+ ```sh
20
+ python -m pip install .
21
+ ```
22
+
23
+ ## Usage
24
+
25
+ ```python
26
+ import os
27
+ from activitysmith import ActivitySmith
28
+
29
+ client = ActivitySmith(
30
+ api_key=os.environ["ACTIVITYSMITH_API_KEY"],
31
+ )
32
+
33
+ # Push Notifications
34
+ client.notifications.send_push_notification(
35
+ push_notification_request={
36
+ # See PushNotificationRequest for fields
37
+ }
38
+ )
39
+
40
+ # Live Activities
41
+ client.live_activities.start_live_activity(
42
+ live_activity_start_request={
43
+ # See LiveActivityStartRequest for fields
44
+ }
45
+ )
46
+ ```
47
+
48
+ ## API Surface
49
+
50
+ The client exposes grouped resources:
51
+
52
+ - `client.live_activities`
53
+ - `client.notifications`
54
+
55
+ Request/response models are included and can be imported from `activitysmith_openapi.models`.
56
+
57
+ ## Requirements
58
+
59
+ - Python 3.9 or newer
60
+
61
+ ## License
62
+
63
+ MIT
@@ -0,0 +1,3 @@
1
+ from .client import ActivitySmith
2
+
3
+ __all__ = ["ActivitySmith"]
@@ -0,0 +1,29 @@
1
+ from __future__ import annotations
2
+
3
+ from dataclasses import dataclass
4
+ from typing import Optional
5
+
6
+ from activitysmith_openapi.configuration import Configuration
7
+ from activitysmith_openapi.api_client import ApiClient
8
+
9
+ from activitysmith_openapi.api.live_activities_api import LiveActivitiesApi
10
+ from activitysmith_openapi.api.push_notifications_api import PushNotificationsApi
11
+
12
+
13
+ @dataclass
14
+ class ActivitySmith:
15
+ api_key: str
16
+ base_url: Optional[str] = None
17
+
18
+ def __post_init__(self) -> None:
19
+ if not self.api_key:
20
+ raise ValueError("ActivitySmith: api_key is required")
21
+
22
+ config = Configuration(access_token=self.api_key)
23
+ if self.base_url:
24
+ config.host = self.base_url
25
+
26
+ api_client = ApiClient(configuration=config)
27
+
28
+ self.notifications = PushNotificationsApi(api_client)
29
+ self.live_activities = LiveActivitiesApi(api_client)
@@ -0,0 +1,85 @@
1
+ Metadata-Version: 2.4
2
+ Name: activitysmith
3
+ Version: 0.1.0
4
+ Summary: Official ActivitySmith Python SDK
5
+ Author-email: ActivitySmith <adam@activitysmith.com>
6
+ License: MIT
7
+ Project-URL: homepage, https://activitysmith.com
8
+ Project-URL: documentation, https://activitysmith.com/docs
9
+ Project-URL: source, https://github.com/ActivitySmithHQ/activitysmith-python
10
+ Project-URL: issues, https://github.com/ActivitySmithHQ/activitysmith-python/issues
11
+ Keywords: activitysmith,live activities,push notifications,api,sdk
12
+ Requires-Python: >=3.9
13
+ Description-Content-Type: text/markdown
14
+ License-File: LICENSE
15
+ Requires-Dist: urllib3>=1.25.3
16
+ Requires-Dist: python-dateutil>=2.8.2
17
+ Requires-Dist: pydantic>=2
18
+ Provides-Extra: dev
19
+ Requires-Dist: pytest>=7; extra == "dev"
20
+ Requires-Dist: ruff>=0.5; extra == "dev"
21
+ Dynamic: license-file
22
+
23
+ # ActivitySmith Python Library
24
+
25
+ The ActivitySmith Python library provides convenient access to the ActivitySmith API from Python applications.
26
+
27
+ ## Documentation
28
+
29
+ See the [API reference](https://activitysmith.com/docs/api-reference/introduction).
30
+
31
+ ## Installation
32
+
33
+ This package is available on PyPI:
34
+
35
+ ```sh
36
+ pip install activitysmith
37
+ ```
38
+
39
+ Alternatively, install from source with:
40
+
41
+ ```sh
42
+ python -m pip install .
43
+ ```
44
+
45
+ ## Usage
46
+
47
+ ```python
48
+ import os
49
+ from activitysmith import ActivitySmith
50
+
51
+ client = ActivitySmith(
52
+ api_key=os.environ["ACTIVITYSMITH_API_KEY"],
53
+ )
54
+
55
+ # Push Notifications
56
+ client.notifications.send_push_notification(
57
+ push_notification_request={
58
+ # See PushNotificationRequest for fields
59
+ }
60
+ )
61
+
62
+ # Live Activities
63
+ client.live_activities.start_live_activity(
64
+ live_activity_start_request={
65
+ # See LiveActivityStartRequest for fields
66
+ }
67
+ )
68
+ ```
69
+
70
+ ## API Surface
71
+
72
+ The client exposes grouped resources:
73
+
74
+ - `client.live_activities`
75
+ - `client.notifications`
76
+
77
+ Request/response models are included and can be imported from `activitysmith_openapi.models`.
78
+
79
+ ## Requirements
80
+
81
+ - Python 3.9 or newer
82
+
83
+ ## License
84
+
85
+ MIT
@@ -0,0 +1,52 @@
1
+ LICENSE
2
+ README.md
3
+ pyproject.toml
4
+ activitysmith/__init__.py
5
+ activitysmith/client.py
6
+ activitysmith.egg-info/PKG-INFO
7
+ activitysmith.egg-info/SOURCES.txt
8
+ activitysmith.egg-info/dependency_links.txt
9
+ activitysmith.egg-info/requires.txt
10
+ activitysmith.egg-info/top_level.txt
11
+ activitysmith_openapi/__init__.py
12
+ activitysmith_openapi/api_client.py
13
+ activitysmith_openapi/api_response.py
14
+ activitysmith_openapi/configuration.py
15
+ activitysmith_openapi/exceptions.py
16
+ activitysmith_openapi/rest.py
17
+ activitysmith_openapi/api/__init__.py
18
+ activitysmith_openapi/api/live_activities_api.py
19
+ activitysmith_openapi/api/push_notifications_api.py
20
+ activitysmith_openapi/models/__init__.py
21
+ activitysmith_openapi/models/content_state_end.py
22
+ activitysmith_openapi/models/content_state_start.py
23
+ activitysmith_openapi/models/content_state_update.py
24
+ activitysmith_openapi/models/live_activity_end_request.py
25
+ activitysmith_openapi/models/live_activity_end_response.py
26
+ activitysmith_openapi/models/live_activity_limit_error.py
27
+ activitysmith_openapi/models/live_activity_start_request.py
28
+ activitysmith_openapi/models/live_activity_start_response.py
29
+ activitysmith_openapi/models/live_activity_update_request.py
30
+ activitysmith_openapi/models/live_activity_update_response.py
31
+ activitysmith_openapi/models/push_notification_request.py
32
+ activitysmith_openapi/models/push_notification_response.py
33
+ activitysmith_openapi/models/rate_limit_error.py
34
+ activitysmith_openapi/models/send_push_notification429_response.py
35
+ activitysmith_openapi/test/__init__.py
36
+ activitysmith_openapi/test/test_content_state_end.py
37
+ activitysmith_openapi/test/test_content_state_start.py
38
+ activitysmith_openapi/test/test_content_state_update.py
39
+ activitysmith_openapi/test/test_live_activities_api.py
40
+ activitysmith_openapi/test/test_live_activity_end_request.py
41
+ activitysmith_openapi/test/test_live_activity_end_response.py
42
+ activitysmith_openapi/test/test_live_activity_limit_error.py
43
+ activitysmith_openapi/test/test_live_activity_start_request.py
44
+ activitysmith_openapi/test/test_live_activity_start_response.py
45
+ activitysmith_openapi/test/test_live_activity_update_request.py
46
+ activitysmith_openapi/test/test_live_activity_update_response.py
47
+ activitysmith_openapi/test/test_push_notification_request.py
48
+ activitysmith_openapi/test/test_push_notification_response.py
49
+ activitysmith_openapi/test/test_push_notifications_api.py
50
+ activitysmith_openapi/test/test_rate_limit_error.py
51
+ activitysmith_openapi/test/test_send_push_notification429_response.py
52
+ tests/test_smoke.py
@@ -0,0 +1,7 @@
1
+ urllib3>=1.25.3
2
+ python-dateutil>=2.8.2
3
+ pydantic>=2
4
+
5
+ [dev]
6
+ pytest>=7
7
+ ruff>=0.5
@@ -0,0 +1,2 @@
1
+ activitysmith
2
+ activitysmith_openapi
@@ -0,0 +1,48 @@
1
+ # coding: utf-8
2
+
3
+ # flake8: noqa
4
+
5
+ """
6
+ ActivitySmith API
7
+
8
+ Send push notifications and Live Activities to your own devices via a single API key.
9
+
10
+ The version of the OpenAPI document: 1.0.0
11
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
12
+
13
+ Do not edit the class manually.
14
+ """ # noqa: E501
15
+
16
+
17
+ __version__ = "0.1.0"
18
+
19
+ # import apis into sdk package
20
+ from activitysmith_openapi.api.live_activities_api import LiveActivitiesApi
21
+ from activitysmith_openapi.api.push_notifications_api import PushNotificationsApi
22
+
23
+ # import ApiClient
24
+ from activitysmith_openapi.api_response import ApiResponse
25
+ from activitysmith_openapi.api_client import ApiClient
26
+ from activitysmith_openapi.configuration import Configuration
27
+ from activitysmith_openapi.exceptions import OpenApiException
28
+ from activitysmith_openapi.exceptions import ApiTypeError
29
+ from activitysmith_openapi.exceptions import ApiValueError
30
+ from activitysmith_openapi.exceptions import ApiKeyError
31
+ from activitysmith_openapi.exceptions import ApiAttributeError
32
+ from activitysmith_openapi.exceptions import ApiException
33
+
34
+ # import models into sdk package
35
+ from activitysmith_openapi.models.content_state_end import ContentStateEnd
36
+ from activitysmith_openapi.models.content_state_start import ContentStateStart
37
+ from activitysmith_openapi.models.content_state_update import ContentStateUpdate
38
+ from activitysmith_openapi.models.live_activity_end_request import LiveActivityEndRequest
39
+ from activitysmith_openapi.models.live_activity_end_response import LiveActivityEndResponse
40
+ from activitysmith_openapi.models.live_activity_limit_error import LiveActivityLimitError
41
+ from activitysmith_openapi.models.live_activity_start_request import LiveActivityStartRequest
42
+ from activitysmith_openapi.models.live_activity_start_response import LiveActivityStartResponse
43
+ from activitysmith_openapi.models.live_activity_update_request import LiveActivityUpdateRequest
44
+ from activitysmith_openapi.models.live_activity_update_response import LiveActivityUpdateResponse
45
+ from activitysmith_openapi.models.push_notification_request import PushNotificationRequest
46
+ from activitysmith_openapi.models.push_notification_response import PushNotificationResponse
47
+ from activitysmith_openapi.models.rate_limit_error import RateLimitError
48
+ from activitysmith_openapi.models.send_push_notification429_response import SendPushNotification429Response
@@ -0,0 +1,6 @@
1
+ # flake8: noqa
2
+
3
+ # import apis into api package
4
+ from activitysmith_openapi.api.live_activities_api import LiveActivitiesApi
5
+ from activitysmith_openapi.api.push_notifications_api import PushNotificationsApi
6
+