gpmq 0.4.0__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.
Files changed (41) hide show
  1. gpmq-0.4.0/.gitignore +199 -0
  2. gpmq-0.4.0/LICENSE +21 -0
  3. gpmq-0.4.0/PKG-INFO +611 -0
  4. gpmq-0.4.0/README.md +567 -0
  5. gpmq-0.4.0/README.zh-CN.md +567 -0
  6. gpmq-0.4.0/docs/api/gpmq_api.md +876 -0
  7. gpmq-0.4.0/docs/api/gpmq_api.zh.md +876 -0
  8. gpmq-0.4.0/docs/cli/gpmq_cli.md +236 -0
  9. gpmq-0.4.0/docs/cli/gpmq_cli.zh.md +236 -0
  10. gpmq-0.4.0/docs/index.md +84 -0
  11. gpmq-0.4.0/docs/index.zh.md +84 -0
  12. gpmq-0.4.0/docs/stylesheets/extra.css +18 -0
  13. gpmq-0.4.0/mkdocs.yml +75 -0
  14. gpmq-0.4.0/pyproject.toml +88 -0
  15. gpmq-0.4.0/src/gpmq/__init__.py +110 -0
  16. gpmq-0.4.0/src/gpmq/async_batch.py +173 -0
  17. gpmq-0.4.0/src/gpmq/cli.py +432 -0
  18. gpmq-0.4.0/src/gpmq/client.py +325 -0
  19. gpmq-0.4.0/src/gpmq/config.py +383 -0
  20. gpmq-0.4.0/src/gpmq/exceptions.py +117 -0
  21. gpmq-0.4.0/src/gpmq/log.py +54 -0
  22. gpmq-0.4.0/src/gpmq/models/__init__.py +16 -0
  23. gpmq-0.4.0/src/gpmq/models/message.py +22 -0
  24. gpmq-0.4.0/src/gpmq/models/result.py +33 -0
  25. gpmq-0.4.0/src/gpmq/models/status.py +33 -0
  26. gpmq-0.4.0/src/gpmq/models/worker_info.py +27 -0
  27. gpmq-0.4.0/src/gpmq/process.py +20 -0
  28. gpmq-0.4.0/src/gpmq/progress.py +50 -0
  29. gpmq-0.4.0/src/gpmq/publisher/__init__.py +9 -0
  30. gpmq-0.4.0/src/gpmq/publisher/publisher.py +210 -0
  31. gpmq-0.4.0/src/gpmq/publisher/result_handler.py +192 -0
  32. gpmq-0.4.0/src/gpmq/storage/__init__.py +9 -0
  33. gpmq-0.4.0/src/gpmq/storage/audit_store.py +503 -0
  34. gpmq-0.4.0/src/gpmq/storage/redis_adapter.py +660 -0
  35. gpmq-0.4.0/src/gpmq/subscriber/__init__.py +17 -0
  36. gpmq-0.4.0/src/gpmq/subscriber/decorators.py +168 -0
  37. gpmq-0.4.0/src/gpmq/subscriber/examples.py +215 -0
  38. gpmq-0.4.0/src/gpmq/subscriber/handler.py +185 -0
  39. gpmq-0.4.0/src/gpmq/subscriber/subscriber.py +241 -0
  40. gpmq-0.4.0/src/gpmq/subscriber/worker.py +539 -0
  41. gpmq-0.4.0/src/gpmq/subscriber/worker_manager.py +150 -0
gpmq-0.4.0/.gitignore ADDED
@@ -0,0 +1,199 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[codz]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # git
10
+ .git/
11
+ .worktrees/
12
+
13
+ # Distribution / packaging
14
+ .Python
15
+ build/
16
+ develop-eggs/
17
+ dist/
18
+ downloads/
19
+ eggs/
20
+ .eggs/
21
+ lib/
22
+ lib64/
23
+ parts/
24
+ sdist/
25
+ var/
26
+ wheels/
27
+ share/python-wheels/
28
+ *.egg-info/
29
+ .installed.cfg
30
+ *.egg
31
+ MANIFEST
32
+
33
+ # PyInstaller
34
+ *.manifest
35
+ *.spec
36
+
37
+ # Installer logs
38
+ pip-log.txt
39
+ pip-delete-this-directory.txt
40
+
41
+ # Unit test / coverage reports
42
+ htmlcov/
43
+ .tox/
44
+ .nox/
45
+ .coverage
46
+ .coverage.*
47
+ .cache
48
+ nosetests.xml
49
+ coverage.xml
50
+ *.cover
51
+ *.py.cover
52
+ .hypothesis/
53
+ .pytest_cache/
54
+ cover/
55
+
56
+ # Translations
57
+ *.mo
58
+ *.pot
59
+
60
+ # Django stuff:
61
+ *.log
62
+ local_settings.py
63
+ db.sqlite3
64
+ db.sqlite3-journal
65
+
66
+ # Flask stuff:
67
+ instance/
68
+ .webassets-cache
69
+
70
+ # Scrapy stuff:
71
+ .scrapy
72
+
73
+ # Sphinx documentation
74
+ docs/_build/
75
+
76
+ # PyBuilder
77
+ .pybuilder/
78
+ target/
79
+
80
+ # Jupyter Notebook
81
+ .ipynb_checkpoints
82
+
83
+ # IPython
84
+ profile_default/
85
+ ipython_config.py
86
+
87
+ # pyenv
88
+ .python-version
89
+
90
+ # pipenv
91
+ Pipfile.lock
92
+
93
+ # UV
94
+ uv.lock
95
+
96
+ # poetry
97
+ poetry.lock
98
+ poetry.toml
99
+
100
+ # pdm
101
+ pdm.lock
102
+ pdm.toml
103
+ .pdm-python
104
+ .pdm-build/
105
+
106
+ # pixi
107
+ .pixi
108
+
109
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
110
+ __pypackages__/
111
+
112
+ # Celery stuff
113
+ celerybeat-schedule
114
+ celerybeat.pid
115
+
116
+ # SageMath parsed files
117
+ *.sage.py
118
+
119
+ # Environments
120
+ .env
121
+ .envrc
122
+ .venv
123
+ env/
124
+ venv/
125
+ ENV/
126
+ env.bak/
127
+ venv.bak/
128
+
129
+ # Spyder project settings
130
+ .spyderproject
131
+ .spyproject
132
+
133
+ # Rope project settings
134
+ .ropeproject
135
+
136
+ # mkdocs documentation
137
+ /site
138
+
139
+ # mypy
140
+ .mypy_cache/
141
+ .dmypy.json
142
+ dmypy.json
143
+
144
+ # Pyre type checker
145
+ .pyre/
146
+
147
+ # pytype static type analyzer
148
+ .pytype/
149
+
150
+ # Cython debug symbols
151
+ cython_debug/
152
+
153
+ # PyCharm
154
+ .idea/
155
+
156
+ # Abstra
157
+ .abstra/
158
+
159
+ # Visual Studio Code
160
+ .vscode/
161
+
162
+ # Ruff stuff:
163
+ .ruff_cache/
164
+
165
+ # PyPI configuration file
166
+ .pypirc
167
+
168
+ # Cursor
169
+ .cursorignore
170
+ .cursorindexingignore
171
+
172
+ # Calude Code
173
+ CLAUDE.md
174
+ .claude/
175
+
176
+ # OpenCode
177
+ AGENTS.md
178
+ .opencode/
179
+
180
+ # Github Copilot
181
+ .github/copilot-instructions.md
182
+
183
+ # Marimo
184
+ marimo/_static/
185
+ marimo/_lsp/
186
+ __marimo__/
187
+
188
+ # User drafts
189
+ draft/
190
+ dev_docs/
191
+
192
+ # user progress
193
+ PROGRESS.md
194
+ progress.md
195
+
196
+ # user ignore
197
+ output/
198
+ site/
199
+ examples/configs/
gpmq-0.4.0/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 LinnetCodes
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.