Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

opsmate-tool-postgres

opsmate-tool-postgres is a tool for Opsmate that allows you to interact with PostgreSQL databases with the assistance of a LLM.

Installation

Change directory to this folder and run:

opsmate install opsmate-tool-postgres

To verify the installation, you can run:

$ opsmate list-tools | grep -i postgres
│ PostgresTool        │ PostgreSQL tool

Usage

First, start the PostgreSQL server using docker-compose:

docker compose -f fixtures/docker-compose.yml up

Then you can test the tool by running:

opsmate chat \
  --runtime-postgres-password postgres \
  --runtime-postgres-host localhost \
  --runtime-postgres-database ecommerce \
  --runtime-postgres-schema ecommerce \
  --tools PostgresTool

Configurable oOptions

$ opsmate chat --help | grep -i postgres
  --postgres-tool-runtime TEXT    The runtime to use for the tool call (env:
                                  POSTGRES_TOOL_RUNTIME)  [default: postgres]
  --runtime-postgres-timeout INTEGER
                                  The timeout of the PostgreSQL server in
                                  seconds (env: RUNTIME_POSTGRES_TIMEOUT)
  --runtime-postgres-schema TEXT  The schema of the PostgreSQL server (env:
                                  RUNTIME_POSTGRES_SCHEMA)  [default: public]
  --runtime-postgres-database TEXT
                                  The database of the PostgreSQL server (env:
                                  RUNTIME_POSTGRES_DATABASE)
  --runtime-postgres-password TEXT
                                  The password of the PostgreSQL server (env:
                                  RUNTIME_POSTGRES_PASSWORD)  [default: ""]
  --runtime-postgres-user TEXT    The user of the PostgreSQL server (env:
                                  RUNTIME_POSTGRES_USER)  [default: postgres]
  --runtime-postgres-port INTEGER
                                  The port of the PostgreSQL server (env:
                                  RUNTIME_POSTGRES_PORT)  [default: 5432]
  --runtime-postgres-host TEXT    The host of the PostgreSQL server (env:
                                  RUNTIME_POSTGRES_HOST)  [default: localhost]

Uninstall

opsmate uninstall -y opsmate-tool-postgres

Metadata

Release files for opsmate-tool-postgres 0.1.0a0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for opsmate-tool-postgres 0.1.0a0
File Size Uploaded
opsmate_tool_postgres-0.1.0a0.tar.gz 14.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for opsmate-tool-postgres 0.1.0a0
File Interpreter ABI Platform
opsmate_tool_postgres-0.1.0a0-py3-none-any.whl Python 3 none any Details

Total release size: 20.6 kB

Release files / opsmate_tool_postgres-0.1.0a0.tar.gz

Download URL opsmate_tool_postgres-0.1.0a0.tar.gz
Size 14.1 kB
Tags Source
SHA-256 checksum
How to use checksums
09d2433dfb1528261ae7b568df1f715e1f293238e8ae080ef299ae3ef7c97f12
BLAKE2b-256 checksum
How to use checksums
0d435d2cb64e90e201660c31595b21a144e258ca555b87a26f7a470a7a56a07d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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 Apr 10, 2025.

Transparency log

Release files / opsmate_tool_postgres-0.1.0a0-py3-none-any.whl

Download URL opsmate_tool_postgres-0.1.0a0-py3-none-any.whl
Size 6.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f345a7680e447f5ebf0bf56e55486dad3792e289d29af321f2e6ac6befe03a94
BLAKE2b-256 checksum
How to use checksums
1255619e4cf8a801f7125dd3b57815cb75b57cbd3b9f6190baac64c59232aeb8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

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 Apr 10, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.0a0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page