PostgreSQL tool for opsmate
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file opsmate_tool_postgres-0.1.0a0.tar.gz.
File metadata
- Download URL: opsmate_tool_postgres-0.1.0a0.tar.gz
- Upload date:
- Size: 14.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
09d2433dfb1528261ae7b568df1f715e1f293238e8ae080ef299ae3ef7c97f12
|
|
| MD5 |
e3d2f378af8b2066de6f74115015d366
|
|
| BLAKE2b-256 |
0d435d2cb64e90e201660c31595b21a144e258ca555b87a26f7a470a7a56a07d
|
Provenance
The following attestation bundles were made for opsmate_tool_postgres-0.1.0a0.tar.gz:
Publisher:
publish.yml on jingkaihe/opsmate
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
opsmate_tool_postgres-0.1.0a0.tar.gz -
Subject digest:
09d2433dfb1528261ae7b568df1f715e1f293238e8ae080ef299ae3ef7c97f12 - Sigstore transparency entry: 195112071
- Sigstore integration time:
-
Permalink:
jingkaihe/opsmate@feef2fedc05d8306a62cf4a4d02d4c82ed4af58e -
Branch / Tag:
refs/heads/main - Owner: https://github.com/jingkaihe
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@feef2fedc05d8306a62cf4a4d02d4c82ed4af58e -
Trigger Event:
push
-
Statement type:
File details
Details for the file opsmate_tool_postgres-0.1.0a0-py3-none-any.whl.
File metadata
- Download URL: opsmate_tool_postgres-0.1.0a0-py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f345a7680e447f5ebf0bf56e55486dad3792e289d29af321f2e6ac6befe03a94
|
|
| MD5 |
21f152642ddc6c0733da458742516534
|
|
| BLAKE2b-256 |
1255619e4cf8a801f7125dd3b57815cb75b57cbd3b9f6190baac64c59232aeb8
|
Provenance
The following attestation bundles were made for opsmate_tool_postgres-0.1.0a0-py3-none-any.whl:
Publisher:
publish.yml on jingkaihe/opsmate
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
opsmate_tool_postgres-0.1.0a0-py3-none-any.whl -
Subject digest:
f345a7680e447f5ebf0bf56e55486dad3792e289d29af321f2e6ac6befe03a94 - Sigstore transparency entry: 195112080
- Sigstore integration time:
-
Permalink:
jingkaihe/opsmate@feef2fedc05d8306a62cf4a4d02d4c82ed4af58e -
Branch / Tag:
refs/heads/main - Owner: https://github.com/jingkaihe
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@feef2fedc05d8306a62cf4a4d02d4c82ed4af58e -
Trigger Event:
push
-
Statement type: