Skip to main content

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 — implements OrchidChatStorage backed 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

orchid_storage_postgres-1.0.1.tar.gz (10.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

orchid_storage_postgres-1.0.1-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

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

Hashes for orchid_storage_postgres-1.0.1.tar.gz
Algorithm Hash digest
SHA256 3da3082c82d5008891b4cdb45bb7d881df91c85b51ffca97b20259887a945598
MD5 efc2070908665cfe6d6c0c592f317299
BLAKE2b-256 9abc8a62539d8e538fec992b76e36f3ba1d8e6ce2a34a23b9f3b7db0dd8a9084

See more details on using hashes here.

Provenance

The following attestation bundles were made for orchid_storage_postgres-1.0.1.tar.gz:

Publisher: ci.yml on gadz82/orchid-storage-postgres

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file orchid_storage_postgres-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for orchid_storage_postgres-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2568eb3af357e3ce126be8a9b406420644b643a76f27ddfb2910257869ce31ea
MD5 b3c79ea42ab30634db7ba36a04fb20ca
BLAKE2b-256 535ff76e4b81f10b2ff08a6a4033e41d618d7469181617d141fad8f988500e12

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page