ringo-task-queue 0.1.0.dev4__py3-none-win_amd64.whl → 0.1.0.dev5__py3-none-win_amd64.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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: ringo-task-queue
3
- Version: 0.1.0.dev4
3
+ Version: 0.1.0.dev5
4
4
  Summary: Python asyncio SDK for Ringo Task Queue with a bundled offline Go daemon
5
5
  Author: Ringo Task Queue contributors
6
6
  License-Expression: MIT
@@ -116,7 +116,18 @@ async with Ringo.local("./data/ringo") as client:
116
116
  queue = client.queue("crawl")
117
117
  ```
118
118
 
119
- SDK 自动完成 daemon 校验、随机 loopback 端口启动、健康检查、协议协商和退出回收。SQLite 数据保存在 `data_dir`;daemon 日志追加到 `data_dir/ringo-daemon.stderr.log`。同一时间不能有两个本地 daemon 占用同一个 data dir。
119
+ 默认本地模式使用进程私有 daemon:SDK 自动完成 daemon 校验、随机 loopback 端口启动、健康检查、协议协商和退出回收。SQLite 数据保存在 `data_dir`;daemon 日志追加到 `data_dir/ringo-daemon.stderr.log`。两个默认模式的 daemon 不能同时占用同一个 data dir。
120
+
121
+ 若同一台机器上、**同一用户**的多个 SDK 进程需要共享一个 SQLite 队列,可显式启用共享模式:
122
+
123
+ ```python
124
+ async with Ringo.local("./data/ringo", shared=True) as client:
125
+ result = await client.queue("crawl").enqueue(
126
+ unique_key="page:1", task_type="fetch", payload={"page": 1}
127
+ )
128
+ ```
129
+
130
+ 第一个客户端自动启动唯一持锁的共享 daemon,后续客户端认证后附着;启动者退出不影响仍在工作的客户端。最后一个客户端离开后 daemon 延时退出;崩溃后存活客户端会重新发现并接入,不会重放结果不明的写请求。无需手动常驻服务。该模式仅支持本机 SQLite,不支持跨用户、网络共享目录或 PostgreSQL。默认私有模式保持不变。
120
131
 
121
132
  ### PostgreSQL
122
133
 
@@ -0,0 +1,20 @@
1
+ ringo_task_queue/__init__.py,sha256=FIa0pYutrLnu535XRrHQFrYzE8yAD7XJuNISttgZilQ,1572
2
+ ringo_task_queue/_pb.py,sha256=QEnR8mr7vpLTdnpgJQusFaEay2aEz7x4Gu5L6UGwShQ,5837
3
+ ringo_task_queue/_version.py,sha256=H5E_CVKUMeF8rB4O9M6YWZFY957KVfa6v9arYgBEWmc,659
4
+ ringo_task_queue/binary.py,sha256=0U7Gdh631zLKFSDiCRe5XOa7sz1wo2if_9OqGQbFmW4,9779
5
+ ringo_task_queue/client.py,sha256=d8MKUc-J9LwQ_iVU4brsi-8y9ngbXWbSKQn1Fjikyhc,44580
6
+ ringo_task_queue/concurrency.py,sha256=e7m2sR9FR4qMqGFKdxyitSvjdQ0q5ZR4w4XijBLXEUg,19631
7
+ ringo_task_queue/daemon.py,sha256=WRnO6QJLdPnfN4EBtqs0qgFEZOrC0z1POSEvlj1I55k,20356
8
+ ringo_task_queue/errors.py,sha256=N_LJf4dn9XyZE1Q701c8dR8Bdd4OtXToZGY1MwidoAo,4988
9
+ ringo_task_queue/models.py,sha256=XClH3WwfWnEiNys7eiK3SsH6cVb8lc79OLAKKpRWeW0,12055
10
+ ringo_task_queue/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
11
+ ringo_task_queue/shared.py,sha256=fwr3N03dQ7ySkgWFEIyDqCHzH2oBEVHPe_clDfMalxc,12226
12
+ ringo_task_queue/worker.py,sha256=zv91RRdfcMFW2OF3wCU8KqyhRdBveVnoz929VQ9aY5Y,54915
13
+ ringo_task_queue/_proto/ringo/v1/queue_pb2.py,sha256=uqS-kbRjNif_5iN9W_7qHR48GJOqklFsSlIlz_D9aoE,19257
14
+ ringo_task_queue/_proto/ringo/v1/queue_pb2_grpc.py,sha256=dxOR-ZA8P1bHvH5PBFhPh6JFyp43CjngT_8HbHRRnL8,30423
15
+ ringo_task_queue/bin/manifest.json,sha256=QJG9-uWPQ0WtaKbzOPDlLwXiCD30kWsGxv_EbeL5ftE,609
16
+ ringo_task_queue/bin/ringo-task-queue-windows-amd64.exe,sha256=AqY3DRr1H46cJijWpUSY7WNdwXLZ-RHmBVaOUJbvWrM,22962688
17
+ ringo_task_queue-0.1.0.dev5.dist-info/METADATA,sha256=Bf90V0mS79G1utehbAZaDjo3IQkFQOwEOmTpxy_Ggpk,19019
18
+ ringo_task_queue-0.1.0.dev5.dist-info/WHEEL,sha256=A7YmR1UrJozxyeLCzQFwQUdR7CRUwkFKasEDmnrjVxY,94
19
+ ringo_task_queue-0.1.0.dev5.dist-info/licenses/LICENSE,sha256=2z90I2JsLhszhE_-SBjHowUbneET_NPF12KlpJBkx-8,1107
20
+ ringo_task_queue-0.1.0.dev5.dist-info/RECORD,,
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 Ringo Task Queue contributors
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.
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Ringo Task Queue contributors
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.
@@ -1,19 +0,0 @@
1
- ringo_task_queue/__init__.py,sha256=zihlmp-o3e9VemeH0TKw_ahdmjgm-ykv-dZ1YkOODF8,1501
2
- ringo_task_queue/_pb.py,sha256=gA8HMCx9ZXEMB-ca6me8CYXdRLLPzUXVIz63Q4bz75I,5683
3
- ringo_task_queue/_version.py,sha256=vf_6CBVg0fZ61HTF04mxqE3ZyIrcJDIY9rgVAf9N9Qs,642
4
- ringo_task_queue/binary.py,sha256=lJtFz_t5BuxDV4dMAqQDpP3mhTvJlnPBGnaiB0Z9D04,9526
5
- ringo_task_queue/client.py,sha256=1SM_DSJvVlfYm7Yrqmtyo0DMvE2qRGNXptRNLuJ4OPI,36071
6
- ringo_task_queue/concurrency.py,sha256=AxmtDa39xoda0TnvxNlLmZri1TTWCkS7VaRomAONwLU,19151
7
- ringo_task_queue/daemon.py,sha256=YS8otZpD9hqKeASb2S8ZWLCWzQj6-FYUb-grmYSnrIs,19849
8
- ringo_task_queue/errors.py,sha256=FQXkfz0SS-mFtY61b6f9HamPZUPWcuf-33AfB7B0rmo,4829
9
- ringo_task_queue/models.py,sha256=MEXh2JKgCbf3vo0EmnjJ_TscwabaW5Yd9i98LSPIrnk,11691
10
- ringo_task_queue/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
11
- ringo_task_queue/worker.py,sha256=Bv7vknxThqWAzsLjQeJyzjn6Qiw8yKNRq6rCIgvEXjQ,53618
12
- ringo_task_queue/_proto/ringo/v1/queue_pb2.py,sha256=knhuzUL_fMA12UstjDXXls0PvX9nJChdOKjYq3ro2yw,18598
13
- ringo_task_queue/_proto/ringo/v1/queue_pb2_grpc.py,sha256=WHG2a2EA18tMYkC_NNFTuac8E72mKk7IaV0BIQwa2gw,27617
14
- ringo_task_queue/bin/manifest.json,sha256=qENvp1ZOLJedA21x6UNIg-rFdllfLMxpz0Mg6V1bR4k,576
15
- ringo_task_queue/bin/ringo-task-queue-windows-amd64.exe,sha256=Ty1b7P6jdHKt6r40QGXdumuliLeuQtc7TwFML4HYC9E,22876672
16
- ringo_task_queue-0.1.0.dev4.dist-info/METADATA,sha256=ndIiIeTK48Eknt0D749Z16LkfjaFQ2Ve7OmMvbLlcUY,18204
17
- ringo_task_queue-0.1.0.dev4.dist-info/WHEEL,sha256=A7YmR1UrJozxyeLCzQFwQUdR7CRUwkFKasEDmnrjVxY,94
18
- ringo_task_queue-0.1.0.dev4.dist-info/licenses/LICENSE,sha256=yK3nnJz_bbOAPlcJqAooYcvecNJnBH9miT_X8Qrerv4,1086
19
- ringo_task_queue-0.1.0.dev4.dist-info/RECORD,,