Skip to main content

vibedata-dlt-redshift-studio

The dlt runtime execution unit for an Amazon Redshift Domain, installed in the Studio-local intent venv.

import dlt
from vibedata.dlt.redshift import setup_environment, finalize

setup_environment()
pipeline = dlt.pipeline(
    pipeline_name="my_pipeline", destination="redshift", dataset_name="analytics"
)
try:
    pipeline.run(source)
except Exception as e:
    finalize(pipeline, error_message=str(e))
    raise
finalize(pipeline)

setup_environment() registers the Domain's Secret Store provider and mints the Ephemeral database's password into this process, under dlt's own DESTINATION__REDSHIFT__CREDENTIALS__PASSWORD. Studio publishes the other four coordinates — HOST, PORT, DATABASE, USERNAME — into the Intent environment under the matching names, and dlt reads those natively, so the pipeline names no VD_* variable itself.

The password is separate because Redshift authenticates with a credential minted per invocation, scoped to one database and valid for at most an hour.

The Broker's database_password answer also names the database user the password was minted for, and the password is valid for that user only. That username replaces the projected USERNAME, verbatim: a composite such as IAMA:<user>:<group> is the whole login name and is not parsed. An older Broker answers with access_token alone, and the projected username stays.

The credential is minted once per run and is not refreshed. A connection opened after it expires fails to authenticate, so a single dlt command is bounded by the credential's lifetime.

Without one, dlt refuses to configure the destination and names DESTINATION__REDSHIFT__CREDENTIALS__PASSWORD — which no authored pipeline sets, so this unit fails at the mint and names the Broker instead. A blank password is the case worth guarding: dlt resolves it cleanly and the load then reaches Redshift as a real login attempt, so an empty Broker answer is refused rather than set.

The minted password lives in os.environ for the life of the process, as the MotherDuck unit's token does — inherited by any child it spawns.

finalize() persists the audit tables. A Redshift load writes directly, so there is nothing to sync afterwards.

It also narrows dlt's dataset-exists check to the connected database. dlt asks svv_redshift_schemas, which lists every database's schemas on the cluster or workgroup, so from an Intent's Ephemeral database it would find the Domain's schema of the same name and never create its own (VD-7407). That is the one private seam this unit patches, which is why its dlt range has an upper bound.

Metadata

Release files for vibedata-dlt-redshift-studio 0.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vibedata-dlt-redshift-studio 0.3.1
File Size Uploaded Provenance Actions
vibedata_dlt_redshift_studio-0.3.1.tar.gz 10.1 kB Without provenance Details for vibedata_dlt_redshift_studio-0.3.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for vibedata-dlt-redshift-studio 0.3.1
File Interpreter ABI Platform Actions
vibedata_dlt_redshift_studio-0.3.1-py3-none-any.whl Python 3 none any Details for vibedata_dlt_redshift_studio-0.3.1-py3-none-any.whl

Total release size: 17.9 kB

Release files / vibedata_dlt_redshift_studio-0.3.1.tar.gz

Download URL vibedata_dlt_redshift_studio-0.3.1.tar.gz
Size 10.1 kB
Tags Source
SHA-256 checksum
How to use checksums
7a1801362153254a0e782af4dfe14d1b6985463e3ae892c8c1bfe07014b146f0
BLAKE2b-256 checksum
How to use checksums
3aaab841056eec17aa94b188503a6756863860777f032e27e75470da8d8dd59f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.17

Release files / vibedata_dlt_redshift_studio-0.3.1-py3-none-any.whl

Download URL vibedata_dlt_redshift_studio-0.3.1-py3-none-any.whl
Size 7.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dce80b6f26a5533736914a4c264bc1120494f4e978c3f93861966abefa8e19e3
BLAKE2b-256 checksum
How to use checksums
6d98e8f2b94ff0b9a4268f9edcf6ac67e09603afd635a6a57660dfd5ac0e2bc3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.17

Security for vibedata-dlt-redshift-studio 0.3.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page