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!
Metadata
Release files for dbt-select-builder 0.1.2
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 |
|---|---|---|---|---|
| dbt_select_builder-0.1.2.tar.gz | 5.7 kB | With provenance | Details for dbt_select_builder-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dbt_select_builder-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for dbt_select_builder-0.1.2-py3-none-any.whl |
Total release size: 12.3 kB
Release files / dbt_select_builder-0.1.2.tar.gz
| Download URL | dbt_select_builder-0.1.2.tar.gz |
|---|---|
| Size | 5.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3050aa2c25c417d73df32c3696cc58c659a1175b2bbddea0e0b55a287873ce17
|
|
BLAKE2b-256 checksum How to use checksums |
3604d640d240663e30102697a00ce7470bb8ee4333a95d6b6c06b8aed33dc871
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 31, 2026.
Transparency logRelease files / dbt_select_builder-0.1.2-py3-none-any.whl
| Download URL | dbt_select_builder-0.1.2-py3-none-any.whl |
|---|---|
| Size | 6.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
25b64e4ec9c31854f4b9d13999c394be7f776b5dc94ef842630ea9d9eeea34d2
|
|
BLAKE2b-256 checksum How to use checksums |
2cc8767e2680b150e58d59fa38412ab80609214320b85edecf1ba8346e48aaec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 31, 2026.
Transparency logSecurity for dbt-select-builder 0.1.2
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for dbt_select_builder-0.1.2.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 31, 2026.
Transparency logA 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.