Merge branch 'main' into dependabot/pip/redis-4.0.1
This commit is contained in:
commit
715f699c66
4 changed files with 11 additions and 11 deletions
|
@ -326,9 +326,9 @@ To learn more, read [our documentation](docs/redis_modules.md).
|
||||||
|
|
||||||
We'd love your contributions!
|
We'd love your contributions!
|
||||||
|
|
||||||
**Bug reports** are especially helpful at this stage of the project. [You can open a bug report on GitHub](https://github.com/redis-om/redis-om-python/issues/new).
|
**Bug reports** are especially helpful at this stage of the project. [You can open a bug report on GitHub](https://github.com/redis/redis-om-python/issues/new).
|
||||||
|
|
||||||
You can also **contribute documentation** -- or just let us know if something needs more detail. [Open an issue on GitHub](https://github.com/redis-om/redis-om-python/issues/new) to get started.
|
You can also **contribute documentation** -- or just let us know if something needs more detail. [Open an issue on GitHub](https://github.com/redis/redis-om-python/issues/new) to get started.
|
||||||
|
|
||||||
## 📝 License
|
## 📝 License
|
||||||
|
|
||||||
|
|
|
@ -118,11 +118,11 @@ Next, start the server:
|
||||||
$ poetry run uvicorn --reload main:test
|
$ poetry run uvicorn --reload main:test
|
||||||
|
|
||||||
Then, in another shell, create a customer:
|
Then, in another shell, create a customer:
|
||||||
|
```
|
||||||
$ curl -X POST "http://localhost:8000/customer" -H 'Content-Type: application/json' -d '{"first_name":"Andrew","last_name":"Brookins","email":"a@example.com","age":"38","join_date":"2020
|
$ curl -X POST "http://localhost:8000/customer" -H 'Content-Type: application/json' -d '{"first_name":"Andrew","last_name":"Brookins","email":"a@example.com","age":"38","join_date":"2020
|
||||||
-01-02"}'
|
-01-02"}'
|
||||||
{"pk":"01FM2G8EP38AVMH7PMTAJ123TA","first_name":"Andrew","last_name":"Brookins","email":"a@example.com","join_date":"2020-01-02","age":38,"bio":""}
|
{"pk":"01FM2G8EP38AVMH7PMTAJ123TA","first_name":"Andrew","last_name":"Brookins","email":"a@example.com","join_date":"2020-01-02","age":38,"bio":""}
|
||||||
|
```
|
||||||
Get a copy of the value for "pk" and make another request to get that customer:
|
Get a copy of the value for "pk" and make another request to get that customer:
|
||||||
|
|
||||||
$ curl "http://localhost:8000/customer/01FM2G8EP38AVMH7PMTAJ123TA"
|
$ curl "http://localhost:8000/customer/01FM2G8EP38AVMH7PMTAJ123TA"
|
||||||
|
@ -133,7 +133,7 @@ You can also get a list of all customer PKs:
|
||||||
$ curl "http://localhost:8000/customers"
|
$ curl "http://localhost:8000/customers"
|
||||||
{"customers":["01FM2G8EP38AVMH7PMTAJ123TA"]}
|
{"customers":["01FM2G8EP38AVMH7PMTAJ123TA"]}
|
||||||
|
|
||||||
## Redsi OM with Asyncio
|
## Redis OM with Asyncio
|
||||||
|
|
||||||
Redis OM is designed to work with asyncio, so you can use Redis OM models asynchronously within FastAPI applications.
|
Redis OM is designed to work with asyncio, so you can use Redis OM models asynchronously within FastAPI applications.
|
||||||
|
|
||||||
|
|
10
poetry.lock
generated
10
poetry.lock
generated
|
@ -108,7 +108,7 @@ stevedore = ">=1.20.0"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "black"
|
name = "black"
|
||||||
version = "21.10b0"
|
version = "21.11b1"
|
||||||
description = "The uncompromising code formatter."
|
description = "The uncompromising code formatter."
|
||||||
category = "dev"
|
category = "dev"
|
||||||
optional = false
|
optional = false
|
||||||
|
@ -119,9 +119,9 @@ click = ">=7.1.2"
|
||||||
mypy-extensions = ">=0.4.3"
|
mypy-extensions = ">=0.4.3"
|
||||||
pathspec = ">=0.9.0,<1"
|
pathspec = ">=0.9.0,<1"
|
||||||
platformdirs = ">=2"
|
platformdirs = ">=2"
|
||||||
regex = ">=2020.1.8"
|
regex = ">=2021.4.4"
|
||||||
tomli = ">=0.2.6,<2.0.0"
|
tomli = ">=0.2.6,<2.0.0"
|
||||||
typed-ast = {version = ">=1.4.2", markers = "python_version < \"3.8\""}
|
typed-ast = {version = ">=1.4.2", markers = "python_version < \"3.8\" and implementation_name == \"cpython\""}
|
||||||
typing-extensions = [
|
typing-extensions = [
|
||||||
{version = ">=3.10.0.0", markers = "python_version < \"3.10\""},
|
{version = ">=3.10.0.0", markers = "python_version < \"3.10\""},
|
||||||
{version = "!=3.10.0.1", markers = "python_version >= \"3.10\""},
|
{version = "!=3.10.0.1", markers = "python_version >= \"3.10\""},
|
||||||
|
@ -1257,8 +1257,8 @@ bandit = [
|
||||||
{file = "bandit-1.7.0.tar.gz", hash = "sha256:8a4c7415254d75df8ff3c3b15cfe9042ecee628a1e40b44c15a98890fbfc2608"},
|
{file = "bandit-1.7.0.tar.gz", hash = "sha256:8a4c7415254d75df8ff3c3b15cfe9042ecee628a1e40b44c15a98890fbfc2608"},
|
||||||
]
|
]
|
||||||
black = [
|
black = [
|
||||||
{file = "black-21.10b0-py3-none-any.whl", hash = "sha256:6eb7448da9143ee65b856a5f3676b7dda98ad9abe0f87fce8c59291f15e82a5b"},
|
{file = "black-21.11b1-py3-none-any.whl", hash = "sha256:802c6c30b637b28645b7fde282ed2569c0cd777dbe493a41b6a03c1d903f99ac"},
|
||||||
{file = "black-21.10b0.tar.gz", hash = "sha256:a9952229092e325fe5f3dae56d81f639b23f7131eb840781947e4b2886030f33"},
|
{file = "black-21.11b1.tar.gz", hash = "sha256:a042adbb18b3262faad5aff4e834ff186bb893f95ba3a8013f09de1e5569def2"},
|
||||||
]
|
]
|
||||||
bleach = [
|
bleach = [
|
||||||
{file = "bleach-4.1.0-py2.py3-none-any.whl", hash = "sha256:4d2651ab93271d1129ac9cbc679f524565cc8a1b791909c4a51eac4446a15994"},
|
{file = "bleach-4.1.0-py2.py3-none-any.whl", hash = "sha256:4d2651ab93271d1129ac9cbc679f524565cc8a1b791909c4a51eac4446a15994"},
|
||||||
|
|
|
@ -40,7 +40,7 @@ mypy = "^0.910"
|
||||||
pytest = "^6.2.4"
|
pytest = "^6.2.4"
|
||||||
ipdb = "^0.13.9"
|
ipdb = "^0.13.9"
|
||||||
pylint = "^2.11.1"
|
pylint = "^2.11.1"
|
||||||
black = "^21.9b0"
|
black = "^21.11b1"
|
||||||
isort = "^5.9.3"
|
isort = "^5.9.3"
|
||||||
flake8 = "^4.0.1"
|
flake8 = "^4.0.1"
|
||||||
bandit = "^1.7.0"
|
bandit = "^1.7.0"
|
||||||
|
|
Loading…
Reference in a new issue