tasq-client-python 0.1.15__py3-none-any.whl → 0.1.16__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.
tasq_client/client.py CHANGED
@@ -268,6 +268,14 @@ class TasqClient:
268
268
  )
269
269
  return QueueCounts(**data)
270
270
 
271
+ def clear(self):
272
+ """Deletes the queue and all tasks in it."""
273
+ result = self._post_form("/task/clear", dict())
274
+ if result is True:
275
+ return True
276
+ else:
277
+ raise TasqMisbehavingServerError("failed to clear queue")
278
+
271
279
  def __getstate__(
272
280
  self,
273
281
  ):
@@ -0,0 +1,11 @@
1
+ Metadata-Version: 2.1
2
+ Name: tasq-client-python
3
+ Version: 0.1.16
4
+ Summary: UNKNOWN
5
+ Home-page: UNKNOWN
6
+ License: UNKNOWN
7
+ Platform: UNKNOWN
8
+ Requires-Dist: requests
9
+
10
+ UNKNOWN
11
+
@@ -0,0 +1,8 @@
1
+ tasq_client/__init__.py,sha256=I0ik-_c0hcVKUgx7QsE3YnoCQyAVMFKKOzoLt-jNFtE,277
2
+ tasq_client/check_type.py,sha256=t_jreI8rf6QWS9Jf105ZvUVbwFe-uL4rMg4kZk6e4cA,2795
3
+ tasq_client/check_type_test.py,sha256=bvhVaO-Bu18aI3J4Kxnb0H27fzDCKkTHVBWhjJMFMis,1433
4
+ tasq_client/client.py,sha256=1f-BBYaiILfziZfzW3J4HOGwAgRbU80pbmlPX2J9wQE,15162
5
+ tasq_client_python-0.1.16.dist-info/METADATA,sha256=Y5auv-WWFODNhED09_NvXXNcVvyq6GDUYGvlzWf-Tx8,168
6
+ tasq_client_python-0.1.16.dist-info/WHEEL,sha256=ewwEueio1C2XeHTvT17n8dZUJgOvyCWCt0WVNLClP9o,92
7
+ tasq_client_python-0.1.16.dist-info/top_level.txt,sha256=JUs_FTRfs_ggMu8zusU5CSXgAl-JHhrjMXxuZay-B58,12
8
+ tasq_client_python-0.1.16.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.43.0)
2
+ Generator: bdist_wheel (0.37.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1,5 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: tasq-client-python
3
- Version: 0.1.15
4
- Requires-Dist: requests
5
-
@@ -1,8 +0,0 @@
1
- tasq_client/__init__.py,sha256=I0ik-_c0hcVKUgx7QsE3YnoCQyAVMFKKOzoLt-jNFtE,277
2
- tasq_client/check_type.py,sha256=t_jreI8rf6QWS9Jf105ZvUVbwFe-uL4rMg4kZk6e4cA,2795
3
- tasq_client/check_type_test.py,sha256=bvhVaO-Bu18aI3J4Kxnb0H27fzDCKkTHVBWhjJMFMis,1433
4
- tasq_client/client.py,sha256=Cgr2gMxG9DoUF7bZ9gyR07X_hLfbR6hTamF63wHOgn8,14896
5
- tasq_client_python-0.1.15.dist-info/METADATA,sha256=Wz3_NQHggP3kx6kGV2woLARhPDiviecU971kgMVM0xU,88
6
- tasq_client_python-0.1.15.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
7
- tasq_client_python-0.1.15.dist-info/top_level.txt,sha256=JUs_FTRfs_ggMu8zusU5CSXgAl-JHhrjMXxuZay-B58,12
8
- tasq_client_python-0.1.15.dist-info/RECORD,,