investify-utils 2.0.0a5__tar.gz → 2.0.0a6__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 investify-utils might be problematic. Click here for more details.
- {investify_utils-2.0.0a5 → investify_utils-2.0.0a6}/PKG-INFO +2 -2
- {investify_utils-2.0.0a5 → investify_utils-2.0.0a6}/investify_utils/kafka/async_producer.py +2 -1
- {investify_utils-2.0.0a5 → investify_utils-2.0.0a6}/investify_utils/kafka/sync_producer.py +2 -1
- {investify_utils-2.0.0a5 → investify_utils-2.0.0a6}/pyproject.toml +2 -2
- {investify_utils-2.0.0a5 → investify_utils-2.0.0a6}/README.md +0 -0
- {investify_utils-2.0.0a5 → investify_utils-2.0.0a6}/investify_utils/__init__.py +0 -0
- {investify_utils-2.0.0a5 → investify_utils-2.0.0a6}/investify_utils/kafka/__init__.py +0 -0
- {investify_utils-2.0.0a5 → investify_utils-2.0.0a6}/investify_utils/kafka/async_consumer.py +0 -0
- {investify_utils-2.0.0a5 → investify_utils-2.0.0a6}/investify_utils/kafka/sync_consumer.py +0 -0
- {investify_utils-2.0.0a5 → investify_utils-2.0.0a6}/investify_utils/postgres/__init__.py +0 -0
- {investify_utils-2.0.0a5 → investify_utils-2.0.0a6}/investify_utils/postgres/async_client.py +0 -0
- {investify_utils-2.0.0a5 → investify_utils-2.0.0a6}/investify_utils/postgres/sync_client.py +0 -0
- {investify_utils-2.0.0a5 → investify_utils-2.0.0a6}/investify_utils/s3/__init__.py +0 -0
- {investify_utils-2.0.0a5 → investify_utils-2.0.0a6}/investify_utils/s3/sync_client.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: investify-utils
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.0a6
|
|
4
4
|
Summary: Shared utilities for Investify services
|
|
5
5
|
Author-Email: Investify <dev@investify.vn>
|
|
6
6
|
License: MIT
|
|
@@ -21,7 +21,7 @@ Requires-Dist: pandas>=2.0; extra == "postgres-async"
|
|
|
21
21
|
Requires-Dist: sqlalchemy>=2.0; extra == "postgres-async"
|
|
22
22
|
Requires-Dist: asyncpg>=0.29; extra == "postgres-async"
|
|
23
23
|
Provides-Extra: kafka
|
|
24
|
-
Requires-Dist: confluent-kafka>=2.0; extra == "kafka"
|
|
24
|
+
Requires-Dist: confluent-kafka[avro,schemaregistry]>=2.0; extra == "kafka"
|
|
25
25
|
Provides-Extra: s3
|
|
26
26
|
Requires-Dist: boto3>=1.34; extra == "s3"
|
|
27
27
|
Provides-Extra: dev
|
|
@@ -23,6 +23,7 @@ Usage:
|
|
|
23
23
|
|
|
24
24
|
import asyncio
|
|
25
25
|
import logging
|
|
26
|
+
from typing import Callable
|
|
26
27
|
|
|
27
28
|
from confluent_kafka import KafkaException, SerializingProducer
|
|
28
29
|
from confluent_kafka.schema_registry import SchemaRegistryClient, record_subject_name_strategy
|
|
@@ -100,7 +101,7 @@ class AsyncAvroProducer:
|
|
|
100
101
|
self,
|
|
101
102
|
value: dict,
|
|
102
103
|
key: str | None = None,
|
|
103
|
-
on_delivery:
|
|
104
|
+
on_delivery: Callable | None = None,
|
|
104
105
|
) -> asyncio.Future:
|
|
105
106
|
"""
|
|
106
107
|
Produce a message asynchronously.
|
|
@@ -23,6 +23,7 @@ Usage:
|
|
|
23
23
|
|
|
24
24
|
import logging
|
|
25
25
|
import threading
|
|
26
|
+
from typing import Callable
|
|
26
27
|
|
|
27
28
|
from confluent_kafka import SerializingProducer
|
|
28
29
|
from confluent_kafka.schema_registry import SchemaRegistryClient, record_subject_name_strategy
|
|
@@ -103,7 +104,7 @@ class AvroProducer:
|
|
|
103
104
|
self,
|
|
104
105
|
value: dict,
|
|
105
106
|
key: str | None = None,
|
|
106
|
-
on_delivery:
|
|
107
|
+
on_delivery: Callable | None = None,
|
|
107
108
|
) -> None:
|
|
108
109
|
"""
|
|
109
110
|
Produce a message to Kafka.
|
|
@@ -6,7 +6,7 @@ build-backend = "pdm.backend"
|
|
|
6
6
|
|
|
7
7
|
[project]
|
|
8
8
|
name = "investify-utils"
|
|
9
|
-
version = "2.0.
|
|
9
|
+
version = "2.0.0a6"
|
|
10
10
|
description = "Shared utilities for Investify services"
|
|
11
11
|
readme = "README.md"
|
|
12
12
|
requires-python = ">=3.12"
|
|
@@ -41,7 +41,7 @@ postgres-async = [
|
|
|
41
41
|
"asyncpg>=0.29",
|
|
42
42
|
]
|
|
43
43
|
kafka = [
|
|
44
|
-
"confluent-kafka>=2.0",
|
|
44
|
+
"confluent-kafka[avro,schemaregistry]>=2.0",
|
|
45
45
|
]
|
|
46
46
|
s3 = [
|
|
47
47
|
"boto3>=1.34",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{investify_utils-2.0.0a5 → investify_utils-2.0.0a6}/investify_utils/postgres/async_client.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|