freeplay 0.3.0a10__py3-none-any.whl → 0.3.0a11__py3-none-any.whl
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.
- freeplay/api_support.py +7 -0
- freeplay/resources/sessions.py +3 -0
- freeplay/support.py +8 -0
- {freeplay-0.3.0a10.dist-info → freeplay-0.3.0a11.dist-info}/METADATA +2 -1
- {freeplay-0.3.0a10.dist-info → freeplay-0.3.0a11.dist-info}/RECORD +8 -8
- {freeplay-0.3.0a10.dist-info → freeplay-0.3.0a11.dist-info}/WHEEL +1 -1
- {freeplay-0.3.0a10.dist-info → freeplay-0.3.0a11.dist-info}/LICENSE +0 -0
- {freeplay-0.3.0a10.dist-info → freeplay-0.3.0a11.dist-info}/entry_points.txt +0 -0
freeplay/api_support.py
CHANGED
@@ -60,6 +60,13 @@ def post_raw(api_key: str, url: str, payload: t.Optional[Dict[str, t.Any]] = Non
|
|
60
60
|
)
|
61
61
|
|
62
62
|
|
63
|
+
def delete_raw(api_key: str, url: str) -> Response:
|
64
|
+
return requests.delete(
|
65
|
+
url=url,
|
66
|
+
headers=build_request_header(api_key),
|
67
|
+
)
|
68
|
+
|
69
|
+
|
63
70
|
def get(target_type: t.Type[T], api_key: str, url: str) -> T:
|
64
71
|
response = requests.get(
|
65
72
|
url=url,
|
freeplay/resources/sessions.py
CHANGED
@@ -81,6 +81,9 @@ class Sessions:
|
|
81
81
|
_call_support=self.call_support,
|
82
82
|
)
|
83
83
|
|
84
|
+
def delete(self, project_id: str, session_id: str) -> None:
|
85
|
+
self.call_support.delete_session(project_id, session_id)
|
86
|
+
|
84
87
|
def restore_session(self, session_id: str, custom_metadata: CustomMetadata = None) -> Session:
|
85
88
|
return Session(
|
86
89
|
session_id=session_id,
|
freeplay/support.py
CHANGED
@@ -222,3 +222,11 @@ class CallSupport:
|
|
222
222
|
if response.status_code != 201:
|
223
223
|
raise freeplay_response_error('Error while recording trace.', response)
|
224
224
|
|
225
|
+
def delete_session(self, project_id: str, session_id: str) -> None:
|
226
|
+
response = api_support.delete_raw(
|
227
|
+
self.freeplay_api_key,
|
228
|
+
f'{self.api_base}/v2/projects/{project_id}/sessions/{session_id}'
|
229
|
+
)
|
230
|
+
if response.status_code != 201:
|
231
|
+
raise freeplay_response_error('Error while deleting session.', response)
|
232
|
+
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: freeplay
|
3
|
-
Version: 0.3.
|
3
|
+
Version: 0.3.0a11
|
4
4
|
Summary:
|
5
5
|
License: MIT
|
6
6
|
Author: FreePlay Engineering
|
@@ -12,6 +12,7 @@ Classifier: Programming Language :: Python :: 3.8
|
|
12
12
|
Classifier: Programming Language :: Python :: 3.9
|
13
13
|
Classifier: Programming Language :: Python :: 3.10
|
14
14
|
Classifier: Programming Language :: Python :: 3.11
|
15
|
+
Classifier: Programming Language :: Python :: 3.12
|
15
16
|
Requires-Dist: click (==8.1.7)
|
16
17
|
Requires-Dist: dacite (>=1.8.0,<2.0.0)
|
17
18
|
Requires-Dist: pystache (>=0.6.5,<0.7.0)
|
@@ -1,5 +1,5 @@
|
|
1
1
|
freeplay/__init__.py,sha256=oseuUqIVAi-2a_ns4ZbbFqkZez6KGGwI6fPkA0AKt6I,374
|
2
|
-
freeplay/api_support.py,sha256=
|
2
|
+
freeplay/api_support.py,sha256=Kn2x3g6yloHQl3NwFRjbZE9BnIh7d1sgwGwC0mHuvw4,2483
|
3
3
|
freeplay/errors.py,sha256=bPqsw32YX-xSr7O-G49M0sSFF7mq-YF1WGq928UV47s,631
|
4
4
|
freeplay/freeplay.py,sha256=cj0TGxIziS5tEL12czMJrrKrCKRoYR_Qxsipg3ClpsU,1496
|
5
5
|
freeplay/freeplay_cli.py,sha256=lmdsYwzdpWmUKHz_ieCzB-e6j1EnDHlVw3XIEyP_NEk,3460
|
@@ -10,12 +10,12 @@ freeplay/resources/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuF
|
|
10
10
|
freeplay/resources/customer_feedback.py,sha256=aTM7Eez7iYmjXSpRqkHxf4pi6xBrzVnMiQCEJVfPGvg,527
|
11
11
|
freeplay/resources/prompts.py,sha256=V57JsLsWiMe4hAmysT8flKve7RPR8cxrxehmgUJPSeg,17537
|
12
12
|
freeplay/resources/recordings.py,sha256=kUElo6Yvc6lyo221ghbElx75uxftw7HpgBV_R9gYlE4,5938
|
13
|
-
freeplay/resources/sessions.py,sha256=
|
13
|
+
freeplay/resources/sessions.py,sha256=pgfqCBa-qGwwdfym9nnHizEg0Jf4sd_chLAfunwtMCQ,2787
|
14
14
|
freeplay/resources/test_runs.py,sha256=cwhm4s1dj2FqPQN86W6rsFTcay1M-Ip6DAbXp7Utl8c,2370
|
15
|
-
freeplay/support.py,sha256=
|
15
|
+
freeplay/support.py,sha256=Fc7v8SQ1y62S08tuLAQfUI_qR2ZgLgah9kdL8sTbFMs,7848
|
16
16
|
freeplay/utils.py,sha256=8ZncuwCnzsAhRsaoxOMGa0Py8kXqGHlB9Avr3n79fk0,2064
|
17
|
-
freeplay-0.3.
|
18
|
-
freeplay-0.3.
|
19
|
-
freeplay-0.3.
|
20
|
-
freeplay-0.3.
|
21
|
-
freeplay-0.3.
|
17
|
+
freeplay-0.3.0a11.dist-info/LICENSE,sha256=_jzIw45hB1XHGxiQ8leZ0GH_X7bR_a8qgxaqnHbCUOo,1064
|
18
|
+
freeplay-0.3.0a11.dist-info/METADATA,sha256=Wo8u_ihnXH4S_963icBvw9CK_AeDrPAC8bfujKBbXLg,1605
|
19
|
+
freeplay-0.3.0a11.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
20
|
+
freeplay-0.3.0a11.dist-info/entry_points.txt,sha256=32s3rf2UUCqiJT4jnClEXZhdXlvl30uwpcxz-Gsy4UU,54
|
21
|
+
freeplay-0.3.0a11.dist-info/RECORD,,
|
File without changes
|
File without changes
|