PostgreSQL storage backend plugin for the Orchid AI framework
Project description
orchid-storage-postgres
PostgreSQL storage backend plugin for the Orchid AI framework.
What it provides
OrchidPostgresChatStorage— implementsOrchidChatStoragebacked by PostgreSQL (asyncpg)- PostgreSQL visibility fragment for
build_run_filter_clause - PostgreSQL schema migration (v001)
Installation
pip install orchid-storage-postgres
Usage
Reference in your orchid.yml:
storage:
class: orchid_storage_postgres.chat_storage.OrchidPostgresChatStorage
dsn: postgresql://user:pass@localhost:5432/orchid
Or build it programmatically:
from orchid_storage_postgres import OrchidPostgresChatStorage
storage = OrchidPostgresChatStorage(dsn="postgresql://user:pass@localhost:5432/orchid")
await storage.init_db()
Development
cd orchid-storage-postgres
pip install -e ".[dev]"
pytest tests/ -x
ruff check orchid_storage_postgres/
License
MIT
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 orchid_storage_postgres-1.0.1.tar.gz.
File metadata
- Download URL: orchid_storage_postgres-1.0.1.tar.gz
- Upload date:
- Size: 10.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3da3082c82d5008891b4cdb45bb7d881df91c85b51ffca97b20259887a945598
|
|
| MD5 |
efc2070908665cfe6d6c0c592f317299
|
|
| BLAKE2b-256 |
9abc8a62539d8e538fec992b76e36f3ba1d8e6ce2a34a23b9f3b7db0dd8a9084
|
Provenance
The following attestation bundles were made for orchid_storage_postgres-1.0.1.tar.gz:
Publisher:
ci.yml on gadz82/orchid-storage-postgres
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
orchid_storage_postgres-1.0.1.tar.gz -
Subject digest:
3da3082c82d5008891b4cdb45bb7d881df91c85b51ffca97b20259887a945598 - Sigstore transparency entry: 1635452472
- Sigstore integration time:
-
Permalink:
gadz82/orchid-storage-postgres@c6fd8bfc2f61ba151b46fd30cf62945254170df6 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/gadz82
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@c6fd8bfc2f61ba151b46fd30cf62945254170df6 -
Trigger Event:
push
-
Statement type:
File details
Details for the file orchid_storage_postgres-1.0.1-py3-none-any.whl.
File metadata
- Download URL: orchid_storage_postgres-1.0.1-py3-none-any.whl
- Upload date:
- Size: 8.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2568eb3af357e3ce126be8a9b406420644b643a76f27ddfb2910257869ce31ea
|
|
| MD5 |
b3c79ea42ab30634db7ba36a04fb20ca
|
|
| BLAKE2b-256 |
535ff76e4b81f10b2ff08a6a4033e41d618d7469181617d141fad8f988500e12
|
Provenance
The following attestation bundles were made for orchid_storage_postgres-1.0.1-py3-none-any.whl:
Publisher:
ci.yml on gadz82/orchid-storage-postgres
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
orchid_storage_postgres-1.0.1-py3-none-any.whl -
Subject digest:
2568eb3af357e3ce126be8a9b406420644b643a76f27ddfb2910257869ce31ea - Sigstore transparency entry: 1635452474
- Sigstore integration time:
-
Permalink:
gadz82/orchid-storage-postgres@c6fd8bfc2f61ba151b46fd30cf62945254170df6 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/gadz82
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@c6fd8bfc2f61ba151b46fd30cf62945254170df6 -
Trigger Event:
push
-
Statement type: