Skip to main content

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.11+
  • PostgreSQL
  • A dedicated schema for Taut and SimpleBroker tables
  • Core distribution taut-chat and extension taut-pg installed 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.

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, runs shared Taut tests against Postgres, runs pg_only extension tests, and removes the container.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

taut_pg-0.9.3.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

taut_pg-0.9.3-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

File details

Details for the file taut_pg-0.9.3.tar.gz.

File metadata

  • Download URL: taut_pg-0.9.3.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for taut_pg-0.9.3.tar.gz
Algorithm Hash digest
SHA256 75aa69d47d16d173f46e892f07d83fc7243c55ba8a2b4e81e01d8bbf2cf90ddd
MD5 b34f58fab19cf4efe449f8b86946d17b
BLAKE2b-256 ac91ee59b4ccd5113c31069808351b579569c427c1af136b2a112b3c3b8eb027

See more details on using hashes here.

Provenance

The following attestation bundles were made for taut_pg-0.9.3.tar.gz:

Publisher: release-gate-pg.yml on VanL/taut

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file taut_pg-0.9.3-py3-none-any.whl.

File metadata

  • Download URL: taut_pg-0.9.3-py3-none-any.whl
  • Upload date:
  • Size: 10.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for taut_pg-0.9.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ea2e334afd6a555eff14695d7c1399acb1837e4e36faff25bd3e70b00e7805b5
MD5 5fefb0575c5ced7e1d29241809be61c3
BLAKE2b-256 f40ab6c0d32c9f3720cece6a8cb549100987c2ae558cd71051ecd9b19cc6de81

See more details on using hashes here.

Provenance

The following attestation bundles were made for taut_pg-0.9.3-py3-none-any.whl:

Publisher: release-gate-pg.yml on VanL/taut

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.9.5

2 files

0.9.4

2 files

This release

0.9.3 This release

2 files

0.9.2

2 files

0.9.1

2 files

0.9.0

2 files

0.8.7

2 files

0.8.6

2 files

0.8.5

2 files

0.8.2

2 files

0.8.1

2 files

0.8.0

2 files

0.7.1

2 files

0.7.0

2 files

0.6.7

2 files

0.6.6

2 files

0.6.5

2 files

0.6.4

2 files

0.6.2

2 files

0.6.1

2 files

0.6.0

2 files

0.5.4

2 files

0.5.3

2 files

0.5.2

2 files

0.5.1

2 files

0.5.0

2 files

0.2.1

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page