$npx skillfedfor your agent

redis-om

Object mappings, and more, for Redis.

With conditionsPyPI DatabaseReleased Mar 2026242.9K downloads / moBSD-3-ClausePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — redis_om-1.1.0-py3-none-any.whl
v1.1.0 · released 2026-03-13 · Python <4.0,>=3.10 · 11 runtime deps: click, hiredis, more-itertools, pydantic-extra-types, pydantic, python-ulid, redis, redisvl

Yes, if you are already using Redis and want to avoid raw key-value code. The library is actively maintained, has no security vulnerabilities, and low install friction. It is worth installing for projects that benefit from Pydantic validation and declarative models; however, confirm that your Redis deployment includes RediSearch and RedisJSON if you need advanced querying beyond basic save/get operations.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires a running Redis instance (e.g., via docker run -p 6379:6379 redis/redis-stack).
  • RediSearch and RedisJSON modules are optional but needed for advanced querying with find().
  • Low friction: pure Python wheel with no compiled dependencies.

License · maintenance · safety

BSD-3-Clause (permissive) — BSD-3-Clause is permissive; you can use this in commercial and proprietary projects with minimal restrictions, provided you include the license text and do not misrepresent authorship.

last release 2026-03-13 (154 days) · last repo commit 2026-08-09 · 1,314 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 242,878 downloads/mo, #8,832 on PyPI

Verify before relying

pip install redis-om

from redis_om import HashModel
from pydantic import EmailStr
import datetime

class Customer(HashModel):
    first_name: str
    email: EmailStr
    join_date: datetime.date

customer = Customer(
    first_name="Alice",
    email="alice@example.com",
    join_date=datetime.date.today()
)
customer.save()
retrieved = Customer.get(customer.pk)
  • Whether RediSearch and RedisJSON modules are required for basic object mapping or only for advanced query features
  • Performance characteristics when working with large datasets or high-throughput scenarios
  • Compatibility guarantees with different Redis versions or Redis Enterprise
Same gist for agents: .md · .json

What it is and what it does

Redis OM is a Python library that bridges Pydantic models and Redis storage, letting you define data schemas as Python classes with type annotations and automatically handle serialization, validation, and persistence. It generates unique primary keys, manages expiration, and provides fluent query APIs when RediSearch is available. The library sits on top of the redis client and integrates Pydantic's validation system, so any Pydantic validator (like EmailStr) works as a field type. Basic operations—creating, saving, retrieving, and expiring objects—work with any Redis instance; richer query expressions and embedded models require RediSearch and RedisJSON modules.

You define a model by subclassing HashModel or other base classes, annotate fields with Python types, then call save() to persist to Redis and use class methods like get() or find() to retrieve data. The library automatically manages indexes when configured and handles the Redis protocol details, so you work with Python objects rather than raw key-value commands.

Use it for

  • Build a user or customer database in Redis with automatic validation and type safety using Pydantic field types like EmailStr.
  • Query Redis data using Python expressions (e.g., Customer.find(Customer.age > 30)) when RediSearch is installed.
  • Persist application state or cache objects with automatic expiration and unique key generation without manual Redis commands.
  • Define nested data structures with embedded models and let Redis OM handle serialization to Redis hashes or JSON.
  • Migrate from a traditional ORM to Redis while keeping familiar declarative model syntax and validation rules.

Worth the install?

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

With conditions

Yes, if you are already using Redis and want to avoid raw key-value code.

The library is actively maintained, has no security vulnerabilities, and low install friction. It is worth installing for projects that benefit from Pydantic validation and declarative models; however, confirm that your Redis deployment includes RediSearch and RedisJSON if you need advanced querying beyond basic save/get operations.

Install

redis-om on PyPI

Before you install

Low friction: pure Python wheel with no compiled dependencies. Actively maintained with recent commits and a stable release cycle. Requires Python 3.10 or later and a Redis instance with optional RediSearch and RedisJSON modules for advanced querying.

Requires a running Redis instance (e.g., via docker run -p 6379:6379 redis/redis-stack). RediSearch and RedisJSON modules are optional but needed for advanced querying with find().

License in practice

BSD-3-Clause is permissive; you can use this in commercial and proprietary projects with minimal restrictions, provided you include the license text and do not misrepresent authorship.

Quickstart

pip install redis-om

from redis_om import HashModel
from pydantic import EmailStr
import datetime

class Customer(HashModel):
    first_name: str
    email: EmailStr
    join_date: datetime.date

customer = Customer(
    first_name="Alice",
    email="alice@example.com",
    join_date=datetime.date.today()
)
customer.save()
retrieved = Customer.get(customer.pk)

Verify before relying

  • Whether RediSearch and RedisJSON modules are required for basic object mapping or only for advanced query features
  • Performance characteristics when working with large datasets or high-throughput scenarios
  • Compatibility guarantees with different Redis versions or Redis Enterprise

Package facts

LicenseBSD-3-Clause permissive
Python supportSupports the current Python release <4.0,>=3.10
Install frictionLow. Pure-Python wheel
Runtime dependencies
11 packages
clickhiredismore-itertoolspydantic-extra-typespydanticpython-ulidredisredisvlsetuptoolstypes-redistyping-extensions
MaintenanceActively maintained 154 days since the last release
Last repo commit
First released
Downloads242,878 / month, #8,832 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableEnvironment :: ConsoleIntended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Topic :: Database

Evidence: redis_om-1.1.0-py3-none-any.whl

Tags

Capabilities
redis object mapping pythonredis orm pydantic modelsredis data validation serializationredis query builder pythonredis hash model persistenceredis secondary indexesredis declarative models
Topics
ormredis-clientpydantic-integration

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 › “redis object mapping python”

  • redis-omRedis OM provides declarative object mapping and data validation for…
  • google-cloud-ndbNDB is a Python 3 client library for Google Cloud Datastore that…
  • py-automapperAutomatically maps object fields from one class to another, handling…

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 sqlmodel · jsonschema-pydantic-converter · jambo · SQLAlchemy · redis-simple-mq · param · json-schema-to-pydantic · langgraph-checkpoint-redis · ormar · dataclasses-avroschema