Autarkia-Msgqueue 0.1.0__tar.gz → 0.1.1__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.
- {autarkia_msgqueue-0.1.0 → autarkia_msgqueue-0.1.1}/.gitignore +0 -0
- {autarkia_msgqueue-0.1.0 → autarkia_msgqueue-0.1.1}/LICENSE +0 -0
- {autarkia_msgqueue-0.1.0 → autarkia_msgqueue-0.1.1}/PKG-INFO +10 -9
- {autarkia_msgqueue-0.1.0 → autarkia_msgqueue-0.1.1}/README.md +7 -6
- {autarkia_msgqueue-0.1.0 → autarkia_msgqueue-0.1.1}/pyproject.toml +3 -3
- {autarkia_msgqueue-0.1.0 → autarkia_msgqueue-0.1.1}/src/autarkia_msgqueue/__init__.py +1 -1
- {autarkia_msgqueue-0.1.0 → autarkia_msgqueue-0.1.1}/src/autarkia_msgqueue/py.typed +0 -0
- {autarkia_msgqueue-0.1.0 → autarkia_msgqueue-0.1.1}/src/autarkia_msgqueue/queue.py +0 -0
- {autarkia_msgqueue-0.1.0 → autarkia_msgqueue-0.1.1}/src/autarkia_msgqueue/replay_guard.py +0 -0
- {autarkia_msgqueue-0.1.0 → autarkia_msgqueue-0.1.1}/tests/test_queue.py +1 -1
- {autarkia_msgqueue-0.1.0 → autarkia_msgqueue-0.1.1}/tests/test_replay_guard.py +0 -0
|
File without changes
|
|
File without changes
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: Autarkia-Msgqueue
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.1
|
|
4
4
|
Summary: Reliable offline message queue for WebSocket clients: per-type TTL, message-id dedupe, discard-after-elsewhere-delivery, atomic replay, per-user locks and a receiver-side staleness guard.
|
|
5
|
-
Project-URL: Homepage, https://qishihao.
|
|
5
|
+
Project-URL: Homepage, https://qishihao.dev/projects/autarkia
|
|
6
6
|
Project-URL: Repository, https://github.com/hakituo/Autarkia-Msgqueue
|
|
7
7
|
Project-URL: Roadmap, https://github.com/hakituo/Autarkia-tool/blob/main/ROADMAP.md
|
|
8
8
|
Project-URL: Autarkia Runtime, https://github.com/hakituo/Autarkia
|
|
9
|
-
Project-URL: Author, https://qishihao.
|
|
9
|
+
Project-URL: Author, https://qishihao.dev
|
|
10
10
|
Author-email: Shihao Qi <qishihao512@gmail.com>
|
|
11
11
|
License-Expression: MIT
|
|
12
12
|
License-File: LICENSE
|
|
@@ -40,6 +40,7 @@ Description-Content-Type: text/markdown
|
|
|
40
40
|
<p align="center">
|
|
41
41
|
<a href="https://pypi.org/project/Autarkia-Msgqueue/"><img alt="PyPI" src="https://img.shields.io/pypi/v/autarkia-msgqueue.svg"></a>
|
|
42
42
|
<a href="https://pypi.org/project/Autarkia-Msgqueue/"><img alt="Python" src="https://img.shields.io/pypi/pyversions/autarkia-msgqueue.svg"></a>
|
|
43
|
+
<a href="https://github.com/hakituo/Autarkia-Msgqueue/actions/workflows/ci.yml"><img alt="CI" src="https://github.com/hakituo/Autarkia-Msgqueue/actions/workflows/ci.yml/badge.svg"></a>
|
|
43
44
|
<a href="LICENSE"><img alt="License: MIT" src="https://img.shields.io/badge/license-MIT-blue.svg"></a>
|
|
44
45
|
</p>
|
|
45
46
|
|
|
@@ -53,7 +54,7 @@ Description-Content-Type: text/markdown
|
|
|
53
54
|
|
|
54
55
|
**按类型分档的 TTL、`message_id` 去重、已在别端投递后丢弃、原子重放、per-user flush 锁、接收端时效守卫**——把「客户端离线时暂存消息」这件小事做对。
|
|
55
56
|
|
|
56
|
-
来自 [Autarkia](https://qishihao.
|
|
57
|
+
来自 [Autarkia](https://qishihao.dev/projects/autarkia) agent 运行时:手机 App 和桌面 bot 共用一个 user id,同一条「晚安」被反复投递。整个系列见[组件库路线图](https://github.com/hakituo/Autarkia-tool/blob/main/ROADMAP.md)。
|
|
57
58
|
|
|
58
59
|
### 为什么
|
|
59
60
|
|
|
@@ -134,11 +135,11 @@ if is_stale_offline_replay(payload, max_age_seconds=600):
|
|
|
134
135
|
|
|
135
136
|
### 系列与链接
|
|
136
137
|
|
|
137
|
-
- 项目页:<https://qishihao.
|
|
138
|
+
- 项目页:<https://qishihao.dev/projects/autarkia>
|
|
138
139
|
- 运行时仓库:<https://github.com/hakituo/Autarkia>
|
|
139
140
|
- 本包:<https://github.com/hakituo/Autarkia-Msgqueue>
|
|
140
141
|
- 组件库路线图:<https://github.com/hakituo/Autarkia-tool/blob/main/ROADMAP.md>
|
|
141
|
-
- 作者:Shihao Qi — <https://qishihao.
|
|
142
|
+
- 作者:Shihao Qi — <https://qishihao.dev>
|
|
142
143
|
|
|
143
144
|
### 许可
|
|
144
145
|
|
|
@@ -150,7 +151,7 @@ MIT
|
|
|
150
151
|
|
|
151
152
|
**Per-type TTL, message-id dedupe, discard-after-elsewhere-delivery, atomic replay, per-user flush locks, and a receiver-side staleness guard** — the small "store messages while the client is offline" problem, done correctly.
|
|
152
153
|
|
|
153
|
-
Extracted from the [Autarkia](https://qishihao.
|
|
154
|
+
Extracted from the [Autarkia](https://qishihao.dev/projects/autarkia) agent runtime, where a phone app and a desktop bot shared one user id and kept re-delivering the same goodnight message. See the [component roadmap](https://github.com/hakituo/Autarkia-tool/blob/main/ROADMAP.md).
|
|
154
155
|
|
|
155
156
|
### Why
|
|
156
157
|
|
|
@@ -231,11 +232,11 @@ Replayed payloads carry `is_offline_replay: True` and `offline_queued_at` (epoch
|
|
|
231
232
|
|
|
232
233
|
### The bigger picture
|
|
233
234
|
|
|
234
|
-
- Project page: <https://qishihao.
|
|
235
|
+
- Project page: <https://qishihao.dev/projects/autarkia>
|
|
235
236
|
- Runtime repository: <https://github.com/hakituo/Autarkia>
|
|
236
237
|
- This package: <https://github.com/hakituo/Autarkia-Msgqueue>
|
|
237
238
|
- Roadmap: <https://github.com/hakituo/Autarkia-tool/blob/main/ROADMAP.md>
|
|
238
|
-
- Author: Shihao Qi — <https://qishihao.
|
|
239
|
+
- Author: Shihao Qi — <https://qishihao.dev>
|
|
239
240
|
|
|
240
241
|
### License
|
|
241
242
|
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
<p align="center">
|
|
14
14
|
<a href="https://pypi.org/project/Autarkia-Msgqueue/"><img alt="PyPI" src="https://img.shields.io/pypi/v/autarkia-msgqueue.svg"></a>
|
|
15
15
|
<a href="https://pypi.org/project/Autarkia-Msgqueue/"><img alt="Python" src="https://img.shields.io/pypi/pyversions/autarkia-msgqueue.svg"></a>
|
|
16
|
+
<a href="https://github.com/hakituo/Autarkia-Msgqueue/actions/workflows/ci.yml"><img alt="CI" src="https://github.com/hakituo/Autarkia-Msgqueue/actions/workflows/ci.yml/badge.svg"></a>
|
|
16
17
|
<a href="LICENSE"><img alt="License: MIT" src="https://img.shields.io/badge/license-MIT-blue.svg"></a>
|
|
17
18
|
</p>
|
|
18
19
|
|
|
@@ -26,7 +27,7 @@
|
|
|
26
27
|
|
|
27
28
|
**按类型分档的 TTL、`message_id` 去重、已在别端投递后丢弃、原子重放、per-user flush 锁、接收端时效守卫**——把「客户端离线时暂存消息」这件小事做对。
|
|
28
29
|
|
|
29
|
-
来自 [Autarkia](https://qishihao.
|
|
30
|
+
来自 [Autarkia](https://qishihao.dev/projects/autarkia) agent 运行时:手机 App 和桌面 bot 共用一个 user id,同一条「晚安」被反复投递。整个系列见[组件库路线图](https://github.com/hakituo/Autarkia-tool/blob/main/ROADMAP.md)。
|
|
30
31
|
|
|
31
32
|
### 为什么
|
|
32
33
|
|
|
@@ -107,11 +108,11 @@ if is_stale_offline_replay(payload, max_age_seconds=600):
|
|
|
107
108
|
|
|
108
109
|
### 系列与链接
|
|
109
110
|
|
|
110
|
-
- 项目页:<https://qishihao.
|
|
111
|
+
- 项目页:<https://qishihao.dev/projects/autarkia>
|
|
111
112
|
- 运行时仓库:<https://github.com/hakituo/Autarkia>
|
|
112
113
|
- 本包:<https://github.com/hakituo/Autarkia-Msgqueue>
|
|
113
114
|
- 组件库路线图:<https://github.com/hakituo/Autarkia-tool/blob/main/ROADMAP.md>
|
|
114
|
-
- 作者:Shihao Qi — <https://qishihao.
|
|
115
|
+
- 作者:Shihao Qi — <https://qishihao.dev>
|
|
115
116
|
|
|
116
117
|
### 许可
|
|
117
118
|
|
|
@@ -123,7 +124,7 @@ MIT
|
|
|
123
124
|
|
|
124
125
|
**Per-type TTL, message-id dedupe, discard-after-elsewhere-delivery, atomic replay, per-user flush locks, and a receiver-side staleness guard** — the small "store messages while the client is offline" problem, done correctly.
|
|
125
126
|
|
|
126
|
-
Extracted from the [Autarkia](https://qishihao.
|
|
127
|
+
Extracted from the [Autarkia](https://qishihao.dev/projects/autarkia) agent runtime, where a phone app and a desktop bot shared one user id and kept re-delivering the same goodnight message. See the [component roadmap](https://github.com/hakituo/Autarkia-tool/blob/main/ROADMAP.md).
|
|
127
128
|
|
|
128
129
|
### Why
|
|
129
130
|
|
|
@@ -204,11 +205,11 @@ Replayed payloads carry `is_offline_replay: True` and `offline_queued_at` (epoch
|
|
|
204
205
|
|
|
205
206
|
### The bigger picture
|
|
206
207
|
|
|
207
|
-
- Project page: <https://qishihao.
|
|
208
|
+
- Project page: <https://qishihao.dev/projects/autarkia>
|
|
208
209
|
- Runtime repository: <https://github.com/hakituo/Autarkia>
|
|
209
210
|
- This package: <https://github.com/hakituo/Autarkia-Msgqueue>
|
|
210
211
|
- Roadmap: <https://github.com/hakituo/Autarkia-tool/blob/main/ROADMAP.md>
|
|
211
|
-
- Author: Shihao Qi — <https://qishihao.
|
|
212
|
+
- Author: Shihao Qi — <https://qishihao.dev>
|
|
212
213
|
|
|
213
214
|
### License
|
|
214
215
|
|
|
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "Autarkia-Msgqueue"
|
|
7
|
-
version = "0.1.
|
|
7
|
+
version = "0.1.1"
|
|
8
8
|
description = "Reliable offline message queue for WebSocket clients: per-type TTL, message-id dedupe, discard-after-elsewhere-delivery, atomic replay, per-user locks and a receiver-side staleness guard."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
license = "MIT"
|
|
@@ -37,11 +37,11 @@ classifiers = [
|
|
|
37
37
|
dependencies = []
|
|
38
38
|
|
|
39
39
|
[project.urls]
|
|
40
|
-
Homepage = "https://qishihao.
|
|
40
|
+
Homepage = "https://qishihao.dev/projects/autarkia"
|
|
41
41
|
Repository = "https://github.com/hakituo/Autarkia-Msgqueue"
|
|
42
42
|
Roadmap = "https://github.com/hakituo/Autarkia-tool/blob/main/ROADMAP.md"
|
|
43
43
|
"Autarkia Runtime" = "https://github.com/hakituo/Autarkia"
|
|
44
|
-
Author = "https://qishihao.
|
|
44
|
+
Author = "https://qishihao.dev"
|
|
45
45
|
|
|
46
46
|
[tool.pytest.ini_options]
|
|
47
47
|
testpaths = ["tests"]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|