redis-om-python
redis-om-python copied to clipboard
Object mapping, and more, for Redis and Python
Updates the requirements on [tox](https://github.com/tox-dev/tox) to permit the latest version. Release notes Sourced from tox's releases. 4.11.3 What's Changed docs(plugin): explain plugin registration by @hashar in tox-dev/tox#3116 Fix error caused...
I was unable to find an explanation of how None values are handled. I've looked through the docs and [hashmodel tests](https://github.com/redis/redis-om-python/blob/1213ca7373ba4f1347a5298e7f6f63cb09949ad2/tests/test_hash_model.py) and did not find any explicit things regarding `None`...
I have a model like this: ```python class City(JsonModel): country_id: str = Field(index=True) region_id: str | None = Field(index=True) ``` How do I query for a city in a specific...
Updates the requirements on [more-itertools](https://github.com/more-itertools/more-itertools) to permit the latest version. Release notes Sourced from more-itertools's releases. Version 10.1.0 What's Changed Add more tests for zip_broadcast() by @kalekundert in more-itertools/more-itertools#739 Added...
Hi, I've tripped over how the `.pk` property works for Models. Consider this: ```pycon >>> from redis_om import HashModel, Field, Migrator ... ... class A(HashModel): ... x: int ... ......
I am trying to use the tags feature along with KNN vector search, so for example, a query searching for all albums where ``` (Genre:rock AND Decade: 60s) OR (Genre:rock...
We are currently trying to get Redis-om to work with redis-search for knn search on a HashModel. Our model is the following: ```python class Document(HashModel): vector: float = Field( vector_options=VectorFieldOptions.flat(...
Hi, I added new constant value `__INCOMPLETE` as default value for optional parameters and then added a new optional parameter named `default` to `get` function. When user pass value to...
Concerning https://github.com/redis/redis-om-python/blob/main/docs/connections.md#connection-objects Module level imports and creation of redis clients might not be co-routine safe : https://github.com/redis/redis-py/issues/2835 Is it possible to augment providing a redis connection directly, and instead provide...
Fix for #519: * When `RedisModel.Meta.database` has not been set, the meta class won't set it. No DB connection is configured or opened. * When `MyRedisModel.db()` is called, the old...