tio_duckdb
tio_duckdb is the DuckDB family for Tiozin: plugins that run data jobs on a local DuckDB connection.
One-Minute Example
pip install tio_duckdb
This job loads the text of Hamlet into a data lake. DuckdbRunner runs it, DuckdbFileInput reads the text, and DuckdbFileOutput writes it.
kind: LinearJob
name: ingestion_hamlet_job
owner: literature@tiozin.com
maintainer: tiozin
cost_center: tio_scrooge
org: tiozin
region: latam
domain: literature
subdomain: classics
product: shakespeare
model: hamlet
layer: raw
runner:
kind: DuckdbRunner
inputs:
- kind: DuckdbFileInput
name: load_hamlet
path: examples/data/{{product}}/{{model}}.txt
format: text
outputs:
- kind: DuckdbFileOutput
name: save_hamlet
path: .output/lake-{{domain}}-{{layer}}/{{product}}/{{model}}/date={{today}}
Run it:
tiozin run examples/jobs/oneminute.yaml
Plugins
- DuckdbRunner: runs a job on a DuckDB connection that it opens during setup and closes during teardown.
- DuckdbFileInput: reads files in any format DuckDB reads natively, such as Parquet, CSV, JSON, and plain text.
- DuckdbSqlTransform: runs a SQL query over the results of earlier steps.
- DuckdbWordCountTransform: counts word occurrences in a text column.
- DuckdbFileOutput: writes the result of a job to files in a directory.
- DuckdbPostgresOutput: writes the result of a job into a PostgreSQL table.
The package also exports the base classes DuckdbInput, DuckdbTransform, DuckdbCoTransform, and DuckdbOutput for writing custom steps. See Accessing the connection.
Documentation
Getting Started
Using the Family
Tiozin
DuckDB
License
This project is licensed under the Mozilla Public License 2.0.
Metadata
Release files for tio_duckdb 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tio_duckdb-0.1.0.tar.gz | 23.0 kB | Without provenance | Details for tio_duckdb-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tio_duckdb-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for tio_duckdb-0.1.0-py3-none-any.whl |
Total release size: 53.0 kB
Release files / tio_duckdb-0.1.0.tar.gz
| Download URL | tio_duckdb-0.1.0.tar.gz |
|---|---|
| Size | 23.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b6becea619e8e8b5fced329acd9e52a40777983a1bf200f6d39d4b7cb4f24ea7
|
|
BLAKE2b-256 checksum How to use checksums |
4448b3bea46a3e65cdcfa974c61cd391edc41ec71adc557bd27e5fd2bf1f61cc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / tio_duckdb-0.1.0-py3-none-any.whl
| Download URL | tio_duckdb-0.1.0-py3-none-any.whl |
|---|---|
| Size | 30.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
76185defad24fe01fa40c430d3a33910ca20c3a1e25d6c89f691188f70dcf7c8
|
|
BLAKE2b-256 checksum How to use checksums |
808c5cc470565ca2115e354b7acb84f5ce8953af56fc2b7f170d4d589a3d336c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for tio_duckdb 0.1.0
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.