/plushcap/analysis/redis/redis-introducing-redis-om-for-python

Introducing Redis OM for Python

What's this blog post about?

Redis OM for Python is a new developer-centric library that provides object mapping, data validation, and other features. It allows users to model data with declarative models similar to SQLAlchemy, Peewee, and the Django ORM. The library also supports fluent query expressions and secondary indexes, as well as both asynchronous (asyncio) and synchronous programming in the same library. Redis OM for Python includes two base model classes: HashModel and JsonModel, which store data in Redis Hashes or natively as JSON objects, respectively. The library also generates globally unique primary keys using the ULID specification and provides Pydantic validation based on type hints in models. Additionally, it supports querying for data based on attributes other than the primary key through fluent query expressions built on top of RediSearch, a source-available module that gives Redis querying and indexing capabilities.

Company
Redis

Date published
Dec. 8, 2021

Author(s)
Andrew Brookins

Word count
1728

Hacker News points
None found.

Language
English


By Matt Makai. 2021-2024.