ingestr 0.7.0__py3-none-any.whl → 0.7.1__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.

Potentially problematic release.


This version of ingestr might be problematic. Click here for more details.

ingestr/main.py CHANGED
@@ -104,6 +104,7 @@ class LoaderFileFormat(str, Enum):
104
104
  class SqlBackend(str, Enum):
105
105
  sqlalchemy = "sqlalchemy"
106
106
  pyarrow = "pyarrow"
107
+ connectorx = "connectorx"
107
108
 
108
109
 
109
110
  class Progress(str, Enum):
@@ -111,6 +112,11 @@ class Progress(str, Enum):
111
112
  log = "log"
112
113
 
113
114
 
115
+ class SchemaNaming(str, Enum):
116
+ default = "default"
117
+ direct = "direct"
118
+
119
+
114
120
  @app.command()
115
121
  def ingest(
116
122
  source_uri: Annotated[
@@ -223,6 +229,13 @@ def ingest(
223
229
  envvar="LOADER_FILE_SIZE",
224
230
  ),
225
231
  ] = 100000, # type: ignore
232
+ schema_naming: Annotated[
233
+ SchemaNaming,
234
+ typer.Option(
235
+ help="The naming convention to use when moving the tables from source to destination. The default behavior is explained here: https://dlthub.com/docs/general-usage/schema#naming-convention",
236
+ envvar="SCHEMA_NAMING",
237
+ ),
238
+ ] = SchemaNaming.default, # type: ignore
226
239
  ):
227
240
  track(
228
241
  "command_triggered",
@@ -234,6 +247,8 @@ def ingest(
234
247
  dlt.config["normalize.parquet_normalizer.add_dlt_load_id"] = True
235
248
  dlt.config["normalize.parquet_normalizer.add_dlt_id"] = True
236
249
  dlt.config["data_writer.file_max_items"] = loader_file_size
250
+ if schema_naming != SchemaNaming.default:
251
+ dlt.config["schema.naming"] = schema_naming.value
237
252
 
238
253
  try:
239
254
  if not dest_table:
ingestr/src/version.py CHANGED
@@ -1 +1 @@
1
- __version__ = "0.7.0"
1
+ __version__ = "0.7.1"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: ingestr
3
- Version: 0.7.0
3
+ Version: 0.7.1
4
4
  Summary: ingestr is a command-line application that ingests data from various sources and stores them in any database.
5
5
  Project-URL: Homepage, https://github.com/bruin-data/ingestr
6
6
  Project-URL: Issues, https://github.com/bruin-data/ingestr/issues
@@ -14,6 +14,7 @@ Classifier: Operating System :: OS Independent
14
14
  Classifier: Programming Language :: Python :: 3
15
15
  Classifier: Topic :: Database
16
16
  Requires-Python: >=3.9
17
+ Requires-Dist: connectorx==0.3.3
17
18
  Requires-Dist: cx-oracle==8.3.0
18
19
  Requires-Dist: databricks-sql-connector==2.9.3
19
20
  Requires-Dist: dlt==0.5.1
@@ -1,9 +1,9 @@
1
- ingestr/main.py,sha256=JYgh3rZSO9n_Ko2D_9BLaF_cGQHrLSywK1WH6XioefQ,15961
1
+ ingestr/main.py,sha256=8el31KbINLPqe_iwkLHAFoGPIX-j5gB2KqV2nuEXU1g,16544
2
2
  ingestr/src/destinations.py,sha256=2SfPMjtTelPmzQmc3zNs8xGcKIPuGn_hoZFIBUuhjXI,6338
3
3
  ingestr/src/factory.py,sha256=XuT_8LvWd7gBxOjoD_NiG-jtPvHNQ9nqOeoCJzhRb6Y,3630
4
4
  ingestr/src/sources.py,sha256=QbSvECvGbHJKOpE9_dbq11343pA5ajsS9BPPPab1ivw,10007
5
5
  ingestr/src/table_definition.py,sha256=REbAbqdlmUMUuRh8nEQRreWjPVOQ5ZcfqGkScKdCrmk,390
6
- ingestr/src/version.py,sha256=RaANGbRu5e-vehwXI1-Qe2ggPPfs1TQaZj072JdbLk4,22
6
+ ingestr/src/version.py,sha256=2KJZDSMOG7KS82AxYOrZ4ZihYxX0wjfUjDsIZh3L024,22
7
7
  ingestr/src/google_sheets/README.md,sha256=wFQhvmGpRA38Ba2N_WIax6duyD4c7c_pwvvprRfQDnw,5470
8
8
  ingestr/src/google_sheets/__init__.py,sha256=5qlX-6ilx5MW7klC7B_0jGSxloQSLkSESTh4nlY3Aos,6643
9
9
  ingestr/src/google_sheets/helpers/__init__.py,sha256=5hXZrZK8cMO3UOuL-s4OKOpdACdihQD0hYYlSEu-iQ8,35
@@ -37,8 +37,8 @@ ingestr/testdata/delete_insert_part2.csv,sha256=B_KUzpzbNdDY_n7wWop1mT2cz36TmayS
37
37
  ingestr/testdata/merge_expected.csv,sha256=DReHqWGnQMsf2PBv_Q2pfjsgvikYFnf1zYcQZ7ZqYN0,276
38
38
  ingestr/testdata/merge_part1.csv,sha256=Pw8Z9IDKcNU0qQHx1z6BUf4rF_-SxKGFOvymCt4OY9I,185
39
39
  ingestr/testdata/merge_part2.csv,sha256=T_GiWxA81SN63_tMOIuemcvboEFeAmbKc7xRXvL9esw,287
40
- ingestr-0.7.0.dist-info/METADATA,sha256=MmQ_futv2ZZbVg4hdbCErSAgs2AobplIUr4vMErTXEI,5829
41
- ingestr-0.7.0.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
42
- ingestr-0.7.0.dist-info/entry_points.txt,sha256=oPJy0KBnPWYjDtP1k8qwAihcTLHSZokSQvRAw_wtfJM,46
43
- ingestr-0.7.0.dist-info/licenses/LICENSE.md,sha256=cW8wIhn8HFE-KLStDF9jHQ1O_ARWP3kTpk_-eOccL24,1075
44
- ingestr-0.7.0.dist-info/RECORD,,
40
+ ingestr-0.7.1.dist-info/METADATA,sha256=c5iTfQqmmQ0MHghgngJILHO8n5GuUq49OFe0TI8HG7Y,5862
41
+ ingestr-0.7.1.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
42
+ ingestr-0.7.1.dist-info/entry_points.txt,sha256=oPJy0KBnPWYjDtP1k8qwAihcTLHSZokSQvRAw_wtfJM,46
43
+ ingestr-0.7.1.dist-info/licenses/LICENSE.md,sha256=cW8wIhn8HFE-KLStDF9jHQ1O_ARWP3kTpk_-eOccL24,1075
44
+ ingestr-0.7.1.dist-info/RECORD,,