Toolframe PostgreSQL storage
sql-postgres stores Toolframe plugin data in PostgreSQL. Entry Register,
Auth, MCP Auth and OIDC Auth use a separate schema per plugin inside one database
per application environment. Database access is loaded only from the runtime
process environment; credentials do not belong in toolframe.toml.
This release requires Toolframe SDK 0.4 and Core 0.7. Run one Core per application. Core 0.7 can separately store its management journal in a dedicated PostgreSQL database; SQLite remains the default. Configuration, private keys and artifacts still need a persistent application home. PostgreSQL storage does not make Core stateless or enable multiple replicas. Existing SQLite data is not imported. Plugins are trusted Python code.
Quick start
Use Python 3.14+, PostgreSQL 16+, and pg_dump / pg_restore with the same major
version as the server. PostgreSQL 16 is the integration-test baseline.
Install the host and provider CLI from PyPI:
uv venv --python 3.14.7 .venv
uv pip install --python .venv/bin/python \
toolframe-core==0.7.0 toolframe-sql-postgres==0.2.2
.venv/bin/toolframe-core --home ./app init
Read [application].id from app/toolframe.toml. Supply an administrator DSN from
your secret manager as TOOLFRAME_POSTGRES_SETUP_DSN. It is used only by setup.
The CLI output file contains generated runtime credentials and must remain private.
.venv/bin/toolframe-postgres setup \
--application-id '<id from app/toolframe.toml>' \
--database toolframe_development \
--owner entry-register --owner auth --owner mcp-auth --owner oidc-auth \
--output ./app/.toolframe/postgres-environment.json
unset TOOLFRAME_POSTGRES_SETUP_DSN
Add the provider to app/toolframe.toml:
[plugins.sql-postgres]
source = "pypi:toolframe-sql-postgres==0.2.2"
enabled = true
[bindings]
"toolframe.sql" = "sql-postgres"
This configuration sends every SQL consumer to PostgreSQL. Core builds with
multiple SQL provider support can also run SQLite, using an explicit per-plugin
override such as "entry-register/sql" = "sql-sqlite" in [bindings].
Choose bindings before initializing stores: changing a retained store's provider
is rejected and does not copy data. Earlier Core builds require one enabled
storage provider. The package version alone does not identify multiple-provider
support; build the matching Core revision when using mixed providers.
Install the matching business plugins before enabling them: Entry Register 0.4, Auth 0.3, MCP Auth 0.3 and OIDC Auth 0.3. Each store owner must be provisioned before Core starts its plugin.
.venv/bin/toolframe-postgres run \
--env-file ./app/.toolframe/postgres-environment.json -- \
.venv/bin/toolframe-core --home ./app serve
The run helper exports the private document as environment variables and replaces
itself with Core. It removes setup/test administrator variables. Containers can
inject the same runtime values directly; the provider does not read that file.
- Setup, environment and recovery
- SQL and isolation contract
- Development and verification
- Domain glossary and architecture decisions
For release validation and Trusted Publisher setup, see releasing.
License
Apache-2.0. See LICENSE and NOTICE.
For development hooks and contribution rules, see Contributing.
Plugin dependencies allow compatible SDK 0.x updates from the declared minimum. See the SDK compatibility policy for API guarantees and minimum/latest verification.
Metadata
Release files for toolframe-sql-postgres 0.2.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 |
|---|---|---|---|---|
| toolframe_sql_postgres-0.2.2.tar.gz | 78.1 kB | With provenance | Details for toolframe_sql_postgres-0.2.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| toolframe_sql_postgres-0.2.2-py3-none-any.whl | Python 3 | none | any | Details for toolframe_sql_postgres-0.2.2-py3-none-any.whl |
Total release size: 103.8 kB
Release files / toolframe_sql_postgres-0.2.2.tar.gz
| Download URL | toolframe_sql_postgres-0.2.2.tar.gz |
|---|---|
| Size | 78.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4663adeaa0965fd151c99e9747d52309cb7fa71255f1ae081fbd23094fa01613
|
|
BLAKE2b-256 checksum How to use checksums |
6956cf7aac2db73602db2c533f2bcfe7aeb539f232a364c101b34ab747f16acb
|
| 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 Oct 26, 2026.
Transparency logRelease files / toolframe_sql_postgres-0.2.2-py3-none-any.whl
| Download URL | toolframe_sql_postgres-0.2.2-py3-none-any.whl |
|---|---|
| Size | 25.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
586f4a19cb2c1ea4de225ad89db68628573f61abdb086a3329c283e116cb691d
|
|
BLAKE2b-256 checksum How to use checksums |
bee736e96107850d3779c12d3f3507d87eb39731e068ae400f5423d34f9ff450
|
| 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 Oct 26, 2026.
Transparency logSecurity for toolframe-sql-postgres 0.2.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 toolframe_sql_postgres-0.2.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 Oct 26, 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.