$npx skillfedfor your agent

llama-index-storage-kvstore-postgres

llama-index kvstore postgres integration

With conditionsPyPI DatabaseReleased Mar 2026151.0K downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — llama_index_storage_kvstore_postgres-0.5.0-py3-none-any.whl
v0.5.0 · released 2026-03-12 · Python <4.0,>=3.10 · 3 runtime deps: asyncpg, llama-index-core, psycopg2-binary

Yes, if you are building a LlamaIndex application that requires persistent storage and already use or plan to use PostgreSQL. The low install friction, permissive license, and active maintenance make it a straightforward choice for that use case. Not necessary if you are prototyping with in-memory storage or using a different kvstore backend.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.10 or later; PostgreSQL server must be accessible at connection time.
  • Low install friction with three straightforward runtime dependencies.
  • Active maintenance status as of March 2026, though repository metadata is not publicly available for independent verification.

License · maintenance · safety

MIT (permissive) — MIT license permits commercial and private use with minimal restrictions; suitable for most deployment contexts.

last release 2026-03-12 (155 days)

0 known vulnerabilities (OSV.dev, 2026-08-14) · 151,031 downloads/mo, #10,946 on PyPI

Verify before relying

pip install llama-index-storage-kvstore-postgres

from llama_index.storage.kvstore.postgres import PostgresKVStore

kvstore = PostgresKVStore.from_connection_string(
    "postgresql://user:password@localhost/dbname"
)
  • Whether this package is actively maintained by LlamaIndex maintainers or the broader community
  • Performance characteristics and scalability limits for large-scale kvstore operations
  • Whether asyncpg and psycopg2-binary can coexist without conflicts in the same environment
Same gist for agents: .md · .json

What it is and what it does

This package is a storage adapter that connects LlamaIndex to PostgreSQL, allowing you to persist key-value data (such as indexed documents and embeddings) in a relational database instead of memory or local files. It bridges LlamaIndex's kvstore abstraction layer with PostgreSQL, using asyncpg for async operations and psycopg2-binary for synchronous access.

Typically used when building LlamaIndex applications that need durable, queryable storage across application restarts or when sharing indexed data across multiple processes. The package handles the schema and connection logic, so you interact with it through LlamaIndex's standard kvstore interface rather than writing SQL directly.

Use it for

  • Store and retrieve embeddings and indexed documents in PostgreSQL for production LlamaIndex applications
  • Share indexed data across multiple LlamaIndex workers or services via a central PostgreSQL database
  • Persist LlamaIndex caches and metadata durably across application restarts without rebuilding indexes
  • Integrate LlamaIndex with existing PostgreSQL infrastructure in enterprise environments

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you are building a LlamaIndex application that requires persistent storage and already use or plan to use PostgreSQL.

The low install friction, permissive license, and active maintenance make it a straightforward choice for that use case. Not necessary if you are prototyping with in-memory storage or using a different kvstore backend.

Install

llama-index-storage-kvstore-postgres on PyPI

Before you install

Low install friction with three straightforward runtime dependencies. Active maintenance status as of March 2026, though repository metadata is not publicly available for independent verification.

Requires Python 3.10 or later; PostgreSQL server must be accessible at connection time.

License in practice

MIT license permits commercial and private use with minimal restrictions; suitable for most deployment contexts.

Quickstart

pip install llama-index-storage-kvstore-postgres

from llama_index.storage.kvstore.postgres import PostgresKVStore

kvstore = PostgresKVStore.from_connection_string(
    "postgresql://user:password@localhost/dbname"
)

Verify before relying

  • Whether this package is actively maintained by LlamaIndex maintainers or the broader community
  • Performance characteristics and scalability limits for large-scale kvstore operations
  • Whether asyncpg and psycopg2-binary can coexist without conflicts in the same environment

Package facts

LicenseMIT permissive
Python supportSupports the current Python release <4.0,>=3.10
Install frictionLow. Pure-Python wheel
Runtime dependencies
3 packages
asyncpgllama-index-corepsycopg2-binary
MaintenanceActively maintained 155 days since the last release
First released
Downloads151,031 / month, #10,946 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14

Evidence: llama_index_storage_kvstore_postgres-0.5.0-py3-none-any.whl

Tags

Capabilities
llama-index postgres storagekvstore postgresql integrationllama-index persistent storagepostgres key-value storellama-index database backend
Topics
llama-index-integrationvector-storage

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “kvstore postgresql integration”

Give your agent the search over MCP, or paste the wish link into any chat.

More Database packages

psycopg2-binary Worth it
PyPI · Software Development · released Apr 2026

psycopg2-binary is a PostgreSQL database adapter for Python that implements the DB API 2.0 specification, enabling Python applications to connect to and query PostgreSQL databases with thread-safe concurrent operations.

copyleftcompiled wheel · 3.9+
271.6Mdownloads / mo
redis Worth it
PyPI · Database · released Jul 2026

Python client library for connecting to and executing commands against Redis key-value stores, supporting both synchronous and asynchronous operations.

Install it if your application needs to interact with Redis; the only prerequisite is a running Redis server instance.

MITpure Python · 3.10+
268.3Mdownloads / mo
ydb Worth it
PyPI · Database · released Jul 2026

YDB Python SDK is the official client library for connecting to and querying YDB databases from Python applications.

Install it if you need to connect Python applications to YDB databases.

permissive licensepure Python · 3.10+
210.0Mdownloads / mo
snowflake-connector-python Worth it
PyPI · Software Development · released Aug 2026

Connects Python applications to Snowflake data warehouses using the DB API 2.0 specification, enabling SQL queries, data transfers, and warehouse operations.

Apache-2.0compiled wheel · 3.10+
193.6Mdownloads / mo
sqlparse Worth it
PyPI · Software Development · released Aug 2026

sqlparse tokenizes SQL text into a tree of statements, clauses, and expressions, and provides functions to split scripts, format queries, and inspect parsed tokens without validating dialect or syntax.

Install it if you need to manipulate, format, or analyze SQL text programmatically.

BSD-3-Clausepure Python · 3.10+
148.9Mdownloads / mo
dbt-adapters With conditions
PyPI · Database · released Jul 2026

Provides base adapter protocols and shared functionality that database adapters use to integrate with dbt-core, handling connections, dialect translation, relation caching, and core interface management.

Apache-2.0pure Python · 3.10.0+
121.3Mdownloads / mo

See also llama-index-storage-docstore-postgres · tentaclio-postgres · llama-index-vector-stores-chroma · llama-index-vector-stores-redis · llama-index-vector-stores-lancedb · llama-index-vector-stores-qdrant · llama-index-vector-stores-milvus · llama-index-embeddings-langchain · beam-nuggets · pipestat