Skip to content
This repository was archived by the owner on Jun 21, 2025. It is now read-only.

Commit bd2831b

Browse files
feat: move to redis-py (#217)
* feat: move to redis-py Fixes #215 aioredis-py has been migrated into redis-py as of the 4.2.0 release line. This replaces aioredis-py with redis-py ^4.34.0 * docs: update README with redis-py dependency
1 parent ba24614 commit bd2831b

File tree

6 files changed

+14
-33
lines changed

6 files changed

+14
-33
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ repos:
5555
types: [text]
5656
stages: [commit, push, manual]
5757
- repo: https://github.com/pre-commit/mirrors-prettier
58-
rev: v2.5.1
58+
rev: v2.7.1
5959
hooks:
6060
- id: prettier
6161
- repo: https://github.com/rhysd/actionlint

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ Inspired by
2323

2424
## Main Dependencies
2525

26-
- [Python +3.6](https://www.python.org)
27-
- [aioredis 2.0](https://aioredis.readthedocs.io/en/latest/)
26+
- [Python +3.7](https://www.python.org)
27+
- [redis-py <4.3.0](https://github.com/redis/redis-py)
2828
- [pydantic](https://github.com/samuelcolvin/pydantic/)
2929

3030
## Getting Started

poetry.lock

Lines changed: 8 additions & 27 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pydantic_aioredis/abstract.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
from typing import Union
1515
from uuid import UUID
1616

17-
import aioredis
1817
from pydantic import BaseModel
1918
from pydantic.fields import SHAPE_DEFAULTDICT
2019
from pydantic.fields import SHAPE_DICT
@@ -26,6 +25,7 @@
2625
from pydantic.fields import SHAPE_TUPLE
2726
from pydantic.fields import SHAPE_TUPLE_ELLIPSIS
2827
from pydantic_aioredis.config import RedisConfig
28+
from redis import asyncio as aioredis
2929

3030
# JSON_DUMP_SHAPES are object types that are serialized to JSON using json.dumps
3131
JSON_DUMP_SHAPES = (

pydantic_aioredis/store.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
from typing import Dict
44
from typing import Optional
55

6-
import aioredis
76
from pydantic_aioredis.abstract import _AbstractStore
87
from pydantic_aioredis.config import RedisConfig
98
from pydantic_aioredis.model import Model
9+
from redis import asyncio as aioredis
1010

1111

1212
class Store(_AbstractStore):

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Changelog = "https://github.com/andrewthetechie/pydantic-aioredis/releases"
2727
[tool.poetry.dependencies]
2828
python = "^3.7"
2929
pydantic = "^1.8.2"
30-
aioredis = "^2.0.0"
30+
redis = "^4.3.4"
3131

3232
[tool.poetry.extras]
3333
FastAPI= ['fastapi>=0.63.0']

0 commit comments

Comments
 (0)