ingestr 0.7.1__tar.gz → 0.7.3__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 ingestr might be problematic. Click here for more details.
- ingestr-0.7.1/.github/workflows/docker.yml → ingestr-0.7.3/.github/workflows/tests.yml +18 -14
- ingestr-0.7.3/Dockerfile +45 -0
- {ingestr-0.7.1 → ingestr-0.7.3}/PKG-INFO +1 -1
- {ingestr-0.7.1 → ingestr-0.7.3}/ingestr/main.py +1 -3
- ingestr-0.7.3/ingestr/src/version.py +1 -0
- ingestr-0.7.1/.github/workflows/tests.yml +0 -36
- ingestr-0.7.1/Dockerfile +0 -19
- ingestr-0.7.1/ingestr/src/version.py +0 -1
- {ingestr-0.7.1 → ingestr-0.7.3}/.dockerignore +0 -0
- {ingestr-0.7.1 → ingestr-0.7.3}/.github/workflows/deploy-docs.yml +0 -0
- {ingestr-0.7.1 → ingestr-0.7.3}/.gitignore +0 -0
- {ingestr-0.7.1 → ingestr-0.7.3}/.python-version +0 -0
- {ingestr-0.7.1 → ingestr-0.7.3}/LICENSE.md +0 -0
- {ingestr-0.7.1 → ingestr-0.7.3}/Makefile +0 -0
- {ingestr-0.7.1 → ingestr-0.7.3}/README.md +0 -0
- {ingestr-0.7.1 → ingestr-0.7.3}/docs/.vitepress/config.mjs +0 -0
- {ingestr-0.7.1 → ingestr-0.7.3}/docs/.vitepress/theme/custom.css +0 -0
- {ingestr-0.7.1 → ingestr-0.7.3}/docs/.vitepress/theme/index.js +0 -0
- {ingestr-0.7.1 → ingestr-0.7.3}/docs/commands/example-uris.md +0 -0
- {ingestr-0.7.1 → ingestr-0.7.3}/docs/commands/ingest.md +0 -0
- {ingestr-0.7.1 → ingestr-0.7.3}/docs/getting-started/core-concepts.md +0 -0
- {ingestr-0.7.1 → ingestr-0.7.3}/docs/getting-started/incremental-loading.md +0 -0
- {ingestr-0.7.1 → ingestr-0.7.3}/docs/getting-started/quickstart.md +0 -0
- {ingestr-0.7.1 → ingestr-0.7.3}/docs/getting-started/telemetry.md +0 -0
- {ingestr-0.7.1 → ingestr-0.7.3}/docs/index.md +0 -0
- {ingestr-0.7.1 → ingestr-0.7.3}/docs/supported-sources/bigquery.md +0 -0
- {ingestr-0.7.1 → ingestr-0.7.3}/docs/supported-sources/csv.md +0 -0
- {ingestr-0.7.1 → ingestr-0.7.3}/docs/supported-sources/databricks.md +0 -0
- {ingestr-0.7.1 → ingestr-0.7.3}/docs/supported-sources/duckdb.md +0 -0
- {ingestr-0.7.1 → ingestr-0.7.3}/docs/supported-sources/gorgias.md +0 -0
- {ingestr-0.7.1 → ingestr-0.7.3}/docs/supported-sources/gsheets.md +0 -0
- {ingestr-0.7.1 → ingestr-0.7.3}/docs/supported-sources/mongodb.md +0 -0
- {ingestr-0.7.1 → ingestr-0.7.3}/docs/supported-sources/mssql.md +0 -0
- {ingestr-0.7.1 → ingestr-0.7.3}/docs/supported-sources/mysql.md +0 -0
- {ingestr-0.7.1 → ingestr-0.7.3}/docs/supported-sources/notion.md +0 -0
- {ingestr-0.7.1 → ingestr-0.7.3}/docs/supported-sources/oracle.md +0 -0
- {ingestr-0.7.1 → ingestr-0.7.3}/docs/supported-sources/overview.md +0 -0
- {ingestr-0.7.1 → ingestr-0.7.3}/docs/supported-sources/postgres.md +0 -0
- {ingestr-0.7.1 → ingestr-0.7.3}/docs/supported-sources/redshift.md +0 -0
- {ingestr-0.7.1 → ingestr-0.7.3}/docs/supported-sources/sap-hana.md +0 -0
- {ingestr-0.7.1 → ingestr-0.7.3}/docs/supported-sources/shopify.md +0 -0
- {ingestr-0.7.1 → ingestr-0.7.3}/docs/supported-sources/snowflake.md +0 -0
- {ingestr-0.7.1 → ingestr-0.7.3}/docs/supported-sources/sqlite.md +0 -0
- {ingestr-0.7.1 → ingestr-0.7.3}/ingestr/src/destinations.py +0 -0
- {ingestr-0.7.1 → ingestr-0.7.3}/ingestr/src/factory.py +0 -0
- {ingestr-0.7.1 → ingestr-0.7.3}/ingestr/src/google_sheets/README.md +0 -0
- {ingestr-0.7.1 → ingestr-0.7.3}/ingestr/src/google_sheets/__init__.py +0 -0
- {ingestr-0.7.1 → ingestr-0.7.3}/ingestr/src/google_sheets/helpers/__init__.py +0 -0
- {ingestr-0.7.1 → ingestr-0.7.3}/ingestr/src/google_sheets/helpers/api_calls.py +0 -0
- {ingestr-0.7.1 → ingestr-0.7.3}/ingestr/src/google_sheets/helpers/data_processing.py +0 -0
- {ingestr-0.7.1 → ingestr-0.7.3}/ingestr/src/gorgias/__init__.py +0 -0
- {ingestr-0.7.1 → ingestr-0.7.3}/ingestr/src/gorgias/helpers.py +0 -0
- {ingestr-0.7.1 → ingestr-0.7.3}/ingestr/src/mongodb/__init__.py +0 -0
- {ingestr-0.7.1 → ingestr-0.7.3}/ingestr/src/mongodb/helpers.py +0 -0
- {ingestr-0.7.1 → ingestr-0.7.3}/ingestr/src/notion/__init__.py +0 -0
- {ingestr-0.7.1 → ingestr-0.7.3}/ingestr/src/notion/helpers/__init__.py +0 -0
- {ingestr-0.7.1 → ingestr-0.7.3}/ingestr/src/notion/helpers/client.py +0 -0
- {ingestr-0.7.1 → ingestr-0.7.3}/ingestr/src/notion/helpers/database.py +0 -0
- {ingestr-0.7.1 → ingestr-0.7.3}/ingestr/src/notion/settings.py +0 -0
- {ingestr-0.7.1 → ingestr-0.7.3}/ingestr/src/shopify/__init__.py +0 -0
- {ingestr-0.7.1 → ingestr-0.7.3}/ingestr/src/shopify/exceptions.py +0 -0
- {ingestr-0.7.1 → ingestr-0.7.3}/ingestr/src/shopify/helpers.py +0 -0
- {ingestr-0.7.1 → ingestr-0.7.3}/ingestr/src/shopify/settings.py +0 -0
- {ingestr-0.7.1 → ingestr-0.7.3}/ingestr/src/sources.py +0 -0
- {ingestr-0.7.1 → ingestr-0.7.3}/ingestr/src/sql_database/__init__.py +0 -0
- {ingestr-0.7.1 → ingestr-0.7.3}/ingestr/src/sql_database/arrow_helpers.py +0 -0
- {ingestr-0.7.1 → ingestr-0.7.3}/ingestr/src/sql_database/helpers.py +0 -0
- {ingestr-0.7.1 → ingestr-0.7.3}/ingestr/src/sql_database/override.py +0 -0
- {ingestr-0.7.1 → ingestr-0.7.3}/ingestr/src/sql_database/schema_types.py +0 -0
- {ingestr-0.7.1 → ingestr-0.7.3}/ingestr/src/table_definition.py +0 -0
- {ingestr-0.7.1 → ingestr-0.7.3}/ingestr/src/telemetry/event.py +0 -0
- {ingestr-0.7.1 → ingestr-0.7.3}/ingestr/src/testdata/fakebqcredentials.json +0 -0
- {ingestr-0.7.1 → ingestr-0.7.3}/ingestr/testdata/.gitignore +0 -0
- {ingestr-0.7.1 → ingestr-0.7.3}/ingestr/testdata/create_replace.csv +0 -0
- {ingestr-0.7.1 → ingestr-0.7.3}/ingestr/testdata/delete_insert_expected.csv +0 -0
- {ingestr-0.7.1 → ingestr-0.7.3}/ingestr/testdata/delete_insert_part1.csv +0 -0
- {ingestr-0.7.1 → ingestr-0.7.3}/ingestr/testdata/delete_insert_part2.csv +0 -0
- {ingestr-0.7.1 → ingestr-0.7.3}/ingestr/testdata/merge_expected.csv +0 -0
- {ingestr-0.7.1 → ingestr-0.7.3}/ingestr/testdata/merge_part1.csv +0 -0
- {ingestr-0.7.1 → ingestr-0.7.3}/ingestr/testdata/merge_part2.csv +0 -0
- {ingestr-0.7.1 → ingestr-0.7.3}/package-lock.json +0 -0
- {ingestr-0.7.1 → ingestr-0.7.3}/package.json +0 -0
- {ingestr-0.7.1 → ingestr-0.7.3}/pyproject.toml +0 -0
- {ingestr-0.7.1 → ingestr-0.7.3}/requirements-dev.txt +0 -0
- {ingestr-0.7.1 → ingestr-0.7.3}/requirements.txt +0 -0
- {ingestr-0.7.1 → ingestr-0.7.3}/resources/demo.gif +0 -0
- {ingestr-0.7.1 → ingestr-0.7.3}/resources/demo.tape +0 -0
- {ingestr-0.7.1 → ingestr-0.7.3}/resources/ingestr.svg +0 -0
|
@@ -5,39 +5,43 @@ on:
|
|
|
5
5
|
tags:
|
|
6
6
|
- "*"
|
|
7
7
|
workflow_dispatch: {}
|
|
8
|
+
pull_request:
|
|
9
|
+
branches:
|
|
10
|
+
- main
|
|
8
11
|
|
|
9
12
|
concurrency:
|
|
10
|
-
group:
|
|
11
|
-
cancel-in-progress:
|
|
13
|
+
group: ${{ github.workflow }}-${{ github.ref }}
|
|
14
|
+
cancel-in-progress: true
|
|
12
15
|
|
|
13
16
|
env:
|
|
14
17
|
REGISTRY: ghcr.io
|
|
15
18
|
IMAGE_NAME: ${{ github.repository }}
|
|
16
19
|
|
|
20
|
+
|
|
17
21
|
jobs:
|
|
18
22
|
tests:
|
|
19
23
|
runs-on: ubuntu-latest
|
|
20
|
-
strategy:
|
|
21
|
-
matrix:
|
|
22
|
-
python-version: ["3.9", "3.10", "3.11"]
|
|
23
24
|
steps:
|
|
24
25
|
- uses: actions/checkout@v4
|
|
25
|
-
- name:
|
|
26
|
-
|
|
26
|
+
- name: install Microsoft ODBC
|
|
27
|
+
run: sudo ACCEPT_EULA=Y apt-get install msodbcsql18 -y
|
|
28
|
+
- uses: actions/setup-python@v4
|
|
27
29
|
with:
|
|
28
|
-
python-version:
|
|
30
|
+
python-version: '3.11'
|
|
31
|
+
cache: 'pip'
|
|
29
32
|
- name: Cache dependencies
|
|
30
33
|
uses: actions/cache@v3
|
|
31
34
|
id: cache
|
|
32
35
|
with:
|
|
33
36
|
path: ${{ env.pythonLocation }}
|
|
34
|
-
key: ${{ env.pythonLocation }}-${{
|
|
35
|
-
- name:
|
|
36
|
-
|
|
37
|
+
key: ${{ env.pythonLocation }}-${{ hashFiles('requirements.txt') }}
|
|
38
|
+
- name: Install pip dependencies
|
|
39
|
+
if: steps.cache.outputs.cache-hit != 'true'
|
|
40
|
+
run: make deps-ci
|
|
37
41
|
- name: run tests
|
|
38
|
-
run: make test
|
|
42
|
+
run: make test-ci
|
|
39
43
|
- name: check the formatting
|
|
40
|
-
run: make lint
|
|
44
|
+
run: make lint-ci
|
|
41
45
|
|
|
42
46
|
build-and-push-image:
|
|
43
47
|
needs: tests
|
|
@@ -68,7 +72,7 @@ jobs:
|
|
|
68
72
|
uses: docker/build-push-action@v5
|
|
69
73
|
with:
|
|
70
74
|
context: .
|
|
71
|
-
platforms: linux/amd64
|
|
75
|
+
platforms: linux/amd64
|
|
72
76
|
push: true
|
|
73
77
|
tags: ${{ steps.meta.outputs.tags }}
|
|
74
78
|
labels: ${{ steps.meta.outputs.labels }}
|
ingestr-0.7.3/Dockerfile
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
FROM python:3.11-slim
|
|
2
|
+
|
|
3
|
+
WORKDIR /app
|
|
4
|
+
|
|
5
|
+
COPY ./requirements.txt /app/requirements.txt
|
|
6
|
+
|
|
7
|
+
# Setup dependencies for pyodbc
|
|
8
|
+
RUN \
|
|
9
|
+
export ACCEPT_EULA='Y' && \
|
|
10
|
+
export MYSQL_CONNECTOR='mysql-connector-odbc-8.0.33-linux-glibc2.28-x86-64bit' && \
|
|
11
|
+
export MYSQL_CONNECTOR_CHECKSUM='41d03d5df0c631f8071cc697f7714620' && \
|
|
12
|
+
# Install build dependencies
|
|
13
|
+
apt-get update && \
|
|
14
|
+
apt-get install -y curl gcc libpq-dev build-essential unixodbc-dev g++ apt-transport-https && \
|
|
15
|
+
# Install pyodbc db drivers for MSSQL, PG and MySQL
|
|
16
|
+
curl -sSL https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > /usr/share/keyrings/microsoft-prod.gpg && \
|
|
17
|
+
curl -sSL https://packages.microsoft.com/config/debian/12/prod.list | tee /etc/apt/sources.list.d/mssql-release.list && \
|
|
18
|
+
# install the mysql connector
|
|
19
|
+
curl -L -o ${MYSQL_CONNECTOR}.tar.gz https://dev.mysql.com/get/Downloads/Connector-ODBC/8.0/${MYSQL_CONNECTOR}.tar.gz && \
|
|
20
|
+
echo "${MYSQL_CONNECTOR_CHECKSUM} ${MYSQL_CONNECTOR}.tar.gz" | md5sum -c - && \
|
|
21
|
+
gunzip ${MYSQL_CONNECTOR}.tar.gz && tar xvf ${MYSQL_CONNECTOR}.tar && \
|
|
22
|
+
cp -r ${MYSQL_CONNECTOR}/bin/* /usr/local/bin && cp -r ${MYSQL_CONNECTOR}/lib/* /usr/local/lib && \
|
|
23
|
+
myodbc-installer -a -d -n "MySQL ODBC 8.0.33 Driver" -t "Driver=/usr/local/lib/libmyodbc8w.so" && \
|
|
24
|
+
myodbc-installer -a -d -n "MySQL ODBC 8.0.33" -t "Driver=/usr/local/lib/libmyodbc8a.so" && \
|
|
25
|
+
# install the rest of them
|
|
26
|
+
apt-get update && \
|
|
27
|
+
ACCEPT_EULA=Y apt-get install -y msodbcsql17 msodbcsql18 odbc-postgresql && \
|
|
28
|
+
# Update odbcinst.ini to make sure full path to driver is listed, and set CommLog to 0. i.e disables any communication logs to be written to files
|
|
29
|
+
sed 's/Driver=psql/Driver=\/usr\/lib\/x86_64-linux-gnu\/odbc\/psql/;s/CommLog=1/CommLog=0/' /etc/odbcinst.ini > /tmp/temp.ini && \
|
|
30
|
+
mv -f /tmp/temp.ini /etc/odbcinst.ini && \
|
|
31
|
+
# Cleanup build dependencies
|
|
32
|
+
rm -rf ${MYSQL_CONNECTOR}*
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
ENV VIRTUAL_ENV=/usr/local
|
|
36
|
+
ADD --chmod=755 https://astral.sh/uv/install.sh /install.sh
|
|
37
|
+
RUN /install.sh && rm /install.sh
|
|
38
|
+
|
|
39
|
+
RUN /root/.cargo/bin/uv pip install --system --no-cache -r requirements.txt
|
|
40
|
+
|
|
41
|
+
COPY . /app
|
|
42
|
+
|
|
43
|
+
RUN pip3 install -e .
|
|
44
|
+
|
|
45
|
+
ENTRYPOINT ["ingestr"]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: ingestr
|
|
3
|
-
Version: 0.7.
|
|
3
|
+
Version: 0.7.3
|
|
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
|
|
@@ -244,8 +244,6 @@ def ingest(
|
|
|
244
244
|
},
|
|
245
245
|
)
|
|
246
246
|
|
|
247
|
-
dlt.config["normalize.parquet_normalizer.add_dlt_load_id"] = True
|
|
248
|
-
dlt.config["normalize.parquet_normalizer.add_dlt_id"] = True
|
|
249
247
|
dlt.config["data_writer.file_max_items"] = loader_file_size
|
|
250
248
|
if schema_naming != SchemaNaming.default:
|
|
251
249
|
dlt.config["schema.naming"] = schema_naming.value
|
|
@@ -280,7 +278,7 @@ def ingest(
|
|
|
280
278
|
|
|
281
279
|
progressInstance: Collector = SpinnerCollector()
|
|
282
280
|
if progress == Progress.log:
|
|
283
|
-
progressInstance = LogCollector()
|
|
281
|
+
progressInstance = LogCollector(dump_system_stats=False)
|
|
284
282
|
|
|
285
283
|
pipeline = dlt.pipeline(
|
|
286
284
|
pipeline_name=m.hexdigest(),
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.7.3"
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
on:
|
|
2
|
-
push:
|
|
3
|
-
branches:
|
|
4
|
-
- main
|
|
5
|
-
pull_request:
|
|
6
|
-
branches:
|
|
7
|
-
- main
|
|
8
|
-
|
|
9
|
-
concurrency:
|
|
10
|
-
group: ${{ github.workflow }}-${{ github.ref }}
|
|
11
|
-
cancel-in-progress: true
|
|
12
|
-
|
|
13
|
-
jobs:
|
|
14
|
-
tests:
|
|
15
|
-
runs-on: ubuntu-latest
|
|
16
|
-
steps:
|
|
17
|
-
- uses: actions/checkout@v4
|
|
18
|
-
- name: install Microsoft ODBC
|
|
19
|
-
run: sudo ACCEPT_EULA=Y apt-get install msodbcsql18 -y
|
|
20
|
-
- uses: actions/setup-python@v4
|
|
21
|
-
with:
|
|
22
|
-
python-version: '3.11'
|
|
23
|
-
cache: 'pip'
|
|
24
|
-
- name: Cache dependencies
|
|
25
|
-
uses: actions/cache@v3
|
|
26
|
-
id: cache
|
|
27
|
-
with:
|
|
28
|
-
path: ${{ env.pythonLocation }}
|
|
29
|
-
key: ${{ env.pythonLocation }}-${{ hashFiles('requirements.txt') }}
|
|
30
|
-
- name: Install pip dependencies
|
|
31
|
-
if: steps.cache.outputs.cache-hit != 'true'
|
|
32
|
-
run: make deps-ci
|
|
33
|
-
- name: run tests
|
|
34
|
-
run: make test-ci
|
|
35
|
-
- name: check the formatting
|
|
36
|
-
run: make lint-ci
|
ingestr-0.7.1/Dockerfile
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
FROM python:3.11-slim
|
|
2
|
-
|
|
3
|
-
WORKDIR /app
|
|
4
|
-
|
|
5
|
-
COPY ./requirements.txt /app/requirements.txt
|
|
6
|
-
|
|
7
|
-
RUN apt-get update && apt-get -y install libpq-dev gcc curl g++
|
|
8
|
-
|
|
9
|
-
ENV VIRTUAL_ENV=/usr/local
|
|
10
|
-
ADD --chmod=755 https://astral.sh/uv/install.sh /install.sh
|
|
11
|
-
RUN /install.sh && rm /install.sh
|
|
12
|
-
|
|
13
|
-
RUN /root/.cargo/bin/uv pip install --system --no-cache -r requirements.txt
|
|
14
|
-
|
|
15
|
-
COPY . /app
|
|
16
|
-
|
|
17
|
-
RUN pip3 install -e .
|
|
18
|
-
|
|
19
|
-
ENTRYPOINT ["ingestr"]
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.7.1"
|
|
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
|
|
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
|
|
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
|
|
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
|