DefStream-Redis 0.1.3__tar.gz → 0.1.4__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 DefStream-Redis might be problematic. Click here for more details.

Files changed (33) hide show
  1. {defstream_redis-0.1.3 → defstream_redis-0.1.4/DefStream_Redis.egg-info}/PKG-INFO +7 -3
  2. {defstream_redis-0.1.3 → defstream_redis-0.1.4}/DefStream_Redis.egg-info/SOURCES.txt +3 -0
  3. defstream_redis-0.1.4/DefStream_Redis.egg-info/requires.txt +2 -0
  4. {defstream_redis-0.1.3/DefStream_Redis.egg-info → defstream_redis-0.1.4}/PKG-INFO +7 -3
  5. {defstream_redis-0.1.3 → defstream_redis-0.1.4}/README.en.md +5 -1
  6. {defstream_redis-0.1.3 → defstream_redis-0.1.4}/README.md +5 -1
  7. defstream_redis-0.1.4/issues/fix/3/IMPLEMENTS.md +33 -0
  8. defstream_redis-0.1.4/issues/fix/3/README.md +41 -0
  9. defstream_redis-0.1.4/issues/fix/3/REQUIREMENTS.md +14 -0
  10. {defstream_redis-0.1.3 → defstream_redis-0.1.4}/setup.py +1 -1
  11. {defstream_redis-0.1.3 → defstream_redis-0.1.4}/src/Connection.py +3 -3
  12. defstream_redis-0.1.3/DefStream_Redis.egg-info/requires.txt +0 -2
  13. {defstream_redis-0.1.3 → defstream_redis-0.1.4}/.github/workflows/ci.yml +0 -0
  14. {defstream_redis-0.1.3 → defstream_redis-0.1.4}/.gitignore +0 -0
  15. {defstream_redis-0.1.3 → defstream_redis-0.1.4}/DefStream_Redis.egg-info/dependency_links.txt +0 -0
  16. {defstream_redis-0.1.3 → defstream_redis-0.1.4}/DefStream_Redis.egg-info/top_level.txt +0 -0
  17. {defstream_redis-0.1.3 → defstream_redis-0.1.4}/LICENSE +0 -0
  18. {defstream_redis-0.1.3 → defstream_redis-0.1.4}/issues/fix/1/IMPLEMENTS.md +0 -0
  19. {defstream_redis-0.1.3 → defstream_redis-0.1.4}/issues/fix/1/README.md +0 -0
  20. {defstream_redis-0.1.3 → defstream_redis-0.1.4}/issues/fix/1/REQUIREMENTS.md +0 -0
  21. {defstream_redis-0.1.3 → defstream_redis-0.1.4}/sample/Sample.Stream.py +0 -0
  22. {defstream_redis-0.1.3 → defstream_redis-0.1.4}/sample/Sample.py +0 -0
  23. {defstream_redis-0.1.3 → defstream_redis-0.1.4}/setup.cfg +0 -0
  24. {defstream_redis-0.1.3 → defstream_redis-0.1.4}/src/Configuration.py +0 -0
  25. {defstream_redis-0.1.3 → defstream_redis-0.1.4}/src/Consumer.py +0 -0
  26. {defstream_redis-0.1.3 → defstream_redis-0.1.4}/src/Event.py +0 -0
  27. {defstream_redis-0.1.3 → defstream_redis-0.1.4}/src/Queue.py +0 -0
  28. {defstream_redis-0.1.3 → defstream_redis-0.1.4}/src/Serializer.py +0 -0
  29. {defstream_redis-0.1.3 → defstream_redis-0.1.4}/src/Subscription.py +0 -0
  30. {defstream_redis-0.1.3 → defstream_redis-0.1.4}/src/__init__.py +0 -0
  31. {defstream_redis-0.1.3 → defstream_redis-0.1.4}/test/test_redis.py +0 -0
  32. {defstream_redis-0.1.3 → defstream_redis-0.1.4}/test/test_redis_integration.py +0 -0
  33. {defstream_redis-0.1.3 → defstream_redis-0.1.4}/test/test_release_workflow.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: DefStream-Redis
3
- Version: 0.1.3
3
+ Version: 0.1.4
4
4
  Summary: Redis Streams broker adapter for DefStream
5
5
  Home-page: https://github.com/yong5eon/DefStream-Redis
6
6
  Author: Heo Yongseon
@@ -16,7 +16,7 @@ Classifier: Programming Language :: Python :: 3.14
16
16
  Requires-Python: >=3.9
17
17
  Description-Content-Type: text/markdown
18
18
  License-File: LICENSE
19
- Requires-Dist: DefStream>=0.1.5
19
+ Requires-Dist: DefStream>=0.1.7
20
20
  Requires-Dist: redis>=5.1.1
21
21
  Dynamic: author
22
22
  Dynamic: classifier
@@ -204,9 +204,13 @@ if __name__ == '__main__':
204
204
  다른 프로세스에서 같은 스트림에 `{'a': 10, 'b': 20}`을 보내면 처리됩니다.
205
205
  Worker는 실행과 완료 훅이 끝난 뒤 ACK합니다. 반환값을 RPC 응답으로 보내지는 않습니다.
206
206
  `on_error` 생략 시 기본값은 `Requeue()`이며 예제는 `Reject()`를 명시합니다.
207
- Task API인 `send(body, task=Add, broker=connection)`도 사용할 수 있고,
207
+ Task API인 `emit(body, task=Add, broker=connection)`도 사용할 수 있고,
208
208
  연결은 호출자가 열고 닫아야 합니다.
209
209
 
210
+ 기존 작업 발행 함수와 `connection.send(body, parameters)`는 `emit`으로 이름이
211
+ 바뀌었습니다. 코어와 어댑터를 함께 갱신하고 `connection.emit(body, parameters)`를
212
+ 사용하세요. 저수준 `queue.send(body)`는 그대로입니다.
213
+
210
214
  ## ACK, 거부와 재시도
211
215
 
212
216
  | 동작 | 효과 |
@@ -12,6 +12,9 @@ DefStream_Redis.egg-info/top_level.txt
12
12
  issues/fix/1/IMPLEMENTS.md
13
13
  issues/fix/1/README.md
14
14
  issues/fix/1/REQUIREMENTS.md
15
+ issues/fix/3/IMPLEMENTS.md
16
+ issues/fix/3/README.md
17
+ issues/fix/3/REQUIREMENTS.md
15
18
  sample/Sample.Stream.py
16
19
  sample/Sample.py
17
20
  src/Configuration.py
@@ -0,0 +1,2 @@
1
+ DefStream>=0.1.7
2
+ redis>=5.1.1
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: DefStream-Redis
3
- Version: 0.1.3
3
+ Version: 0.1.4
4
4
  Summary: Redis Streams broker adapter for DefStream
5
5
  Home-page: https://github.com/yong5eon/DefStream-Redis
6
6
  Author: Heo Yongseon
@@ -16,7 +16,7 @@ Classifier: Programming Language :: Python :: 3.14
16
16
  Requires-Python: >=3.9
17
17
  Description-Content-Type: text/markdown
18
18
  License-File: LICENSE
19
- Requires-Dist: DefStream>=0.1.5
19
+ Requires-Dist: DefStream>=0.1.7
20
20
  Requires-Dist: redis>=5.1.1
21
21
  Dynamic: author
22
22
  Dynamic: classifier
@@ -204,9 +204,13 @@ if __name__ == '__main__':
204
204
  다른 프로세스에서 같은 스트림에 `{'a': 10, 'b': 20}`을 보내면 처리됩니다.
205
205
  Worker는 실행과 완료 훅이 끝난 뒤 ACK합니다. 반환값을 RPC 응답으로 보내지는 않습니다.
206
206
  `on_error` 생략 시 기본값은 `Requeue()`이며 예제는 `Reject()`를 명시합니다.
207
- Task API인 `send(body, task=Add, broker=connection)`도 사용할 수 있고,
207
+ Task API인 `emit(body, task=Add, broker=connection)`도 사용할 수 있고,
208
208
  연결은 호출자가 열고 닫아야 합니다.
209
209
 
210
+ 기존 작업 발행 함수와 `connection.send(body, parameters)`는 `emit`으로 이름이
211
+ 바뀌었습니다. 코어와 어댑터를 함께 갱신하고 `connection.emit(body, parameters)`를
212
+ 사용하세요. 저수준 `queue.send(body)`는 그대로입니다.
213
+
210
214
  ## ACK, 거부와 재시도
211
215
 
212
216
  | 동작 | 효과 |
@@ -165,9 +165,13 @@ Send `{'a': 10, 'b': 20}` to the same stream from another process.
165
165
  The Worker ACKs after execution and completion hooks finish; it does not return
166
166
  the result as an RPC reply. The default failure policy is `Requeue()` if
167
167
  `on_error` is omitted; this example selects `Reject()`.
168
- You can also use the task API `send(body, task=Add, broker=connection)`;
168
+ You can also use the task API `emit(body, task=Add, broker=connection)`;
169
169
  the caller must connect and close the connection.
170
170
 
171
+ The task helper and `connection.send(body, parameters)` have been renamed to `emit`.
172
+ Update the core and adapter together and use `connection.emit(body, parameters)`.
173
+ Low-level `queue.send(body)` remains unchanged.
174
+
171
175
  ## ACK, rejection, and retries
172
176
 
173
177
  | Operation | Effect |
@@ -173,9 +173,13 @@ if __name__ == '__main__':
173
173
  다른 프로세스에서 같은 스트림에 `{'a': 10, 'b': 20}`을 보내면 처리됩니다.
174
174
  Worker는 실행과 완료 훅이 끝난 뒤 ACK합니다. 반환값을 RPC 응답으로 보내지는 않습니다.
175
175
  `on_error` 생략 시 기본값은 `Requeue()`이며 예제는 `Reject()`를 명시합니다.
176
- Task API인 `send(body, task=Add, broker=connection)`도 사용할 수 있고,
176
+ Task API인 `emit(body, task=Add, broker=connection)`도 사용할 수 있고,
177
177
  연결은 호출자가 열고 닫아야 합니다.
178
178
 
179
+ 기존 작업 발행 함수와 `connection.send(body, parameters)`는 `emit`으로 이름이
180
+ 바뀌었습니다. 코어와 어댑터를 함께 갱신하고 `connection.emit(body, parameters)`를
181
+ 사용하세요. 저수준 `queue.send(body)`는 그대로입니다.
182
+
179
183
  ## ACK, 거부와 재시도
180
184
 
181
185
  | 동작 | 효과 |
@@ -0,0 +1,33 @@
1
+ # 공통 브로커 참조 경로 구현 기록
2
+
3
+ - Configuration, Connection, Consumer, Event, Queue와 패키지 초기화의 공통 요소 참조를
4
+ `from DefStream.Broker import ...`로 변경했다.
5
+ - 공통 패키지가 공개하는 기존 클래스와 정책을 그대로 사용하며 새로운 우선순위 기능은 추가하지 않았다.
6
+ - Redis 전체 테스트 14개 중 10개 통과, 선택적 통합 테스트 4개 건너뜀을 확인했다.
7
+ - 코어 메시지 테스트 16개 통과·2개 건너뜀 및 RabbitMQ 실서버 테스트 38개 통과로
8
+ 함께 로드되는 브로커 간 회귀를 확인했다.
9
+
10
+ ## 작업 발행 API 이름 통일
11
+
12
+ - `TaskSender` 대신 공통 `Emittable`을 구현한다.
13
+ - 작업 발행 `Connection.send`를 `emit`으로 변경했다. 내부 `Queue.send`는 유지했다.
14
+ - 한영 README의 작업 API와 이름 전환 안내를 갱신했다.
15
+ - 현재 코어와 로컬 어댑터 소스를 직접 로드해 전체 36개 중 32개 통과,
16
+ Redis 실서버 전용 4개 건너뜀을 확인했다. Redis 실서버 검증은 실행하지 않았다.
17
+ - Docker RabbitMQ 연동을 켠 코어 전체 164개 중 160개 통과·Redis 전용 4개 건너뜀,
18
+ RabbitMQ 어댑터 60개 전부 통과도 확인했다.
19
+
20
+ ## Docker Redis 실서버 재검증
21
+
22
+ - 2026-10-19에 `redis:7` 이미지로 `defstream-redis`를 생성했다.
23
+ 실제 서버 버전은 `7.4.11`이며 `127.0.0.1:6379`에만 포트를 공개했다.
24
+ - `redis-cli ping`에서 `PONG`을 확인한 후 테스트했다.
25
+ - `DEFSTREAM_REDIS_TESTS=1`, `DEFSTREAM_RABBITMQ_TESTS=1`을 함께 설정하고
26
+ 현재 코어와 두 어댑터 소스를 직접 로드했다.
27
+ - Redis 어댑터 전체 36개, 코어 전체 164개, RabbitMQ 어댑터 전체 60개가
28
+ 모두 통과했다. 총 260개 통과이며 건너뜀·실패·오류가 없다.
29
+ - 앞서 건너뛴 Redis 통합 테스트도 실행했다. 발행·소비·이력 읽기·원자적 재전달,
30
+ QoS·콜백·정상 종료·pending 회수와 스레드·프로세스 풀을 검증했다.
31
+ - 코어의 Redis 메시지·완료 훅·Inspector·Console 통합 테스트도 통과했다.
32
+ - 테스트 종료 후 Redis `DBSIZE=0`을 확인했다.
33
+ 두 테스트 컨테이너를 종료하고 `running=false`를 확인했으며 재사용 가능하게 보존했다.
@@ -0,0 +1,41 @@
1
+ # Redis 어댑터 공통 인터페이스 참조 정리
2
+
3
+ ## 변경 전 (AS-IS)
4
+
5
+ 어댑터 소스가 공통 브로커 인터페이스와 정책을 상위 상대 경로로 참조했습니다.
6
+
7
+ ## 변경 후 (TO-BE)
8
+
9
+ 공통 요소를 `from DefStream.Broker import ...` 공개 경로로 참조합니다.
10
+ 어댑터를 확장하거나 관련 코드를 작성하는 개발자는 다음 형식을 사용하세요.
11
+
12
+ ```python
13
+ from DefStream.Broker import (
14
+ Consumer,
15
+ Event,
16
+ Requeue,
17
+ )
18
+ ```
19
+
20
+ ## 기존 코드에 미치는 영향
21
+
22
+ 기존 `DefStream.Broker.Implements.Redis` 경로와 선언·소비 동작은 유지됩니다.
23
+ 이번 변경으로 Redis 우선순위 기능이 추가되지는 않습니다.
24
+
25
+ ## 작업 발행 이름 변경
26
+
27
+ 작업 발행 함수와 연결 메서드의 `send` 이름이 `emit`으로 바뀌었습니다.
28
+ 코어와 Redis 어댑터를 함께 갱신하세요. 이전 이름은 더 이상 제공하지 않습니다.
29
+
30
+ - 작업 도우미는 `from DefStream.Worker import emit`으로 가져옵니다.
31
+ - `connection.send(body, parameters)`는 `connection.emit(body, parameters)`로 바꾸세요.
32
+ - 사용자 정의 브로커의 작업 발행 계약은 `TaskSender` 대신 `Emittable`을 사용합니다.
33
+ - 저수준 `queue.send(body)`는 그대로 사용합니다.
34
+
35
+ `emit(body, task=Add, broker=connection)`은 기존처럼 메시지 ID를 반환하며,
36
+ 호출자가 연결을 열고 닫아야 합니다. Redis RPC나 우선순위 지원이 추가되는 것은 아닙니다.
37
+
38
+ ## 상세 기록
39
+
40
+ - [요구사항](./REQUIREMENTS.md)
41
+ - [구현 및 검증](./IMPLEMENTS.md)
@@ -0,0 +1,14 @@
1
+ # 공통 브로커 참조 경로 요구사항
2
+
3
+ - Redis 구현체는 공통 인터페이스와 정책을 `from DefStream.Broker import ...`로 가져온다.
4
+ - 구현체 내부 모듈의 상대 import는 유지한다.
5
+ - 기존 Redis 선언·전송·소비·이벤트 및 정책의 동작을 변경하지 않는다.
6
+ - 공통 요소를 참조하는 상위 상대 import가 없어야 하며 기존 회귀 테스트가 통과해야 한다.
7
+
8
+ ## 작업 발행 API 이름 통일
9
+
10
+ - 공통 코어의 `TaskSender`를 대신하는 `Emittable`을 구현한다.
11
+ - 작업 발행 `Connection.send(body, parameters)`를 `emit`으로 변경한다.
12
+ 기존 이름의 호환 별칭은 제공하지 않는다.
13
+ - 저수준 `Queue.send`와 기존 메시지·그룹 처리 동작은 유지한다.
14
+ - 테스트·예제·한영 사용 설명서를 맞추고 Redis 회귀 테스트를 실행한다.
@@ -50,7 +50,7 @@ setup(
50
50
  package_dir=PACKAGE_DIR,
51
51
  include_package_data=False,
52
52
  install_requires=[
53
- 'DefStream>=0.1.5',
53
+ 'DefStream>=0.1.7',
54
54
  'redis>=5.1.1',
55
55
  ],
56
56
  classifiers=[
@@ -13,7 +13,7 @@ from DefStream.Broker import (
13
13
  GetStream,
14
14
  GetConsumer,
15
15
  Declarable,
16
- TaskSender,
16
+ Emittable,
17
17
  EventHandler,
18
18
  )
19
19
  from .Configuration import (
@@ -35,7 +35,7 @@ class Connection(
35
35
  GetStream,
36
36
  GetConsumer,
37
37
  Declarable,
38
- TaskSender,
38
+ Emittable,
39
39
  ):
40
40
  def __init__(
41
41
  self,
@@ -87,7 +87,7 @@ class Connection(
87
87
  group=subscription.group,
88
88
  )
89
89
 
90
- def send(
90
+ def emit(
91
91
  self,
92
92
  body: Any,
93
93
  parameters: Any,
@@ -1,2 +0,0 @@
1
- DefStream>=0.1.5
2
- redis>=5.1.1
File without changes