taut-pg
Postgres support package for Taut.
This package is intentionally separate from the core taut-chat
distribution. It installs simplebroker-pg in the same environment as the
taut CLI so .taut.toml can select the public SimpleBroker Postgres
backend.
Requirements
- Python 3.12+
- PostgreSQL
simplebroker-pg>=4.8.1(installed automatically bytaut-pg)- A dedicated schema for Taut and SimpleBroker tables
- Core distribution
taut-chatand extensiontaut-pginstalled in the same environment
The Postgres database must already exist. taut init initializes the configured
schema and tables inside that database; it does not create the database.
simplebroker-pg>=4.8.1 scopes per-queue PostgreSQL LISTEN/NOTIFY channels
to the exact queue set registered with SimpleBroker's activity waiter. On shared
PostgreSQL targets, upgrade long-lived watchers (taut watch, Summon drivers,
taut-mcp, taut-tui) before or alongside taut-pg 4.8+ writers:
simplebroker-pg 4.7.x listeners subscribe only to the schema-wide channel and
rely on their 30–60 second safety recheck until upgraded.
The package also supplies Taut's PostgreSQL search provider. It uses only
PostgreSQL's built-in tsvector, pg_catalog.simple configuration, GIN, and
advisory locks. It never requires CREATE EXTENSION or a separately compiled
server extension.
Installation
The core distribution is taut-chat; it still installs the taut command and
import package. taut-pg keeps its own distribution name and
taut_pg/vX.Y.Z tag stream. Once the first coordinated PyPI release is
published:
pipx install taut-chat
pipx inject taut-chat taut-pg
The tag gate reuses the exact wheel and sdist built by canonical Test. It
stages them in a draft GitHub Release, publishes them through the
taut-pg top-level PyPI Trusted Publisher, verifies filenames and SHA-256
digests, and only then publishes the GitHub Release as immutable.
Configuration
Create .taut.toml in the project root:
version = 1
backend = "postgres"
target = "postgresql://postgres:postgres@127.0.0.1:54329/taut_test"
[backend_options]
schema = "taut_project"
The credentials above are for a disposable local test database. A real target
DSN may contain a password and must be treated as a secret. If .taut.toml
contains one, add the file to your project's .gitignore, do not commit
production credentials, and restrict it to the owner on POSIX systems (for
example, chmod 600 .taut.toml). Taut does not interpolate environment
variables in this file.
Then initialize Taut normally:
taut init
taut join general
taut init initializes the configured schema and tables; it does not
provision the database. taut init --json reports db as the resolved
backend display target, and for Postgres created is false because
Taut has no public backend creation signal.
TAUT_DB, --db, and db_path= remain filesystem path selectors. Use
.taut.toml to select Postgres.
Testing
From the repository root:
uv run ./bin/pytest-pg
That helper starts a temporary Docker Postgres container, verifies TCP SQL
readiness (SELECT 1), runs shared Taut tests against Postgres, runs pg_only
extension tests, prints container logs on failure, and removes the container
and its anonymous volumes.
Metadata
Release files for taut-pg 0.9.12
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 |
|---|---|---|---|---|
| taut_pg-0.9.12.tar.gz | 7.7 kB | With provenance | Details for taut_pg-0.9.12.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| taut_pg-0.9.12-py3-none-any.whl | Python 3 | none | any | Details for taut_pg-0.9.12-py3-none-any.whl |
Total release size: 19.2 kB
Release files / taut_pg-0.9.12.tar.gz
| Download URL | taut_pg-0.9.12.tar.gz |
|---|---|
| Size | 7.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4c0754013d030abe0943796fa2683182e237cc42b523884ad9d0299463486d38
|
|
BLAKE2b-256 checksum How to use checksums |
6945caacdb0327c9ffc65bacec7b284aa0c7a3b0cce3b3812b1a4e6ea5252c0c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 11, 2026.
Transparency logRelease files / taut_pg-0.9.12-py3-none-any.whl
| Download URL | taut_pg-0.9.12-py3-none-any.whl |
|---|---|
| Size | 11.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
41e38003006a9cba5376d7917d9101a258605c04ec40c96ceda54feafbef0558
|
|
BLAKE2b-256 checksum How to use checksums |
d151f41bfd86871ceb43baf3d8dfea40449fc3a3c5dba52da9441b110814fac8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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 Nov 11, 2026.
Transparency logSecurity for taut-pg 0.9.12
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 taut_pg-0.9.12.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 Nov 11, 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.