datasource entities, collections, namespace helpers, agent-yaml config model + driver abstraction for postgres/redshift/snowflake/bigquery backends
Project description
3tears-datasources
Datasource entities, three-tier collections, namespace helpers, the
agent-yaml-facing DatasourceConfig, and the Driver abstraction
(plus concrete asyncpg + Redshift drivers) for the 3tears platform.
This is the single source of truth for "what is a datasource" across every 3tears consumer.
Public surface
Imported via from threetears.datasources import …:
- entities --
DataSourceEntity,DataSourceTableEntity,DataSourceColumnEntity,DataSourceRelationEntity,TableTemplateEntity+ theDataSourceType,DataSourceAccessMode,DataSourceStatusenums. - collections --
DataSourceCollection,DataSourceTableCollection,DataSourceColumnCollection,DataSourceRelationCollection,TableTemplateCollection(three-tierSchemaBackedCollection/BaseCollectionsubclasses with L1/L2/L3 caching +_publish_invalidationon save). - namespace --
DATASOURCE_NAMESPACE_TYPE,datasource_namespace_id(uuid) -> uuid,datasource_namespace_name(name) -> str. - config --
DatasourceConfig(the agent-yaml-facing model the SDK validates against) plus the per-driverConnectionConfigdiscriminated union.
Drivers
The Driver ABC + create_driver(config, *, hub_l3_pool=None) factory
are the entry point. Concrete drivers are accessed via the
factory, NOT imported directly:
from threetears.datasources.drivers import create_driver
driver = create_driver(config.connection_config)
try:
rows = await driver.fetch("SELECT * FROM customers WHERE id = $1", customer_id)
finally:
await driver.close()
Driver implementations live behind extras keys:
pip install '3tears-datasources[redshift]'forRedshiftDriverpip install '3tears-datasources[snowflake]'forSnowflakeDriver(stub today; full impl tracked separately)pip install '3tears-datasources[bigquery]'forBigQueryDriver(stub today; full impl tracked separately)
Postgres / Yugabyte / agent_internal coverage uses asyncpg which is
a hard dep (no extras key required).
See IMPLEMENTING_DRIVERS.md for the contract every new driver must
satisfy.
Versioning policy
3tears-datasources versions in lockstep with the rest of the
3tears monorepo: every package shares one version, which tracks the
framework git tag (v0.9.1 at time of writing). All packages move
together.
The pyproject.toml depends on 3tears core via a compatible-release
range (3tears>=0.9.1,<1.0); because the monorepo bumps together, any
matching 0.9.x core satisfies it.
See CHANGELOG.md for the full version history.
Project details
Release history Release notifications | RSS feed
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 3tears_datasources-0.21.0.tar.gz.
File metadata
- Download URL: 3tears_datasources-0.21.0.tar.gz
- Upload date:
- Size: 159.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3a3f9c61884369c0df844f677e3bc7ffa3c59b9c58d5451b0e55c780fa1606f4
|
|
| MD5 |
9969d42022adcee1680a447928523a38
|
|
| BLAKE2b-256 |
506a596ffd79cc121b82362568ac0e8d902075ae8ae6df0a13c0ec780d3b49ba
|
Provenance
The following attestation bundles were made for 3tears_datasources-0.21.0.tar.gz:
Publisher:
release.yml on pacepace/3tears
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
3tears_datasources-0.21.0.tar.gz -
Subject digest:
3a3f9c61884369c0df844f677e3bc7ffa3c59b9c58d5451b0e55c780fa1606f4 - Sigstore transparency entry: 2274639342
- Sigstore integration time:
-
Permalink:
pacepace/3tears@5949a180f5382a72406f128a6d3894e5d8f0317f -
Branch / Tag:
refs/tags/v0.21.0 - Owner: https://github.com/pacepace
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@5949a180f5382a72406f128a6d3894e5d8f0317f -
Trigger Event:
push
-
Statement type:
File details
Details for the file 3tears_datasources-0.21.0-py3-none-any.whl.
File metadata
- Download URL: 3tears_datasources-0.21.0-py3-none-any.whl
- Upload date:
- Size: 95.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
86f69077ff6ae509a0fa70dd5dda5690cf21029d2525f30c971e7272d2b7258d
|
|
| MD5 |
38880f0398bd1890587fc0773756c0ae
|
|
| BLAKE2b-256 |
abdf9b2bf95c85fc4d2103d80d9f9607b974056439231d3970be8727c174fde0
|
Provenance
The following attestation bundles were made for 3tears_datasources-0.21.0-py3-none-any.whl:
Publisher:
release.yml on pacepace/3tears
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
3tears_datasources-0.21.0-py3-none-any.whl -
Subject digest:
86f69077ff6ae509a0fa70dd5dda5690cf21029d2525f30c971e7272d2b7258d - Sigstore transparency entry: 2274647324
- Sigstore integration time:
-
Permalink:
pacepace/3tears@5949a180f5382a72406f128a6d3894e5d8f0317f -
Branch / Tag:
refs/tags/v0.21.0 - Owner: https://github.com/pacepace
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@5949a180f5382a72406f128a6d3894e5d8f0317f -
Trigger Event:
push
-
Statement type: