dbt-select-builder
What is this repository?
A builder to help you create a select / exclude clause for dbt.
Why does this library exist?
The format of select / exclude clauses in dbt supports only ',' and ' ' (white-space) denoting 'and' and 'or', respectively. Besides parentheses are not supported. Therefore, to create a complicated select clause you often decompose factors into one-line. An example is shown below.
A \land (B \lor C) \Rightarrow A,B \ A,C
The left side is a logical expression and the right side is a dbt-select expression. Since parentheses are not supported, it is required to expand your logical expression by yourself.
How is this library installed?
This library has been uploaded to PyPI.
You can get that using the pip command.
pip install dbt-select-builder
How is this library used?
Using this library, the following can be written in python code in a straightforward way.
from dbt_select_builder import (
dbt_and,
dbt_or
)
dbt_and(
"A",
dbt_or(
"C", "D"
)
).resolve().build()
# "A,C A,D" is returned!
Also, strings with ',' and ' ' are supported.
from dbt_select_builder import (
dbt_and,
dbt_or
)
dbt_and(
"A,B",
"C D"
).resolve().build()
# "A,B,C A,B,D" is returned!
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dbt_select_builder-0.1.2.tar.gz.
File metadata
- Download URL: dbt_select_builder-0.1.2.tar.gz
- Upload date:
- Size: 5.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3050aa2c25c417d73df32c3696cc58c659a1175b2bbddea0e0b55a287873ce17
|
|
| MD5 |
9bb1b80e87dfa136d281aae332021131
|
|
| BLAKE2b-256 |
3604d640d240663e30102697a00ce7470bb8ee4333a95d6b6c06b8aed33dc871
|
Provenance
The following attestation bundles were made for dbt_select_builder-0.1.2.tar.gz:
Publisher:
publish.yml on HirofumiTsuda/dbt-select-builder
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dbt_select_builder-0.1.2.tar.gz -
Subject digest:
3050aa2c25c417d73df32c3696cc58c659a1175b2bbddea0e0b55a287873ce17 - Sigstore transparency entry: 2301860261
- Sigstore integration time:
-
Permalink:
HirofumiTsuda/dbt-select-builder@886cebe92c737064cacf873310b319abca259b16 -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/HirofumiTsuda
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@886cebe92c737064cacf873310b319abca259b16 -
Trigger Event:
push
-
Statement type:
File details
Details for the file dbt_select_builder-0.1.2-py3-none-any.whl.
File metadata
- Download URL: dbt_select_builder-0.1.2-py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
25b64e4ec9c31854f4b9d13999c394be7f776b5dc94ef842630ea9d9eeea34d2
|
|
| MD5 |
29828f362a302aae14b93f8ba28ec7d9
|
|
| BLAKE2b-256 |
2cc8767e2680b150e58d59fa38412ab80609214320b85edecf1ba8346e48aaec
|
Provenance
The following attestation bundles were made for dbt_select_builder-0.1.2-py3-none-any.whl:
Publisher:
publish.yml on HirofumiTsuda/dbt-select-builder
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dbt_select_builder-0.1.2-py3-none-any.whl -
Subject digest:
25b64e4ec9c31854f4b9d13999c394be7f776b5dc94ef842630ea9d9eeea34d2 - Sigstore transparency entry: 2301860538
- Sigstore integration time:
-
Permalink:
HirofumiTsuda/dbt-select-builder@886cebe92c737064cacf873310b319abca259b16 -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/HirofumiTsuda
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@886cebe92c737064cacf873310b319abca259b16 -
Trigger Event:
push
-
Statement type: