python-cq 0.7.0__tar.gz → 0.7.1.post0__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.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 remimd
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,10 +1,11 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: python-cq
3
- Version: 0.7.0
3
+ Version: 0.7.1.post0
4
4
  Summary: Lightweight CQRS library.
5
5
  Project-URL: Repository, https://github.com/100nm/python-cq
6
6
  Author: remimd
7
- License: MIT
7
+ License-Expression: MIT
8
+ License-File: LICENSE
8
9
  Keywords: cqrs
9
10
  Classifier: Development Status :: 4 - Beta
10
11
  Classifier: Intended Audience :: Developers
@@ -13,6 +14,8 @@ Classifier: Operating System :: OS Independent
13
14
  Classifier: Programming Language :: Python
14
15
  Classifier: Programming Language :: Python :: 3
15
16
  Classifier: Programming Language :: Python :: 3 :: Only
17
+ Classifier: Programming Language :: Python :: 3.12
18
+ Classifier: Programming Language :: Python :: 3.13
16
19
  Classifier: Topic :: Software Development :: Libraries
17
20
  Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
18
21
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
@@ -25,7 +28,8 @@ Description-Content-Type: text/markdown
25
28
  # python-cq
26
29
 
27
30
  [![CI](https://github.com/100nm/python-cq/actions/workflows/ci.yml/badge.svg)](https://github.com/100nm/python-cq)
28
- [![PyPI](https://img.shields.io/pypi/v/python-cq.svg?color=blue)](https://pypi.org/project/python-cq/)
31
+ [![PyPI - Version](https://img.shields.io/pypi/v/python-cq.svg?color=blue)](https://pypi.org/project/python-cq/)
32
+ [![PyPI - Downloads](https://img.shields.io/pypi/dm/python-cq.svg?color=blue)](https://pypistats.org/packages/python-cq)
29
33
  [![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
30
34
 
31
35
  Lightweight library for separating Python code according to **Command and Query Responsibility Segregation** principles.
@@ -1,7 +1,8 @@
1
1
  # python-cq
2
2
 
3
3
  [![CI](https://github.com/100nm/python-cq/actions/workflows/ci.yml/badge.svg)](https://github.com/100nm/python-cq)
4
- [![PyPI](https://img.shields.io/pypi/v/python-cq.svg?color=blue)](https://pypi.org/project/python-cq/)
4
+ [![PyPI - Version](https://img.shields.io/pypi/v/python-cq.svg?color=blue)](https://pypi.org/project/python-cq/)
5
+ [![PyPI - Downloads](https://img.shields.io/pypi/dm/python-cq.svg?color=blue)](https://pypistats.org/packages/python-cq)
5
6
  [![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
6
7
 
7
8
  Lightweight library for separating Python code according to **Command and Query Responsibility Segregation** principles.
@@ -33,7 +33,7 @@ query_handler: HandlerDecorator[Query, Any] = HandlerDecorator(
33
33
  )
34
34
 
35
35
 
36
- @injection.singleton(inject=False, mode="fallback")
36
+ @injection.injectable(inject=False, mode="fallback")
37
37
  def new_command_bus() -> CommandBus: # type: ignore[type-arg]
38
38
  bus = SimpleBus(command_handler.manager)
39
39
  transaction_scope_middleware = InjectionScopeMiddleware(
@@ -44,11 +44,11 @@ def new_command_bus() -> CommandBus: # type: ignore[type-arg]
44
44
  return bus
45
45
 
46
46
 
47
- @injection.singleton(inject=False, mode="fallback")
47
+ @injection.injectable(inject=False, mode="fallback")
48
48
  def new_event_bus() -> EventBus:
49
49
  return TaskBus(event_handler.manager)
50
50
 
51
51
 
52
- @injection.singleton(inject=False, mode="fallback")
52
+ @injection.injectable(inject=False, mode="fallback")
53
53
  def new_query_bus() -> QueryBus: # type: ignore[type-arg]
54
54
  return SimpleBus(query_handler.manager)
@@ -21,9 +21,10 @@ test = [
21
21
 
22
22
  [project]
23
23
  name = "python-cq"
24
- version = "0.7.0"
24
+ version = "0.7.1.post0"
25
25
  description = "Lightweight CQRS library."
26
- license = { text = "MIT" }
26
+ license = "MIT"
27
+ license-files = ["LICENSE"]
27
28
  readme = "README.md"
28
29
  requires-python = ">=3.12, <4"
29
30
  authors = [{ name = "remimd" }]
@@ -36,6 +37,8 @@ classifiers = [
36
37
  "Programming Language :: Python",
37
38
  "Programming Language :: Python :: 3",
38
39
  "Programming Language :: Python :: 3 :: Only",
40
+ "Programming Language :: Python :: 3.12",
41
+ "Programming Language :: Python :: 3.13",
39
42
  "Operating System :: OS Independent",
40
43
  "Intended Audience :: Developers",
41
44
  "Natural Language :: English",
File without changes
File without changes