Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.
Expand All @@ -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
Expand Down