ingestr 0.13.37__tar.gz → 0.13.38__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.13.37 → ingestr-0.13.38}/PKG-INFO +2 -2
- {ingestr-0.13.37 → ingestr-0.13.38}/docs/.vitepress/config.mjs +1 -0
- ingestr-0.13.38/docs/media/phantombuster.png +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/docs/supported-sources/frankfurter.md +21 -17
- ingestr-0.13.38/docs/supported-sources/phantombuster.md +38 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/main.py +3 -0
- ingestr-0.13.38/ingestr/src/buildinfo.py +1 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/frankfurter/__init__.py +25 -12
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/frankfurter/helpers.py +16 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/phantombuster/__init__.py +29 -7
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/phantombuster/client.py +11 -6
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/sources.py +19 -12
- {ingestr-0.13.37 → ingestr-0.13.38}/requirements.txt +1 -1
- ingestr-0.13.37/ingestr/src/buildinfo.py +0 -1
- {ingestr-0.13.37 → ingestr-0.13.38}/.dockerignore +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/.githooks/pre-commit-hook.sh +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/.github/workflows/deploy-docs.yml +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/.github/workflows/release.yml +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/.github/workflows/secrets-scan.yml +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/.github/workflows/tests.yml +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/.gitignore +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/.gitleaksignore +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/.python-version +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/.vale.ini +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/Dockerfile +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/LICENSE.md +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/Makefile +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/README.md +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/docs/.vitepress/theme/custom.css +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/docs/.vitepress/theme/index.js +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/docs/commands/example-uris.md +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/docs/commands/ingest.md +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/docs/getting-started/core-concepts.md +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/docs/getting-started/incremental-loading.md +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/docs/getting-started/quickstart.md +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/docs/getting-started/telemetry.md +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/docs/index.md +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/docs/media/applovin_max.png +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/docs/media/athena.png +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/docs/media/clickhouse_img.png +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/docs/media/freshdesk_ingestion.png +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/docs/media/github.png +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/docs/media/google_analytics_realtime_report.png +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/docs/media/googleanalytics.png +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/docs/media/kinesis.bigquery.png +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/docs/media/linkedin_ads.png +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/docs/media/personio.png +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/docs/media/personio_duckdb.png +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/docs/media/pipedrive.png +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/docs/media/stripe_postgres.png +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/docs/media/tiktok.png +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/docs/supported-sources/adjust.md +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/docs/supported-sources/airtable.md +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/docs/supported-sources/applovin.md +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/docs/supported-sources/applovin_max.md +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/docs/supported-sources/appsflyer.md +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/docs/supported-sources/appstore.md +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/docs/supported-sources/asana.md +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/docs/supported-sources/athena.md +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/docs/supported-sources/bigquery.md +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/docs/supported-sources/chess.md +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/docs/supported-sources/clickhouse.md +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/docs/supported-sources/csv.md +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/docs/supported-sources/custom_queries.md +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/docs/supported-sources/databricks.md +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/docs/supported-sources/db2.md +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/docs/supported-sources/duckdb.md +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/docs/supported-sources/dynamodb.md +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/docs/supported-sources/facebook-ads.md +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/docs/supported-sources/freshdesk.md +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/docs/supported-sources/gcs.md +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/docs/supported-sources/github.md +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/docs/supported-sources/google-ads.md +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/docs/supported-sources/google_analytics.md +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/docs/supported-sources/gorgias.md +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/docs/supported-sources/gsheets.md +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/docs/supported-sources/hubspot.md +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/docs/supported-sources/kafka.md +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/docs/supported-sources/kinesis.md +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/docs/supported-sources/klaviyo.md +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/docs/supported-sources/linkedin_ads.md +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/docs/supported-sources/mongodb.md +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/docs/supported-sources/mssql.md +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/docs/supported-sources/mysql.md +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/docs/supported-sources/notion.md +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/docs/supported-sources/oracle.md +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/docs/supported-sources/personio.md +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/docs/supported-sources/pipedrive.md +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/docs/supported-sources/postgres.md +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/docs/supported-sources/redshift.md +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/docs/supported-sources/s3.md +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/docs/supported-sources/salesforce.md +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/docs/supported-sources/sap-hana.md +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/docs/supported-sources/shopify.md +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/docs/supported-sources/slack.md +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/docs/supported-sources/snowflake.md +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/docs/supported-sources/sqlite.md +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/docs/supported-sources/stripe.md +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/docs/supported-sources/tiktok-ads.md +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/docs/supported-sources/zendesk.md +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/docs/tutorials/load-kinesis-bigquery.md +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/docs/tutorials/load-personio-duckdb.md +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/docs/tutorials/load-stripe-postgres.md +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/conftest.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/.gitignore +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/adjust/__init__.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/adjust/adjust_helpers.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/airtable/__init__.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/applovin/__init__.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/applovin_max/__init__.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/appsflyer/__init__.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/appsflyer/client.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/appstore/__init__.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/appstore/client.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/appstore/errors.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/appstore/models.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/appstore/resources.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/arrow/__init__.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/asana_source/__init__.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/asana_source/helpers.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/asana_source/settings.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/blob.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/chess/__init__.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/chess/helpers.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/chess/settings.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/collector/spinner.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/destinations.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/dynamodb/__init__.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/errors.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/facebook_ads/__init__.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/facebook_ads/exceptions.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/facebook_ads/helpers.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/facebook_ads/settings.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/factory.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/filesystem/__init__.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/filesystem/helpers.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/filesystem/readers.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/filters.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/freshdesk/__init__.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/freshdesk/freshdesk_client.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/freshdesk/settings.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/github/__init__.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/github/helpers.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/github/queries.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/github/settings.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/google_ads/__init__.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/google_ads/field.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/google_ads/metrics.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/google_ads/predicates.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/google_ads/reports.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/google_analytics/__init__.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/google_analytics/helpers.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/google_sheets/README.md +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/google_sheets/__init__.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/google_sheets/helpers/__init__.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/google_sheets/helpers/api_calls.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/google_sheets/helpers/data_processing.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/gorgias/__init__.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/gorgias/helpers.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/hubspot/__init__.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/hubspot/helpers.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/hubspot/settings.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/kafka/__init__.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/kafka/helpers.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/kinesis/__init__.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/kinesis/helpers.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/klaviyo/__init__.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/klaviyo/client.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/klaviyo/helpers.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/linkedin_ads/__init__.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/linkedin_ads/dimension_time_enum.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/linkedin_ads/helpers.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/loader.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/mongodb/__init__.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/mongodb/helpers.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/notion/__init__.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/notion/helpers/__init__.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/notion/helpers/client.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/notion/helpers/database.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/notion/settings.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/partition.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/personio/__init__.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/personio/helpers.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/pipedrive/__init__.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/pipedrive/helpers/__init__.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/pipedrive/helpers/custom_fields_munger.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/pipedrive/helpers/pages.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/pipedrive/settings.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/pipedrive/typing.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/resource.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/salesforce/__init__.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/salesforce/helpers.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/shopify/__init__.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/shopify/exceptions.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/shopify/helpers.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/shopify/settings.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/slack/__init__.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/slack/helpers.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/slack/settings.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/sql_database/__init__.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/sql_database/callbacks.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/stripe_analytics/__init__.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/stripe_analytics/helpers.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/stripe_analytics/settings.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/table_definition.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/telemetry/event.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/testdata/fakebqcredentials.json +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/tiktok_ads/__init__.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/tiktok_ads/tiktok_helpers.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/time.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/version.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/zendesk/__init__.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/zendesk/helpers/__init__.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/zendesk/helpers/api_helpers.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/zendesk/helpers/credentials.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/zendesk/helpers/talk_api.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/src/zendesk/settings.py +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/testdata/.gitignore +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/testdata/create_replace.csv +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/testdata/delete_insert_expected.csv +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/testdata/delete_insert_part1.csv +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/testdata/delete_insert_part2.csv +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/testdata/merge_expected.csv +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/testdata/merge_part1.csv +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/ingestr/testdata/merge_part2.csv +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/package-lock.json +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/package.json +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/pyproject.toml +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/requirements-dev.txt +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/requirements.in +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/requirements_arm64.txt +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/resources/demo.gif +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/resources/demo.tape +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/resources/ingestr.svg +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/styles/Google/AMPM.yml +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/styles/Google/Acronyms.yml +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/styles/Google/Colons.yml +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/styles/Google/Contractions.yml +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/styles/Google/DateFormat.yml +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/styles/Google/Ellipses.yml +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/styles/Google/EmDash.yml +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/styles/Google/Exclamation.yml +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/styles/Google/FirstPerson.yml +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/styles/Google/Gender.yml +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/styles/Google/GenderBias.yml +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/styles/Google/HeadingPunctuation.yml +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/styles/Google/Headings.yml +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/styles/Google/Latin.yml +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/styles/Google/LyHyphens.yml +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/styles/Google/OptionalPlurals.yml +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/styles/Google/Ordinal.yml +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/styles/Google/OxfordComma.yml +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/styles/Google/Parens.yml +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/styles/Google/Passive.yml +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/styles/Google/Periods.yml +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/styles/Google/Quotes.yml +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/styles/Google/Ranges.yml +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/styles/Google/Semicolons.yml +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/styles/Google/Slang.yml +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/styles/Google/Spacing.yml +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/styles/Google/Spelling.yml +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/styles/Google/Units.yml +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/styles/Google/We.yml +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/styles/Google/Will.yml +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/styles/Google/WordList.yml +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/styles/Google/meta.json +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/styles/Google/vocab.txt +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/styles/bruin/Ingestr.yml +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/styles/config/vocabularies/bruin/accept.txt +0 -0
- {ingestr-0.13.37 → ingestr-0.13.38}/test.env.template +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ingestr
|
|
3
|
-
Version: 0.13.
|
|
3
|
+
Version: 0.13.38
|
|
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
|
|
@@ -74,7 +74,7 @@ Requires-Dist: google-cloud-storage==3.1.0
|
|
|
74
74
|
Requires-Dist: google-crc32c==1.6.0
|
|
75
75
|
Requires-Dist: google-resumable-media==2.7.2
|
|
76
76
|
Requires-Dist: googleapis-common-protos==1.69.0
|
|
77
|
-
Requires-Dist: greenlet==3.2.
|
|
77
|
+
Requires-Dist: greenlet==3.2.2
|
|
78
78
|
Requires-Dist: grpcio-status==1.62.3
|
|
79
79
|
Requires-Dist: grpcio==1.70.0
|
|
80
80
|
Requires-Dist: hdbcli==2.23.27
|
|
@@ -131,6 +131,7 @@ export default defineConfig({
|
|
|
131
131
|
{ text: "LinkedIn Ads", link: "/supported-sources/linkedin_ads.md" },
|
|
132
132
|
{ text: "Notion", link: "/supported-sources/notion.md" },
|
|
133
133
|
{ text: "Personio", link: "/supported-sources/personio.md" },
|
|
134
|
+
{ text: "PhantomBuster", link: "/supported-sources/phantombuster.md" },
|
|
134
135
|
{ text: "Pipedrive", link: "/supported-sources/pipedrive.md" },
|
|
135
136
|
{ text: "S3", link: "/supported-sources/s3.md" },
|
|
136
137
|
{ text: "Salesforce", link: "/supported-sources/salesforce.md" },
|
|
Binary file
|
|
@@ -10,7 +10,7 @@ The `ingestr` command to use the `frankfurter` source is as follows:
|
|
|
10
10
|
|
|
11
11
|
```bash
|
|
12
12
|
ingestr ingest \
|
|
13
|
-
--source-uri 'frankfurter
|
|
13
|
+
--source-uri 'frankfurter://?base=IDR' \
|
|
14
14
|
--interval-start '2025-03-27' \ # Optional. See 'exchange_rates'.
|
|
15
15
|
--interval-end '2025-03-28' \ # Optional.
|
|
16
16
|
--source-table '<table_name>' \ # E.g 'currencies', 'latest', 'exchange_rates'. See below.
|
|
@@ -25,7 +25,9 @@ ingestr ingest \
|
|
|
25
25
|
### **`--source-uri`**
|
|
26
26
|
- **Description**: Specifies the source URI for the Frankfurter API.
|
|
27
27
|
- **Value**: `'frankfurter://'`
|
|
28
|
-
- **Purpose**: Indicates that the data will be fetched from the Frankfurter API.
|
|
28
|
+
- **Purpose**: Indicates that the data will be fetched from the Frankfurter API.
|
|
29
|
+
- An optional base currency can be added `?base={base_currency}`.
|
|
30
|
+
- If no base currency is included, base currency defaults to USD.
|
|
29
31
|
|
|
30
32
|
---
|
|
31
33
|
|
|
@@ -89,9 +91,10 @@ ingestr ingest \
|
|
|
89
91
|
- **Description**: Fetches the latest exchange rates.
|
|
90
92
|
- **Columns**:
|
|
91
93
|
- `date`: The date of the exchange rates.
|
|
92
|
-
- `
|
|
94
|
+
- `currency_code`: The ISO 4217 currency code (e.g., `USD`, `EUR`).
|
|
93
95
|
- `rate`: The exchange rate relative to the base currency.
|
|
94
|
-
-
|
|
96
|
+
- `base_currency`: The base currency used to calculate the exchange rate.
|
|
97
|
+
- **Primary Key**: Composite key of `date`, `currency_code` and `base_currency`.
|
|
95
98
|
- **Notes**:
|
|
96
99
|
- The base currency (e.g., `EUR`) is included with a rate of `1.0`.
|
|
97
100
|
|
|
@@ -101,9 +104,10 @@ ingestr ingest \
|
|
|
101
104
|
- **Description**: Fetches historical exchange rates for a specified date range.
|
|
102
105
|
- **Columns**:
|
|
103
106
|
- `date`: The date of the exchange rates.
|
|
104
|
-
- `
|
|
107
|
+
- `currency_code`: The ISO 4217 currency code (e.g., `USD`, `EUR`).
|
|
105
108
|
- `rate`: The exchange rate relative to the base currency.
|
|
106
|
-
-
|
|
109
|
+
- `base_currency`: The base currency used to calculate the exchange rate.
|
|
110
|
+
- **Primary Key**: Composite key of `date`, `currency_code` and `base_currency`.
|
|
107
111
|
- **Notes**:
|
|
108
112
|
- An optional start and end date can be added via the arguments `--interval-start` and optionally `--interval-end` to define the date range (see examples below). If no start date is specified, the date will default today's date (and thus return the latest exchange rates).
|
|
109
113
|
- If a start date but no end date is specified, then the end date will default to today's date and ingestr will retrieve data up until the latest published data.
|
|
@@ -114,24 +118,24 @@ Here `--interval-start` is set to a weekend date (e.g., `2025-03-29` -- a Saturd
|
|
|
114
118
|
|
|
115
119
|
`--interval-start` defaults to the previous Friday (`2025-03-28`) and the next data is from the following Monday (for simplicity, only a subset of currencies is shown below):
|
|
116
120
|
|
|
117
|
-
| **date** | **
|
|
118
|
-
|
|
119
|
-
| 2025-03-28 | EUR | 1.0 |
|
|
120
|
-
| 2025-03-28 | USD | 1.0783 |
|
|
121
|
-
| 2025-03-28 | GBP | 0.8571 |
|
|
122
|
-
| 2025-03-31 | EUR | 1.0 |
|
|
123
|
-
| 2025-03-31 | USD | 1.0783 |
|
|
124
|
-
| 2025-03-31 | GBP | 0.8571 |
|
|
121
|
+
| **date** | **currency_code** | **rate** | **base_currency** |
|
|
122
|
+
|--------------|-------------------|----------|-------------------|
|
|
123
|
+
| 2025-03-28 | EUR | 1.0 | EUR |
|
|
124
|
+
| 2025-03-28 | USD | 1.0783 | EUR |
|
|
125
|
+
| 2025-03-28 | GBP | 0.8571 | EUR |
|
|
126
|
+
| 2025-03-31 | EUR | 1.0 | EUR |
|
|
127
|
+
| 2025-03-31 | USD | 1.0783 | EUR |
|
|
128
|
+
| 2025-03-31 | GBP | 0.8571 | EUR |
|
|
125
129
|
|
|
126
130
|
|
|
127
131
|
---
|
|
128
132
|
|
|
129
133
|
## **Examples**
|
|
130
134
|
|
|
131
|
-
### **1. Fetch the Latest Exchange Rates**
|
|
135
|
+
### **1. Fetch the Latest Exchange Rates with GBP as Base Currency**
|
|
132
136
|
```bash
|
|
133
137
|
ingestr ingest \
|
|
134
|
-
--source-uri 'frankfurter
|
|
138
|
+
--source-uri 'frankfurter://?base=GBP' \
|
|
135
139
|
--source-table 'latest' \
|
|
136
140
|
--dest-uri 'duckdb.db' \
|
|
137
141
|
--dest-table 'schema.latest_new_scheme'
|
|
@@ -139,7 +143,7 @@ ingestr ingest \
|
|
|
139
143
|
|
|
140
144
|
---
|
|
141
145
|
|
|
142
|
-
### **2. Fetch Historical Exchange Rates**
|
|
146
|
+
### **2. Fetch Historical Exchange Rates with USD as Default Base Currency**
|
|
143
147
|
```bash
|
|
144
148
|
ingestr ingest \
|
|
145
149
|
--source-uri 'frankfurter://' \
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# PhantomBuster
|
|
2
|
+
[PhantomBuster](https://phantombuster.com/) is a cloud-based data automation and web scraping platform that allows users to extract data from websites, automate actions.
|
|
3
|
+
|
|
4
|
+
ingestr supports PhantomBuster as a source.
|
|
5
|
+
|
|
6
|
+
## URI format
|
|
7
|
+
|
|
8
|
+
The URI format for PhantomBuster is as follows:
|
|
9
|
+
|
|
10
|
+
```plaintext
|
|
11
|
+
PhantomBuster://?api_key=<api_key>
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
URI parameters:
|
|
15
|
+
- `api_key`: the API key used for authentication with the PhantomBuster API
|
|
16
|
+
|
|
17
|
+
## Setting up a PhantomBuster Integration
|
|
18
|
+
|
|
19
|
+
You can find your PhantomBuster API key by following the guide [here](https://hub.phantombuster.com/docs/api#how-to-find-my-api-key).
|
|
20
|
+
|
|
21
|
+
Let's say your `api_key` is key_123, here's a sample command that will copy the data from PhantomBuster into a DuckDB database:
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
ingestr ingest \
|
|
26
|
+
--source-uri 'PhantomBuster://?api_key=key_123' \
|
|
27
|
+
--source-table 'completed_phantoms:<agent_id>' \
|
|
28
|
+
--dest-uri duckdb:///PhantomBuster.duckdb \
|
|
29
|
+
--dest-table 'dest.result'
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
<img alt="PhantomBuster_img" src="../media/phantombuster.png"/>
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
For now, we only support `completed_phantoms` table followed by an `agent_id`. For example: `completed_phantoms:<agent_id>` Where agent id is a unique identifier for a specific Phantom which can be found in URI of a specific phantom.
|
|
37
|
+
|
|
38
|
+
Use this as `--source-table` parameter in the `ingestr ingest` command.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
version = "v0.13.38"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
from typing import Any, Iterator
|
|
1
|
+
from typing import Any, Iterator, Optional
|
|
2
2
|
|
|
3
3
|
import dlt
|
|
4
4
|
from dlt.common.pendulum import pendulum
|
|
@@ -15,13 +15,13 @@ from ingestr.src.frankfurter.helpers import get_path_with_retry
|
|
|
15
15
|
def frankfurter_source(
|
|
16
16
|
start_date: TAnyDateTime,
|
|
17
17
|
end_date: TAnyDateTime,
|
|
18
|
+
base_currency: str,
|
|
18
19
|
) -> Any:
|
|
19
20
|
"""
|
|
20
21
|
A dlt source for the frankfurter.dev API. It groups several resources (in this case frankfurter.dev API endpoints) containing
|
|
21
22
|
various types of data: currencies, latest rates, historical rates.
|
|
22
23
|
"""
|
|
23
24
|
date_time = dlt.sources.incremental(
|
|
24
|
-
|
|
25
25
|
"date",
|
|
26
26
|
initial_value=start_date,
|
|
27
27
|
end_value=end_date,
|
|
@@ -31,9 +31,10 @@ def frankfurter_source(
|
|
|
31
31
|
|
|
32
32
|
return (
|
|
33
33
|
currencies(),
|
|
34
|
-
latest(),
|
|
35
|
-
exchange_rates(
|
|
36
|
-
|
|
34
|
+
latest(base_currency=base_currency),
|
|
35
|
+
exchange_rates(
|
|
36
|
+
start_date=date_time, end_date=end_date, base_currency=base_currency
|
|
37
|
+
),
|
|
37
38
|
)
|
|
38
39
|
|
|
39
40
|
|
|
@@ -61,29 +62,33 @@ def currencies() -> Iterator[dict]:
|
|
|
61
62
|
"date": {"data_type": "text"},
|
|
62
63
|
"currency_code": {"data_type": "text"},
|
|
63
64
|
"rate": {"data_type": "double"},
|
|
65
|
+
"base_currency": {"data_type": "text"},
|
|
64
66
|
},
|
|
65
|
-
primary_key=["date", "currency_code"],
|
|
67
|
+
primary_key=["date", "currency_code", "base_currency"],
|
|
66
68
|
)
|
|
67
|
-
def latest() -> Iterator[dict]:
|
|
69
|
+
def latest(base_currency: Optional[str] = "") -> Iterator[dict]:
|
|
68
70
|
"""
|
|
69
71
|
Fetches the latest exchange rates and yields them as rows.
|
|
70
72
|
"""
|
|
71
73
|
# Base URL
|
|
72
74
|
url = "latest?"
|
|
73
75
|
|
|
76
|
+
if base_currency:
|
|
77
|
+
url += f"base={base_currency}"
|
|
78
|
+
|
|
74
79
|
# Fetch data
|
|
75
80
|
data = get_path_with_retry(url)
|
|
76
81
|
|
|
77
82
|
# Extract rates and base currency
|
|
78
83
|
rates = data["rates"]
|
|
79
|
-
|
|
80
84
|
date = pendulum.parse(data["date"])
|
|
81
85
|
|
|
82
|
-
# Add the base currency
|
|
86
|
+
# Add the base currency with a rate of 1.0
|
|
83
87
|
yield {
|
|
84
88
|
"date": date,
|
|
85
|
-
"currency_code":
|
|
89
|
+
"currency_code": base_currency,
|
|
86
90
|
"rate": 1.0,
|
|
91
|
+
"base_currency": base_currency,
|
|
87
92
|
}
|
|
88
93
|
|
|
89
94
|
# Add all currencies and their rates
|
|
@@ -92,6 +97,7 @@ def latest() -> Iterator[dict]:
|
|
|
92
97
|
"date": date,
|
|
93
98
|
"currency_code": currency_code,
|
|
94
99
|
"rate": rate,
|
|
100
|
+
"base_currency": base_currency,
|
|
95
101
|
}
|
|
96
102
|
|
|
97
103
|
|
|
@@ -101,12 +107,14 @@ def latest() -> Iterator[dict]:
|
|
|
101
107
|
"date": {"data_type": "text"},
|
|
102
108
|
"currency_code": {"data_type": "text"},
|
|
103
109
|
"rate": {"data_type": "double"},
|
|
110
|
+
"base_currency": {"data_type": "text"},
|
|
104
111
|
},
|
|
105
|
-
primary_key=("date", "currency_code"),
|
|
112
|
+
primary_key=("date", "currency_code", "base_currency"),
|
|
106
113
|
)
|
|
107
114
|
def exchange_rates(
|
|
108
115
|
end_date: TAnyDateTime,
|
|
109
116
|
start_date: dlt.sources.incremental[TAnyDateTime] = dlt.sources.incremental("date"),
|
|
117
|
+
base_currency: Optional[str] = "",
|
|
110
118
|
) -> Iterator[dict]:
|
|
111
119
|
"""
|
|
112
120
|
Fetches exchange rates for a specified date range.
|
|
@@ -124,6 +132,9 @@ def exchange_rates(
|
|
|
124
132
|
# Compose the URL
|
|
125
133
|
url = f"{start_date_str}..{end_date_str}?"
|
|
126
134
|
|
|
135
|
+
if base_currency:
|
|
136
|
+
url += f"base={base_currency}"
|
|
137
|
+
|
|
127
138
|
# Fetch data from the API
|
|
128
139
|
data = get_path_with_retry(url)
|
|
129
140
|
|
|
@@ -137,8 +148,9 @@ def exchange_rates(
|
|
|
137
148
|
# Add the base currency with a rate of 1.0
|
|
138
149
|
yield {
|
|
139
150
|
"date": formatted_date,
|
|
140
|
-
"currency_code":
|
|
151
|
+
"currency_code": base_currency,
|
|
141
152
|
"rate": 1.0,
|
|
153
|
+
"base_currency": base_currency,
|
|
142
154
|
}
|
|
143
155
|
|
|
144
156
|
# Add all other currencies and their rates
|
|
@@ -147,4 +159,5 @@ def exchange_rates(
|
|
|
147
159
|
"date": formatted_date,
|
|
148
160
|
"currency_code": currency_code,
|
|
149
161
|
"rate": rate,
|
|
162
|
+
"base_currency": base_currency,
|
|
150
163
|
}
|
|
@@ -30,3 +30,19 @@ def validate_dates(start_date: datetime, end_date: datetime) -> None:
|
|
|
30
30
|
# Check if start_date is before end_date
|
|
31
31
|
if start_date > end_date:
|
|
32
32
|
raise ValueError("Interval-end cannot be before interval-start.")
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
def validate_currency(currency_code: str) -> bool:
|
|
36
|
+
url = "https://api.frankfurter.dev/v1/currencies"
|
|
37
|
+
|
|
38
|
+
response = requests.get(url, timeout=5)
|
|
39
|
+
currencies = response.json()
|
|
40
|
+
|
|
41
|
+
if currency_code.upper() in currencies:
|
|
42
|
+
return True
|
|
43
|
+
else:
|
|
44
|
+
supported_currencies = list(currencies.keys())
|
|
45
|
+
print(
|
|
46
|
+
f"Invalid base currency '{currency_code}'. Supported currencies are: {supported_currencies}"
|
|
47
|
+
)
|
|
48
|
+
return False
|
|
@@ -3,10 +3,11 @@ from typing import Iterable, Optional
|
|
|
3
3
|
import dlt
|
|
4
4
|
import pendulum
|
|
5
5
|
import requests
|
|
6
|
-
from dlt.common.typing import TDataItem
|
|
6
|
+
from dlt.common.typing import TDataItem, TAnyDateTime
|
|
7
7
|
from dlt.sources import DltResource
|
|
8
8
|
from dlt.sources.helpers.requests import Client
|
|
9
9
|
|
|
10
|
+
|
|
10
11
|
from ingestr.src.phantombuster.client import PhantombusterClient
|
|
11
12
|
|
|
12
13
|
|
|
@@ -26,13 +27,34 @@ def create_client() -> requests.Session:
|
|
|
26
27
|
request_backoff_factor=2,
|
|
27
28
|
).session
|
|
28
29
|
|
|
29
|
-
|
|
30
30
|
@dlt.source(max_table_nesting=0)
|
|
31
|
-
def phantombuster_source(api_key: str, agent_id: str, start_date:
|
|
31
|
+
def phantombuster_source(api_key: str, agent_id: str, start_date: TAnyDateTime, end_date: TAnyDateTime | None) -> Iterable[DltResource]:
|
|
32
32
|
client = PhantombusterClient(api_key)
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
33
|
+
@dlt.resource(
|
|
34
|
+
write_disposition="merge",
|
|
35
|
+
primary_key="container_id",
|
|
36
|
+
columns={
|
|
37
|
+
"partition_dt": {"data_type": "date", "partition": True},
|
|
38
|
+
},
|
|
39
|
+
)
|
|
40
|
+
def completed_phantoms(
|
|
41
|
+
dateTime=(
|
|
42
|
+
dlt.sources.incremental(
|
|
43
|
+
"ended_at",
|
|
44
|
+
initial_value=start_date,
|
|
45
|
+
end_value=end_date,
|
|
46
|
+
range_start="closed",
|
|
47
|
+
range_end="closed",
|
|
48
|
+
)
|
|
49
|
+
),
|
|
50
|
+
) -> Iterable[TDataItem]:
|
|
51
|
+
if dateTime.end_value is None:
|
|
52
|
+
end_dt = pendulum.now(tz="UTC")
|
|
53
|
+
else:
|
|
54
|
+
end_dt = dateTime.end_value
|
|
55
|
+
|
|
56
|
+
start_dt = dateTime.last_value
|
|
57
|
+
|
|
58
|
+
yield client.fetch_containers_result(create_client(), agent_id, start_date=start_dt, end_date=end_dt)
|
|
37
59
|
|
|
38
60
|
return completed_phantoms
|
|
@@ -18,8 +18,10 @@ class PhantombusterClient:
|
|
|
18
18
|
url = "https://api.phantombuster.com/api/v2/containers/fetch-all/"
|
|
19
19
|
before_ended_at = None
|
|
20
20
|
limit = 100
|
|
21
|
+
|
|
21
22
|
started_at = start_date.int_timestamp * 1000 + int(start_date.microsecond / 1000)
|
|
22
23
|
ended_at = end_date.int_timestamp * 1000 + int(end_date.microsecond / 1000)
|
|
24
|
+
|
|
23
25
|
while True:
|
|
24
26
|
params: dict[str, Union[str, int, float, bytes, None]] = {
|
|
25
27
|
"agentId": agent_id,
|
|
@@ -36,15 +38,18 @@ class PhantombusterClient:
|
|
|
36
38
|
|
|
37
39
|
for container in containers:
|
|
38
40
|
container_ended_at = container.get("endedAt")
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
|
|
42
|
+
if before_ended_at is None or before_ended_at > container_ended_at:
|
|
43
|
+
before_ended_at = container_ended_at
|
|
44
|
+
|
|
45
|
+
if container_ended_at < started_at or container_ended_at > ended_at:
|
|
43
46
|
continue
|
|
47
|
+
|
|
44
48
|
try:
|
|
45
49
|
result = self.fetch_result_object(session, container["id"])
|
|
46
|
-
partition_dt = pendulum.from_timestamp(container_ended_at / 1000, tz="UTC").
|
|
47
|
-
|
|
50
|
+
partition_dt = pendulum.from_timestamp(container_ended_at / 1000, tz="UTC").date()
|
|
51
|
+
container_ended_at_datetime = pendulum.from_timestamp(container_ended_at / 1000, tz="UTC")
|
|
52
|
+
row = {"container_id": container["id"],"container": container, "result": result, "partition_dt": partition_dt, "ended_at": container_ended_at_datetime}
|
|
48
53
|
yield row
|
|
49
54
|
|
|
50
55
|
except requests.RequestException as e:
|
|
@@ -2180,6 +2180,18 @@ class FrankfurterSource:
|
|
|
2180
2180
|
"Frankfurter takes care of incrementality on its own, you should not provide incremental_key"
|
|
2181
2181
|
)
|
|
2182
2182
|
|
|
2183
|
+
from ingestr.src.frankfurter import frankfurter_source
|
|
2184
|
+
from ingestr.src.frankfurter.helpers import validate_currency, validate_dates
|
|
2185
|
+
|
|
2186
|
+
parsed_uri = urlparse(uri)
|
|
2187
|
+
source_params = parse_qs(parsed_uri.query)
|
|
2188
|
+
base_currency = source_params.get("base", [None])[0]
|
|
2189
|
+
|
|
2190
|
+
if not base_currency:
|
|
2191
|
+
base_currency = "USD"
|
|
2192
|
+
|
|
2193
|
+
validate_currency(base_currency)
|
|
2194
|
+
|
|
2183
2195
|
if kwargs.get("interval_start"):
|
|
2184
2196
|
start_date = ensure_pendulum_datetime(str(kwargs.get("interval_start")))
|
|
2185
2197
|
if kwargs.get("interval_end"):
|
|
@@ -2190,21 +2202,20 @@ class FrankfurterSource:
|
|
|
2190
2202
|
start_date = pendulum.now()
|
|
2191
2203
|
end_date = pendulum.now()
|
|
2192
2204
|
|
|
2193
|
-
from ingestr.src.frankfurter import frankfurter_source
|
|
2194
|
-
from ingestr.src.frankfurter.helpers import validate_dates
|
|
2195
|
-
|
|
2196
2205
|
validate_dates(start_date=start_date, end_date=end_date)
|
|
2197
2206
|
|
|
2198
2207
|
src = frankfurter_source(
|
|
2199
2208
|
start_date=start_date,
|
|
2200
2209
|
end_date=end_date,
|
|
2210
|
+
base_currency=base_currency,
|
|
2201
2211
|
)
|
|
2202
2212
|
|
|
2203
2213
|
if table not in src.resources:
|
|
2204
2214
|
raise UnsupportedResourceError(table, "Frankfurter")
|
|
2205
2215
|
|
|
2206
2216
|
return src.with_resources(table)
|
|
2207
|
-
|
|
2217
|
+
|
|
2218
|
+
|
|
2208
2219
|
class FreshdeskSource:
|
|
2209
2220
|
# freshdesk://domain?api_key=<api_key>
|
|
2210
2221
|
def handles_incrementality(self) -> bool:
|
|
@@ -2257,18 +2268,14 @@ class PhantombusterSource:
|
|
|
2257
2268
|
raise MissingValueError("agent_id", "Phantombuster")
|
|
2258
2269
|
|
|
2259
2270
|
start_date = kwargs.get("interval_start")
|
|
2260
|
-
if start_date is
|
|
2261
|
-
start_date = ensure_pendulum_datetime(
|
|
2271
|
+
if start_date is None:
|
|
2272
|
+
start_date = ensure_pendulum_datetime("2018-01-01").in_tz("UTC")
|
|
2262
2273
|
else:
|
|
2263
|
-
start_date =
|
|
2274
|
+
start_date = ensure_pendulum_datetime(start_date).in_tz("UTC")
|
|
2264
2275
|
|
|
2265
2276
|
end_date = kwargs.get("interval_end")
|
|
2266
|
-
|
|
2267
|
-
#doesnot support incremental loading
|
|
2268
2277
|
if end_date is not None:
|
|
2269
|
-
end_date = ensure_pendulum_datetime(end_date)
|
|
2270
|
-
else:
|
|
2271
|
-
end_date = pendulum.now()
|
|
2278
|
+
end_date = ensure_pendulum_datetime(end_date).in_tz("UTC")
|
|
2272
2279
|
|
|
2273
2280
|
from ingestr.src.phantombuster import phantombuster_source
|
|
2274
2281
|
return phantombuster_source(api_key=api_key[0], agent_id=agent_id, start_date=start_date, end_date=end_date).with_resources(table_name)
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
version = "v0.13.37"
|
|
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
|