eventsourcing 9.4.0a7__tar.gz → 9.4.0a8__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.

Potentially problematic release.


This version of eventsourcing might be problematic. Click here for more details.

Files changed (26) hide show
  1. {eventsourcing-9.4.0a7 → eventsourcing-9.4.0a8}/PKG-INFO +1 -1
  2. {eventsourcing-9.4.0a7 → eventsourcing-9.4.0a8}/eventsourcing/application.py +3 -7
  3. {eventsourcing-9.4.0a7 → eventsourcing-9.4.0a8}/eventsourcing/domain.py +346 -357
  4. {eventsourcing-9.4.0a7 → eventsourcing-9.4.0a8}/eventsourcing/persistence.py +18 -24
  5. {eventsourcing-9.4.0a7 → eventsourcing-9.4.0a8}/eventsourcing/popo.py +5 -1
  6. {eventsourcing-9.4.0a7 → eventsourcing-9.4.0a8}/eventsourcing/postgres.py +41 -33
  7. {eventsourcing-9.4.0a7 → eventsourcing-9.4.0a8}/eventsourcing/projection.py +22 -19
  8. {eventsourcing-9.4.0a7 → eventsourcing-9.4.0a8}/eventsourcing/sqlite.py +5 -1
  9. {eventsourcing-9.4.0a7 → eventsourcing-9.4.0a8}/eventsourcing/system.py +19 -11
  10. {eventsourcing-9.4.0a7 → eventsourcing-9.4.0a8}/eventsourcing/tests/application.py +57 -49
  11. {eventsourcing-9.4.0a7 → eventsourcing-9.4.0a8}/eventsourcing/tests/domain.py +8 -6
  12. {eventsourcing-9.4.0a7 → eventsourcing-9.4.0a8}/eventsourcing/tests/persistence.py +162 -143
  13. {eventsourcing-9.4.0a7 → eventsourcing-9.4.0a8}/eventsourcing/tests/postgres_utils.py +7 -8
  14. {eventsourcing-9.4.0a7 → eventsourcing-9.4.0a8}/eventsourcing/utils.py +15 -10
  15. {eventsourcing-9.4.0a7 → eventsourcing-9.4.0a8}/pyproject.toml +1 -1
  16. {eventsourcing-9.4.0a7 → eventsourcing-9.4.0a8}/AUTHORS +0 -0
  17. {eventsourcing-9.4.0a7 → eventsourcing-9.4.0a8}/LICENSE +0 -0
  18. {eventsourcing-9.4.0a7 → eventsourcing-9.4.0a8}/README.md +0 -0
  19. {eventsourcing-9.4.0a7 → eventsourcing-9.4.0a8}/eventsourcing/__init__.py +0 -0
  20. {eventsourcing-9.4.0a7 → eventsourcing-9.4.0a8}/eventsourcing/cipher.py +0 -0
  21. {eventsourcing-9.4.0a7 → eventsourcing-9.4.0a8}/eventsourcing/compressor.py +0 -0
  22. {eventsourcing-9.4.0a7 → eventsourcing-9.4.0a8}/eventsourcing/cryptography.py +0 -0
  23. {eventsourcing-9.4.0a7 → eventsourcing-9.4.0a8}/eventsourcing/dispatch.py +0 -0
  24. {eventsourcing-9.4.0a7 → eventsourcing-9.4.0a8}/eventsourcing/interface.py +0 -0
  25. {eventsourcing-9.4.0a7 → eventsourcing-9.4.0a8}/eventsourcing/py.typed +0 -0
  26. {eventsourcing-9.4.0a7 → eventsourcing-9.4.0a8}/eventsourcing/tests/__init__.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: eventsourcing
3
- Version: 9.4.0a7
3
+ Version: 9.4.0a8
4
4
  Summary: Event sourcing in Python
5
5
  License: BSD 3-Clause
6
6
  Keywords: event sourcing,event store,domain driven design,domain-driven design,ddd,cqrs,cqs
@@ -43,7 +43,6 @@ from eventsourcing.persistence import (
43
43
  Notification,
44
44
  Recording,
45
45
  Tracking,
46
- TrackingRecorder,
47
46
  Transcoder,
48
47
  UUIDAsHex,
49
48
  )
@@ -95,10 +94,9 @@ class Cache(Generic[S, T]):
95
94
  return self.cache.pop(key)
96
95
  return self.cache[key]
97
96
 
98
- def put(self, key: S, value: T) -> T | None:
97
+ def put(self, key: S, value: T | None) -> None:
99
98
  if value is not None:
100
99
  self.cache[key] = value
101
- return None
102
100
 
103
101
 
104
102
  class LRUCache(Cache[S, T]):
@@ -153,7 +151,7 @@ class LRUCache(Cache[S, T]):
153
151
  return result
154
152
  raise KeyError
155
153
 
156
- def put(self, key: S, value: T) -> Any | None:
154
+ def put(self, key: S, value: T | None) -> Any | None:
157
155
  evicted_key = None
158
156
  evicted_value = None
159
157
  with self.lock:
@@ -690,9 +688,7 @@ class Application:
690
688
  _env.update(env)
691
689
  return Environment(name, _env)
692
690
 
693
- def construct_factory(
694
- self, env: Environment
695
- ) -> InfrastructureFactory[TrackingRecorder]:
691
+ def construct_factory(self, env: Environment) -> InfrastructureFactory:
696
692
  """
697
693
  Constructs an :class:`~eventsourcing.persistence.InfrastructureFactory`
698
694
  for use by the application.