python-corekit 0.6.2__py3-none-any.whl → 0.6.4__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.
- corekit/connections/sql/__init__.py +2 -1
- corekit/connections/sql/connection.py +15 -15
- corekit/connections/sql/operations/base.py +9 -9
- corekit/connections/sql/operations/statements.py +12 -11
- corekit/connections/sql/table.py +6 -3
- corekit/data/__init__.py +6 -0
- corekit/data/arithmetic/__init__.py +97 -0
- corekit/data/arithmetic/expression.py +449 -0
- corekit/data/arithmetic/keys.py +38 -0
- corekit/data/arithmetic/operator.py +44 -0
- corekit/data/expressions/__init__.py +46 -6
- corekit/data/expressions/comparison.py +78 -1
- corekit/data/expressions/expression.py +77 -1
- corekit/data/expressions/keys.py +34 -0
- corekit/data/expressions/operator.py +33 -12
- corekit/etl/__init__.py +4 -16
- corekit/integrations/__init__.py +30 -0
- corekit/integrations/adapter.py +72 -0
- corekit/integrations/loader.py +41 -0
- corekit/integrations/normalizer.py +28 -0
- corekit/integrations/pipeline.py +136 -0
- corekit/integrations/schemas.py +49 -0
- {python_corekit-0.6.2.dist-info → python_corekit-0.6.4.dist-info}/METADATA +1 -1
- {python_corekit-0.6.2.dist-info → python_corekit-0.6.4.dist-info}/RECORD +27 -16
- {python_corekit-0.6.2.dist-info → python_corekit-0.6.4.dist-info}/WHEEL +0 -0
- {python_corekit-0.6.2.dist-info → python_corekit-0.6.4.dist-info}/licenses/LICENSE +0 -0
- {python_corekit-0.6.2.dist-info → python_corekit-0.6.4.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Shared types for the integration framework.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
from __future__ import annotations
|
|
6
|
+
|
|
7
|
+
from typing import Iterator
|
|
8
|
+
|
|
9
|
+
from pydantic import BaseModel, Field
|
|
10
|
+
|
|
11
|
+
from corekit.schemas import StringEnum
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class OperationClass(StringEnum):
|
|
15
|
+
"""
|
|
16
|
+
Whether a named adapter operation reads from or writes to the external system.
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
READ = "read"
|
|
20
|
+
WRITE = "write"
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class NormalizedItem(BaseModel):
|
|
24
|
+
"""
|
|
25
|
+
One unit of already-normalized data ready for a loader or API response.
|
|
26
|
+
"""
|
|
27
|
+
|
|
28
|
+
data: BaseModel
|
|
29
|
+
source: str | None = None
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
class LoadableBatch(BaseModel):
|
|
33
|
+
"""
|
|
34
|
+
Buffered normalized items awaiting a loader flush.
|
|
35
|
+
"""
|
|
36
|
+
|
|
37
|
+
items: list[NormalizedItem] = Field(default_factory=list)
|
|
38
|
+
|
|
39
|
+
def __iter__(self) -> Iterator[NormalizedItem]:
|
|
40
|
+
yield from self.items
|
|
41
|
+
|
|
42
|
+
def __len__(self) -> int:
|
|
43
|
+
return len(self.items)
|
|
44
|
+
|
|
45
|
+
def add_item(self, item: NormalizedItem) -> None:
|
|
46
|
+
self.items.append(item)
|
|
47
|
+
|
|
48
|
+
def clear(self) -> None:
|
|
49
|
+
self.items.clear()
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python-corekit
|
|
3
|
-
Version: 0.6.
|
|
3
|
+
Version: 0.6.4
|
|
4
4
|
Summary: Shared foundations for Python projects: logging, benchmarking, registries, FastAPI application and routers, SQL statements and migrations, background tasks, ETL, LLM chat/tool primitives, and HTML scraping
|
|
5
5
|
Author: Steven Jacobsen
|
|
6
6
|
License-Expression: MIT
|
|
@@ -21,10 +21,10 @@ corekit/connections/decorators.py,sha256=7xfmLuMr3kkceEkkxHxY_Pen2OakJEVukXtiOYA
|
|
|
21
21
|
corekit/connections/registry.py,sha256=BR04dGthcGCtON2MxNsl-TlhRgbRlvGj0RLymDFBkGQ,3119
|
|
22
22
|
corekit/connections/redis/__init__.py,sha256=BsWLZNqpKAqIoreHGLEtftnMqVw-ESK8jbexDAughag,174
|
|
23
23
|
corekit/connections/redis/connection.py,sha256=H6r5WsDfXFgIQlp6vq3rKjp-oBFQoE5h_YaJXZEvHIs,9850
|
|
24
|
-
corekit/connections/sql/__init__.py,sha256=
|
|
25
|
-
corekit/connections/sql/connection.py,sha256=
|
|
24
|
+
corekit/connections/sql/__init__.py,sha256=hZxBBk8coC2t2D2sBm_sSxZrqgVpX1Q3C6JN3muNWMc,904
|
|
25
|
+
corekit/connections/sql/connection.py,sha256=SbE9GQhGcaf0-74LSDSzyh4xyQFlmRzLKPsix2d_eMQ,12959
|
|
26
26
|
corekit/connections/sql/query.py,sha256=8s5atIssmN2l9FCL2IHnIQqwxOk0fA_mPNh36koLhoE,233
|
|
27
|
-
corekit/connections/sql/table.py,sha256=
|
|
27
|
+
corekit/connections/sql/table.py,sha256=7nkSw6S9el_htajHsPeG8Mj6oCuasZERfc3f_kIOchg,3189
|
|
28
28
|
corekit/connections/sql/fields/__init__.py,sha256=2I-TCsvi321yQhesKNZgY1T77FtATZ6o7pw0MNHtbAo,184
|
|
29
29
|
corekit/connections/sql/fields/jsonb.py,sha256=wGjtCP6v3i2bX73X-VVqBNuDNr0-MeWIosc6nvWyO9Q,2313
|
|
30
30
|
corekit/connections/sql/migration/__init__.py,sha256=NBQyKdz84y6Y_QJVTJQVfHz0WrY1CXNoeko113GUoTg,1652
|
|
@@ -33,20 +33,25 @@ corekit/connections/sql/migration/operations.py,sha256=UIO0TPJceo0vtGsNQiATn7i7s
|
|
|
33
33
|
corekit/connections/sql/migration/registry.py,sha256=M1iS7v7aKYfgyf_grvF-6Ogn4KfQ1EEWbA1MO02CiB0,6728
|
|
34
34
|
corekit/connections/sql/migration/table.py,sha256=CpOkJl-4rcG2hTZYq-Yt7OvGTpVhVJ42IrubVO3BUvs,666
|
|
35
35
|
corekit/connections/sql/operations/__init__.py,sha256=f6fnAbD3k8ALXwcwJ31fIHQwkvud_WqmUod_apTErpY,480
|
|
36
|
-
corekit/connections/sql/operations/base.py,sha256=
|
|
37
|
-
corekit/connections/sql/operations/statements.py,sha256=
|
|
36
|
+
corekit/connections/sql/operations/base.py,sha256=T5HY-0K_FQuPqmtSZZG5neVZQO5L4xRrEoErFu_9MZA,3401
|
|
37
|
+
corekit/connections/sql/operations/statements.py,sha256=S8i_687rCZV7Aveni0DECqWT5nn7mpl5yEKmADKSHbw,5397
|
|
38
38
|
corekit/crypto/__init__.py,sha256=Qf_FCUoG_jb7Q9tnN4ctX8I6xyaeaJwk74ag_bSchAQ,87
|
|
39
39
|
corekit/crypto/constants.py,sha256=m-uq7_EJ4XfUTSZxFv6h429UkKSrGTj3o_9DfRFGyvU,298
|
|
40
40
|
corekit/crypto/enum.py,sha256=0csj06cATCYDPY_QTNy66j_hB16WCqcHg8tJOO0lMNU,212
|
|
41
41
|
corekit/crypto/hasher.py,sha256=KkxBM8pwaFwdUV31D-LO7Pg8bFULI5Y8rtUDTWti08w,3184
|
|
42
|
-
corekit/data/__init__.py,sha256=
|
|
42
|
+
corekit/data/__init__.py,sha256=sb2cbaZ8QM6NsywCtkckrRqwpjpEp33L_R0sTUN26xY,2135
|
|
43
43
|
corekit/data/dataset.py,sha256=TK1yAs7bNCQpV7Z16YqCzYf2Q_Vpu2IbEs1sqMMbikM,12835
|
|
44
44
|
corekit/data/record.py,sha256=EczoOvcxl-lHO1M92AjUh_5E9UQJ2qwBsiu6Yo-34gs,5233
|
|
45
45
|
corekit/data/stats.py,sha256=cRnLGgUHEz66GS1Rs7c_wr2ZVvIJ8WbKq4ifBKR_t0U,4950
|
|
46
|
-
corekit/data/
|
|
47
|
-
corekit/data/
|
|
48
|
-
corekit/data/
|
|
49
|
-
corekit/data/
|
|
46
|
+
corekit/data/arithmetic/__init__.py,sha256=i7MA1FtUdCk6fUqh5qgZUaBPANOICCUjiruDJ5NgflU,2337
|
|
47
|
+
corekit/data/arithmetic/expression.py,sha256=38iLXKrx53pwkwOpE7opt5dCAhDhMMeQCL1Tjwx1bnA,13164
|
|
48
|
+
corekit/data/arithmetic/keys.py,sha256=0G4wGbCsdiod-4T6W8cR6FxnAUv_hHJlaq6s0Rp_L1k,758
|
|
49
|
+
corekit/data/arithmetic/operator.py,sha256=MYL3GvUYJK4jQ0UG0qFDa5N1mLKIA-KuqZleym7_ymk,1225
|
|
50
|
+
corekit/data/expressions/__init__.py,sha256=Vev-d951c7G2oGsUDDynA9SEsFAzgouCy0Py5d3nuwE,2562
|
|
51
|
+
corekit/data/expressions/comparison.py,sha256=eyunBVW96cOpCvHNLgWkQON9-2UcV_-F8ne3mu5ENj0,13678
|
|
52
|
+
corekit/data/expressions/expression.py,sha256=lqPZoYPGalROMMP4Q8uJh3AN7HnSWB0sfwpLWLGIhhU,4702
|
|
53
|
+
corekit/data/expressions/keys.py,sha256=P6wCUbUqrqCbgJMQkpWg8fwM9ZtIgBjByyXLa9UegTo,665
|
|
54
|
+
corekit/data/expressions/operator.py,sha256=lq7MIqa4FtAQZ5FGYF2cVkz_DTG-LiOK0KHu62Y7PNw,1703
|
|
50
55
|
corekit/data/expressions/target.py,sha256=QSl7sH1qFVUc-mL7gsasTsCahWKhHqdo0bMHt--t2m8,470
|
|
51
56
|
corekit/decorators/__init__.py,sha256=YrBcc_4wkSs7nEb3OjC7C7a8fNEvBk3RzOpD8QccHKM,83
|
|
52
57
|
corekit/decorators/exception_handling.py,sha256=p86gfvdmsmC7_va042NSoGkWrJrbLLuw0ncE131wLWU,2326
|
|
@@ -59,7 +64,7 @@ corekit/docker/disk/__init__.py,sha256=ZTr77TJuUdVvv6wbWXvYW0I5oVz45EwzbGjbjrUy1
|
|
|
59
64
|
corekit/docker/disk/constants.py,sha256=4fMEAdWwHbiBbe7aj3vV4molxRGZ3eLl1tyIPQ47D1o,465
|
|
60
65
|
corekit/docker/disk/inspector.py,sha256=YBRCX6upUclOPyu2PT2VkfyXKUPXJUv6Wwd_XYvA7lU,8156
|
|
61
66
|
corekit/docker/disk/models.py,sha256=9z8dTUyTEp8NfMmzBul2yp8sLAcEjoMytz_gCj7veKY,733
|
|
62
|
-
corekit/etl/__init__.py,sha256=
|
|
67
|
+
corekit/etl/__init__.py,sha256=4vN5ZccUjaYsunANSeV7fsl0P1dVhHi1u_iP4WZ4v9M,1152
|
|
63
68
|
corekit/etl/connection.py,sha256=_gWqR36x5f7qb5IYJjrc_7d_6oU2CXm1QeSNCCh0coo,1270
|
|
64
69
|
corekit/etl/orchestrator.py,sha256=GkecTu8gKt17ePDM9PJBUuZTPYoPMdK1yYzBHjMdw3A,7959
|
|
65
70
|
corekit/etl/schemas.py,sha256=3z0qZBintCO45BcxT6TY0Boi_ibrRa0z85wBJvLXNd4,385
|
|
@@ -116,6 +121,12 @@ corekit/http/exponential_backoff.py,sha256=5jjGTspX_BC9aBKPr5Y5dNhJqXesmljsjJoQ6
|
|
|
116
121
|
corekit/http/response.py,sha256=t_nGIwA-uyuQlJBGMgxbodCNjRnqc1xUcxMsbEXeMBM,3415
|
|
117
122
|
corekit/http/status.py,sha256=rZ-cdliG9EAvWMTzvxjqjipRkZRc6RgSzcBY4Kewdg0,2377
|
|
118
123
|
corekit/http/stream.py,sha256=lkERyCXz5amOWzoE-b12iftf3l_G-ghwSvN1lL5lUio,3257
|
|
124
|
+
corekit/integrations/__init__.py,sha256=Y9I6-A96pO8St-Gj30O1meOH-LVvc1MPPz2Wp0-5QgM,1063
|
|
125
|
+
corekit/integrations/adapter.py,sha256=9KOZpDHWQdPXCU01_d7e1L8bPqnrSiFFKf5DJBdzazc,2464
|
|
126
|
+
corekit/integrations/loader.py,sha256=iiSdR3dx7HZYv9VYPY28AGMYenoQ7Ip-pYlh3A6OAFE,1088
|
|
127
|
+
corekit/integrations/normalizer.py,sha256=9ySWEFom_qdAj3XoCscP7hZr8bYp19q2bOuInitsjbk,670
|
|
128
|
+
corekit/integrations/pipeline.py,sha256=ygyq1l9jsw2SaNfdDYVIg3SKH4UJFz81VjRM8oR2rmM,4644
|
|
129
|
+
corekit/integrations/schemas.py,sha256=m-8dO-Auc4198KrAjl5mynlkMwef_yN7AhbkUDAhmcg,1005
|
|
119
130
|
corekit/jobs/__init__.py,sha256=vsv8o23ApT6MlOwOq-AFYeQW2NT1kjyvu89A5CL2PsY,880
|
|
120
131
|
corekit/jobs/registry.py,sha256=cco6884eVuIYHEtSv6P62MICFjX-QhuSZIFkEJcQi_M,2557
|
|
121
132
|
corekit/jobs/runner.py,sha256=VyiTrQJT-E8-XuNBh8s1QgLJkKhkpBq_398Fs_03Kow,3321
|
|
@@ -185,8 +196,8 @@ corekit/utils/text.py,sha256=0322DdZGuDGEagTyejuda6QT1jbbxNIO6loC-_AGml0,2311
|
|
|
185
196
|
corekit/utils/time.py,sha256=-iPaETXcgDu7J39Kwe938JyZKhPVjl6a572BBqsqcDQ,2215
|
|
186
197
|
corekit/utils/validators.py,sha256=_HVKo3y264KGNaZ-1RyM1x46VPvu7XKcQkrHWDC9uxs,340
|
|
187
198
|
corekit/utils/void.py,sha256=eXDb2QynuguiSgHGJLdgE08MuRnxBdYebRdMD7s1m9o,178
|
|
188
|
-
python_corekit-0.6.
|
|
189
|
-
python_corekit-0.6.
|
|
190
|
-
python_corekit-0.6.
|
|
191
|
-
python_corekit-0.6.
|
|
192
|
-
python_corekit-0.6.
|
|
199
|
+
python_corekit-0.6.4.dist-info/licenses/LICENSE,sha256=357LYxbxAQZ95q5cV-8JK6j-KNgiE6AteRodjEsm-kE,1072
|
|
200
|
+
python_corekit-0.6.4.dist-info/METADATA,sha256=aS9a2SwmmmLxj-SscQo5gI1ZDfCb5rj7JR0J20Ie4dk,15304
|
|
201
|
+
python_corekit-0.6.4.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
|
|
202
|
+
python_corekit-0.6.4.dist-info/top_level.txt,sha256=SDK4o8BoaI47E9tPbiNCbbWoc2y6N_wCjwnIEfr-GWI,8
|
|
203
|
+
python_corekit-0.6.4.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|