multids 0.2.0__tar.gz → 0.2.1__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.
- {multids-0.2.0 → multids-0.2.1}/PKG-INFO +3 -3
- {multids-0.2.0 → multids-0.2.1}/README.md +2 -2
- {multids-0.2.0 → multids-0.2.1}/pyproject.toml +14 -14
- {multids-0.2.0 → multids-0.2.1}/src/multids/connectors/opensearch.py +12 -6
- {multids-0.2.0 → multids-0.2.1}/LICENSE +0 -0
- {multids-0.2.0 → multids-0.2.1}/src/multids/__init__.py +0 -0
- {multids-0.2.0 → multids-0.2.1}/src/multids/ai.py +0 -0
- {multids-0.2.0 → multids-0.2.1}/src/multids/cli.py +0 -0
- {multids-0.2.0 → multids-0.2.1}/src/multids/connectors/__init__.py +0 -0
- {multids-0.2.0 → multids-0.2.1}/src/multids/connectors/athena.py +0 -0
- {multids-0.2.0 → multids-0.2.1}/src/multids/connectors/local.py +0 -0
- {multids-0.2.0 → multids-0.2.1}/src/multids/connectors/mssql.py +0 -0
- {multids-0.2.0 → multids-0.2.1}/src/multids/connectors/s3.py +0 -0
- {multids-0.2.0 → multids-0.2.1}/src/multids/connectors/sql.py +0 -0
- {multids-0.2.0 → multids-0.2.1}/src/multids/connectors/sync/__init__.py +0 -0
- {multids-0.2.0 → multids-0.2.1}/src/multids/connectors/sync/athena.py +0 -0
- {multids-0.2.0 → multids-0.2.1}/src/multids/connectors/sync/local.py +0 -0
- {multids-0.2.0 → multids-0.2.1}/src/multids/connectors/sync/mssql.py +0 -0
- {multids-0.2.0 → multids-0.2.1}/src/multids/connectors/sync/s3.py +0 -0
- {multids-0.2.0 → multids-0.2.1}/src/multids/connectors/sync/sql.py +0 -0
- {multids-0.2.0 → multids-0.2.1}/src/multids/contracts.py +0 -0
- {multids-0.2.0 → multids-0.2.1}/src/multids/errors.py +0 -0
- {multids-0.2.0 → multids-0.2.1}/src/multids/interfaces.py +0 -0
- {multids-0.2.0 → multids-0.2.1}/src/multids/reliability.py +0 -0
- {multids-0.2.0 → multids-0.2.1}/src/multids/workflows.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: multids
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.1
|
|
4
4
|
Summary: Async multi-data-source connectors (S3, OpenSearch, Athena, MySQL, SQL Server, local files) with AI hooks.
|
|
5
5
|
License-File: LICENSE
|
|
6
6
|
Author: Khaldoun Aljasem
|
|
@@ -48,8 +48,8 @@ Description-Content-Type: text/markdown
|
|
|
48
48
|
|
|
49
49
|
Async multi–data-source connectors for Python.
|
|
50
50
|
`multids` is an async-first library for moving data across S3, OpenSearch, Athena, MySQL, SQL Server, and local files.
|
|
51
|
-
It combines protocol-based abstractions, sync adapters, streaming and bulk read/write helpers, resumable multipart
|
|
52
|
-
and optional AI hooks into a composable toolkit for practical data workflows.
|
|
51
|
+
It combines protocol-based abstractions, sync adapters, streaming and bulk read/write helpers, resumable multipart
|
|
52
|
+
uploads, and optional AI hooks into a composable toolkit for practical data workflows.
|
|
53
53
|
|
|
54
54
|
---
|
|
55
55
|
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
|
|
9
9
|
Async multi–data-source connectors for Python.
|
|
10
10
|
`multids` is an async-first library for moving data across S3, OpenSearch, Athena, MySQL, SQL Server, and local files.
|
|
11
|
-
It combines protocol-based abstractions, sync adapters, streaming and bulk read/write helpers, resumable multipart
|
|
12
|
-
and optional AI hooks into a composable toolkit for practical data workflows.
|
|
11
|
+
It combines protocol-based abstractions, sync adapters, streaming and bulk read/write helpers, resumable multipart
|
|
12
|
+
uploads, and optional AI hooks into a composable toolkit for practical data workflows.
|
|
13
13
|
|
|
14
14
|
---
|
|
15
15
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "multids"
|
|
3
|
-
version = "0.2.
|
|
3
|
+
version = "0.2.1"
|
|
4
4
|
description = "Async multi-data-source connectors (S3, OpenSearch, Athena, MySQL, SQL Server, local files) with AI hooks."
|
|
5
5
|
authors = ["Khaldoun Aljasem <khaldoun.aljasem@gmail.com>"]
|
|
6
6
|
readme = "README.md"
|
|
@@ -26,25 +26,25 @@ sqlalchemy = { version = "^2.0", optional = true }
|
|
|
26
26
|
asyncmy = { version = "^0.2", optional = true }
|
|
27
27
|
aiofiles = { version = "^23.1", optional = true }
|
|
28
28
|
|
|
29
|
-
openai
|
|
30
|
-
httpx
|
|
31
|
-
boto3
|
|
32
|
-
requests = { version = "^2.31",
|
|
33
|
-
pymysql
|
|
29
|
+
openai = { version = "^1.0", optional = true }
|
|
30
|
+
httpx = { version = "^0.24.0", extras = ["http2"], optional = true }
|
|
31
|
+
boto3 = { version = ">=1.24.59,<1.24.60", optional = true }
|
|
32
|
+
requests = { version = "^2.31", optional = true }
|
|
33
|
+
pymysql = { version = "^1.1", optional = true }
|
|
34
34
|
|
|
35
35
|
# Only allow pyodbc on Python < 3.12 (4.x does not build on 3.12+)
|
|
36
|
-
pyodbc
|
|
37
|
-
aioodbc
|
|
36
|
+
pyodbc = { version = "^4.0", optional = true, markers = "python_version < '3.12'" }
|
|
37
|
+
aioodbc = { version = "*", optional = true, markers = "python_version < '3.12'" }
|
|
38
38
|
|
|
39
39
|
[tool.poetry.extras]
|
|
40
|
-
ai
|
|
41
|
-
local
|
|
40
|
+
ai = ["openai"]
|
|
41
|
+
local = ["aiofiles"]
|
|
42
42
|
sqlserver = ["aioodbc", "pyodbc"]
|
|
43
43
|
opensearch = ["httpx", "requests"]
|
|
44
|
-
s3
|
|
45
|
-
mysql
|
|
46
|
-
sync
|
|
47
|
-
all
|
|
44
|
+
s3 = ["aioboto3", "boto3"]
|
|
45
|
+
mysql = ["sqlalchemy", "asyncmy"]
|
|
46
|
+
sync = ["boto3", "requests", "pymysql", "pyodbc", "sqlalchemy"]
|
|
47
|
+
all = ["aiofiles", "aioboto3", "sqlalchemy", "asyncmy", "openai", "httpx", "boto3", "requests", "pymysql", "pyodbc", "aioodbc"]
|
|
48
48
|
|
|
49
49
|
[tool.poetry.group.dev.dependencies]
|
|
50
50
|
pytest = "^7.4"
|
|
@@ -80,11 +80,17 @@ class OpenSearchConnector(AsyncConnectorContext, Connector):
|
|
|
80
80
|
try:
|
|
81
81
|
if self._client is None:
|
|
82
82
|
raise ConnectorDependencyError("httpx is required; install with `pip install multids[opensearch]`")
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
83
|
+
method_request = getattr(self._client, method.lower(), None)
|
|
84
|
+
# If client exposes a method named after `method` (e.g., post, get), call it
|
|
85
|
+
# with (path, **kwargs). If the client exposes a generic `request` method
|
|
86
|
+
# that expects (method, path, **kwargs), call it with both values.
|
|
87
|
+
if method_request is not None:
|
|
88
|
+
if method.lower() == "request":
|
|
89
|
+
response = await method_request(method, path, **kwargs)
|
|
90
|
+
else:
|
|
91
|
+
response = await method_request(path, **kwargs)
|
|
92
|
+
else: # Supports minimal compatible clients that only implement request().
|
|
93
|
+
response = await self._client.request(method, path, **kwargs)
|
|
88
94
|
if 500 <= response.status_code < 600:
|
|
89
95
|
response.raise_for_status()
|
|
90
96
|
return response
|
|
@@ -215,7 +221,7 @@ class OpenSearchConnector(AsyncConnectorContext, Connector):
|
|
|
215
221
|
async_iter, index, id_field=None, routing_field=None, chunk_size=chunk_size
|
|
216
222
|
):
|
|
217
223
|
r = await self._request(
|
|
218
|
-
"
|
|
224
|
+
"REQUEST",
|
|
219
225
|
f"/_bulk?refresh={str(refresh).lower()}",
|
|
220
226
|
content=ndchunk,
|
|
221
227
|
headers=headers,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|