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.
@@ -1,12 +1,12 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: Autarkia-Msgqueue
3
- Version: 0.1.0
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.icu/projects/autarkia
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.icu
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.icu/projects/autarkia) agent 运行时:手机 App 和桌面 bot 共用一个 user id,同一条「晚安」被反复投递。整个系列见[组件库路线图](https://github.com/hakituo/Autarkia-tool/blob/main/ROADMAP.md)。
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.icu/projects/autarkia>
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.icu>
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.icu/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
+ 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.icu/projects/autarkia>
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.icu>
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.icu/projects/autarkia) agent 运行时:手机 App 和桌面 bot 共用一个 user id,同一条「晚安」被反复投递。整个系列见[组件库路线图](https://github.com/hakituo/Autarkia-tool/blob/main/ROADMAP.md)。
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.icu/projects/autarkia>
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.icu>
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.icu/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
+ 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.icu/projects/autarkia>
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.icu>
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.0"
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.icu/projects/autarkia"
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.icu"
44
+ Author = "https://qishihao.dev"
45
45
 
46
46
  [tool.pytest.ini_options]
47
47
  testpaths = ["tests"]
@@ -13,7 +13,7 @@ from .replay_guard import (
13
13
  offline_replay_age,
14
14
  )
15
15
 
16
- __version__ = "0.1.0"
16
+ __version__ = "0.1.1"
17
17
 
18
18
  __all__ = [
19
19
  "__version__",
@@ -436,7 +436,7 @@ class TestApi:
436
436
  def test_version(self):
437
437
  import autarkia_msgqueue
438
438
 
439
- assert autarkia_msgqueue.__version__ == "0.1.0"
439
+ assert autarkia_msgqueue.__version__ == "0.1.1"
440
440
 
441
441
  def test_all_exports(self):
442
442
  import autarkia_msgqueue