Skip to main content

No project description provided

Project description

airbyte_databricks_cache

Databricks cache implementation for PyAirbyte

Installation

pip install airbyte # pre-requisite
pip install airbyte-databricks-cache

Usage

import airbyte as ab
import airbyte_databricks_cache  # Must import to inject the module into airbyte.caches.databricks
from airbyte.caches.databricks import DatabricksCache # pylint: disable=E0401:import-error

# create airbyte source
source = ab.get_source(...)

# create DatabricksCache
cache_dbks = DatabricksCache(
    access_token = ab.get_secret("databricks_access_token"),
    server_hostname = ab.get_secret("databricks_server_hostname"),
    http_path= ab.get_secret("databricks_http_path"),
    catalog = ab.get_secret("databricks_catalog"),
    schema_name = ab.get_secret("databricks_target_schema"),
    staging_volume_w_location = ab.get_secret("databricks_staging_volume_w_location")
)

# read into cache
result = source.read(
    cache=cache_dbks,
    streams=['xxx'],
    force_full_refresh=False,
    write_strategy="append"
)

### OR
# write to destination
destination = ab.get_destination("destination-databricks", cache_dbks)


destination.write(source, ...)

Build and deploy

Happens via github workflow.

If building locally, manually:

poetry run python build.py
poetry build --format wheel

Run locally to test that import works: poetry run python -c "import airbyte_databricks_cache"

Release mechanics:

# release
git fetch --tags origin
git describe --tags --abbrev=0
gh release create v0.1.8 --generate-notes
# gh release create v0.1.8 --target feat-workflow --generate-notes
git fetch --tags origin


# delete local tags if remote is deleted
git fetch origin --prune --prune-tags

## manual addons
# check long desc for pypi
twine check dist/*

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

airbyte_databricks_cache-0.1.19-cp311-cp311-manylinux_2_35_x86_64.whl (720.0 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.35+ x86-64

airbyte_databricks_cache-0.1.19-cp311-cp311-macosx_14_0_arm64.whl (257.9 kB view details)

Uploaded CPython 3.11macOS 14.0+ ARM64

File details

Details for the file airbyte_databricks_cache-0.1.19-cp311-cp311-manylinux_2_35_x86_64.whl.

File metadata

File hashes

Hashes for airbyte_databricks_cache-0.1.19-cp311-cp311-manylinux_2_35_x86_64.whl
Algorithm Hash digest
SHA256 98b992802a692f99a62a3c36fa7dfafd79851fd8504a9eb5211f3ef8f0a41b82
MD5 c73b21747d53c16e110b9071bf985d7b
BLAKE2b-256 c766f9533f052f5aaa5de11280883ebc42b0f98e45990a5806aa4ec2d182b5ab

See more details on using hashes here.

File details

Details for the file airbyte_databricks_cache-0.1.19-cp311-cp311-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for airbyte_databricks_cache-0.1.19-cp311-cp311-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 30934b96efd1f34ec61dd781df807acf175cdbc684825193dabd260cce087772
MD5 d37de71bb345cf348b9fe569e59ea6d6
BLAKE2b-256 c91e64c85e0015f34b0047e3d5286d888163ca21eb73ee1efa0b8c3870cbddc8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page