Skip to main content

taut-pg

Postgres support package for Taut.

This package is intentionally separate from taut. 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 taut and 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.

Installation

Taut releases are GitHub-only until package-name clearance changes. Install the core package first, then inject a compatible extension wheel from the extension GitHub Release into the same environment. taut-pg uses its own taut_pg/vX.Y.Z tag stream, so its version can differ from the core package version:

pipx install "git+https://github.com/VanL/taut.git@v0.6.7"
pipx inject taut ./taut_pg-0.6.7-py3-none-any.whl

Do not use a PyPI install command for taut-pg until the project documents PyPI publication.

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_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.6.7.tar.gz (2.8 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.6.7-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: taut_pg-0.6.7.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.0 {"installer":{"name":"uv","version":"0.12.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for taut_pg-0.6.7.tar.gz
Algorithm Hash digest
SHA256 f2791df2512af49a598bfa6969d7a3a07f3b2e826e4a06d7889f91fa4e0ce0c8
MD5 22aa004b0839ed11d99326a992e6bab9
BLAKE2b-256 ed304feebc426d78537c414135604df91893fd862d0d0cf3c561cbdc82c42457

See more details on using hashes here.

File details

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

File metadata

  • Download URL: taut_pg-0.6.7-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.0 {"installer":{"name":"uv","version":"0.12.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for taut_pg-0.6.7-py3-none-any.whl
Algorithm Hash digest
SHA256 c86a89e373df895e053cff04135a482683bd67474eca8f2981dfa5f01f5e3626
MD5 109f3cd3550723f069080c8baa86a9ec
BLAKE2b-256 46184b41ccafa18270c1a7cb1b245e25b88a5e62716741a7845706a04d1ad028

See more details on using hashes here.

Release history Release notifications | RSS feed

0.9.5

2 files

0.9.4

2 files

0.9.3

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

This release

0.6.7 This release

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