From 89c117766246b118b542ee5b1d8a9498a5252f72 Mon Sep 17 00:00:00 2001 From: Saurabh <75117608+Saurabh254@users.noreply.github.com> Date: Wed, 30 Oct 2024 18:57:09 +0530 Subject: [PATCH] fix: Update README.md --- README.md | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 213a773..5997409 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ The documentation is on [read the docs](https://slowapi.readthedocs.io/en/latest `slowapi` is available from [pypi](https://pypi.org/project/slowapi/) so you can install it as usual: ``` -$ pip install slowapi +pip install slowapi ``` # Features @@ -34,17 +34,17 @@ Supported now: * The `request` argument must be explicitly passed to your endpoint, or `slowapi` won't be able to hook into it. In other words, write: ```python - @limiter.limit("5/minute") - async def myendpoint(request: Request) - pass +@limiter.limit("5/minute") +async def myendpoint(request: Request) + pass ``` and not: ```python - @limiter.limit("5/minute") - async def myendpoint() - pass +@limiter.limit("5/minute") +async def myendpoint() + pass ``` * `websocket` endpoints are not supported yet. @@ -56,12 +56,12 @@ PRs are more than welcome! Please include tests for your changes :) The package uses [poetry](https://python-poetry.org) to manage dependencies. To setup your dev env: ```bash -$ poetry install +poetry install ``` To run the tests: ```bash -$ pytest +pytest ``` # Credits