investify-utils 2.0.0a2__py3-none-any.whl → 2.0.0a3__py3-none-any.whl

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.
@@ -8,7 +8,18 @@ Async client (asyncpg):
8
8
  from investify_utils.postgres import AsyncPostgresClient
9
9
  """
10
10
 
11
- from investify_utils.postgres.sync_client import PostgresClient
12
- from investify_utils.postgres.async_client import AsyncPostgresClient
11
+
12
+ def __getattr__(name: str):
13
+ """Lazy import to avoid loading dependencies for unused clients."""
14
+ if name == "PostgresClient":
15
+ from investify_utils.postgres.sync_client import PostgresClient
16
+
17
+ return PostgresClient
18
+ if name == "AsyncPostgresClient":
19
+ from investify_utils.postgres.async_client import AsyncPostgresClient
20
+
21
+ return AsyncPostgresClient
22
+ raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
23
+
13
24
 
14
25
  __all__ = ["PostgresClient", "AsyncPostgresClient"]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: investify-utils
3
- Version: 2.0.0a2
3
+ Version: 2.0.0a3
4
4
  Summary: Shared utilities for Investify services
5
5
  Author-Email: Investify <dev@investify.vn>
6
6
  License: MIT
@@ -0,0 +1,8 @@
1
+ investify_utils-2.0.0a3.dist-info/METADATA,sha256=CS_yqnqwG6jeX1a2Q0Ub7ELUEeJvHpjPSOnfAcoJXOM,3560
2
+ investify_utils-2.0.0a3.dist-info/WHEEL,sha256=tsUv_t7BDeJeRHaSrczbGeuK-TtDpGsWi_JfpzD255I,90
3
+ investify_utils-2.0.0a3.dist-info/entry_points.txt,sha256=6OYgBcLyFCUgeqLgnvMyOJxPCWzgy7se4rLPKtNonMs,34
4
+ investify_utils/__init__.py,sha256=-Gn2EAJfZ5BRlh7DMSSSvOeDK6JTJq9LWTEekieh3WY,427
5
+ investify_utils/postgres/__init__.py,sha256=j4CfUw7U58vWstmxaKQuPkLVbKkOioC4Bc7_knllL_Y,737
6
+ investify_utils/postgres/async_client.py,sha256=M3F7-AsBJ43WWhfknnvTK9BeiYAyO0R6n-XY4DOnyFA,3168
7
+ investify_utils/postgres/sync_client.py,sha256=1mozgrNGUUKCR2ETAr9G9dzvW8uG_TmSqcbA63tRpM8,6507
8
+ investify_utils-2.0.0a3.dist-info/RECORD,,
@@ -1,8 +0,0 @@
1
- investify_utils-2.0.0a2.dist-info/METADATA,sha256=zNHqI9fWgl3lOf4VI_SKuWIRfuQhKFHR483rMmNpAvQ,3560
2
- investify_utils-2.0.0a2.dist-info/WHEEL,sha256=tsUv_t7BDeJeRHaSrczbGeuK-TtDpGsWi_JfpzD255I,90
3
- investify_utils-2.0.0a2.dist-info/entry_points.txt,sha256=6OYgBcLyFCUgeqLgnvMyOJxPCWzgy7se4rLPKtNonMs,34
4
- investify_utils/__init__.py,sha256=-Gn2EAJfZ5BRlh7DMSSSvOeDK6JTJq9LWTEekieh3WY,427
5
- investify_utils/postgres/__init__.py,sha256=RYuBFyj0CfpWfHgBv2NUIiK1pGJERud-IWrFD5S6Wus,406
6
- investify_utils/postgres/async_client.py,sha256=M3F7-AsBJ43WWhfknnvTK9BeiYAyO0R6n-XY4DOnyFA,3168
7
- investify_utils/postgres/sync_client.py,sha256=1mozgrNGUUKCR2ETAr9G9dzvW8uG_TmSqcbA63tRpM8,6507
8
- investify_utils-2.0.0a2.dist-info/RECORD,,