Commit Graph

201 Commits

Author SHA1 Message Date
Laurent Savaete
b47da49ff6 Merge pull request #120 from laurentS/prepare-release-0-1-7 v0.1.7 2022-11-28 13:17:32 +03:00
Laurent Savaete
16023ff737 Revert "Run CI on python 3.11 as well"
This reverts commit e0f7d0d4be.
2022-11-23 15:24:19 +01:00
Laurent Savaete
e0f7d0d4be Run CI on python 3.11 as well 2022-11-23 15:21:09 +01:00
Laurent Savaete
e10cc56706 Update CI dependencies 2022-11-23 15:20:57 +01:00
Laurent Savaete
f5df4f8560 Explicitly depend on setuptools to fix CI error 2022-11-23 15:08:57 +01:00
Laurent Savaete
6dc91389c7 Update changelog 2022-11-09 11:14:36 +01:00
Laurent Savaete
2cb329dc93 Update dependencies 2022-11-09 11:14:36 +01:00
Laurent Savaete
44441d31ff Merge pull request #118 from thentgesMindee/key-style 2022-11-08 20:15:30 +03:00
thentgesMindee
3ae7154271 chg: minor change in testing 2022-11-08 17:58:11 +01:00
thentgesMindee
1d9badb4a0 chg: _check_request_limit | rename name, endpoint > endpoint_func_name, endpoint_url 2022-11-07 18:47:25 +01:00
thentgesMindee
7f87a26201 chg: update tests to reflect behavior explained in docs 2022-11-07 18:39:01 +01:00
thentgesMindee
39a18133d4 fix: use Literal from typing_extension for python3.7 support 2022-11-07 17:58:44 +01:00
thentgesMindee
2ba9ed0630 fix: 🎨 apply black on tests files 2022-11-07 17:47:56 +01:00
thentgesMindee
b0d7bb03b7 chg: 🔀 update tests after rebase 2022-11-07 17:37:35 +01:00
thentgesMindee
031dc042d5 chg: 📝 add key_style example in docs 2022-11-07 17:36:10 +01:00
thentgesMindee
17a514faef new: add key_style parameter to choose between endpoint or url 2022-11-07 17:35:29 +01:00
Thibault
5b61a6b11f Merge pull request #113 from thentgesMindee/asgi-middleware
new:  add ASGI middleware alternative
2022-11-07 16:59:18 +01:00
thentgesMindee
ed0c870d0b chg: 👌 rewrite _get_route_name using a more modern style 2022-11-07 16:43:09 +01:00
thentgesMindee
5bb96b93f6 fix: 🔥 remove unused import 2022-11-07 16:40:14 +01:00
thentgesMindee
aa3e108d0a fix: 🏷️ update type annotations 2022-11-07 16:40:14 +01:00
thentgesMindee
6adcf1a0de new: 📝 add some doctrstrings 2022-11-07 16:40:14 +01:00
thentgesMindee
8e077e8738 chg: 📝 add documentation about WSGI vs ASGI middlewares 2022-11-07 16:40:14 +01:00
thentgesMindee
366e14cce3 new: handle both sync and asynchronous handlers in ASGIMiddleware 2022-11-07 16:40:14 +01:00
thentgesMindee
81330a0bf6 chg: 🏷️ update type annotations 2022-11-07 16:40:14 +01:00
thentgesMindee
b0da951c4e fix: 🐛 make ASGI middleware stateless to handle concurrent requests correctly 2022-11-07 16:40:14 +01:00
thentgesMindee
bc69ebc8e5 chg: 🔀 update tests after rebase 2022-11-07 16:40:14 +01:00
thentgesMindee
22ead94933 chg: ♻️ remove duplicated code between two middlewares 2022-11-07 16:40:14 +01:00
thentgesMindee
bd9a1ecc55 chg: parametrize tests to use both HTTP and ASGI middlewares 2022-11-07 16:40:14 +01:00
thentgesMindee
c516a33515 new: adding SlowAPIASGIMiddleware alternative 2022-11-07 16:40:14 +01:00
Laurent Savaete
03104e876c Update issue templates 2022-10-13 13:04:06 +00:00
Laurent Savaete
d52da26722 Merge pull request #110 from nootr/feature/cost_keyword 2022-08-30 12:02:43 +03:00
Joris Hartog
5bb0edbd01 Add endpoints to cost/hit tests 2022-08-29 22:08:07 +02:00
Joris Hartog
875c8758c1 Update docs
This commit adds a custom cost/hit example to the examples page and adds
this feature to the Features list.
2022-08-29 21:10:13 +02:00
Joris Hartog
c21ba98dcb Add support for custom cost per hit
This commit adds a `cost` keyword to the `limit` and `shared_limit`
decorators which sets the cost of a hit.

This uses the `cost` keyword that was introduced in `limits` version
2.3.0, so this commit also updates the `limits` dependency from `^1.5`
to `^2.3`.

Closes #94, #106
2022-08-26 23:40:00 +02:00
Laurent Savaete
26a187fbcd Merge pull request #108 from laurentS/release-0.1.6 v0.1.6 2022-08-24 12:45:54 +03:00
Laurent Savaete
64b566facf Merge pull request #103 from laurentS/dependabot/pip/docs/lxml-4.9.1 2022-08-24 12:44:09 +03:00
Trevor Currie
078c55cacd release - 0.1.6 Updating change log and version. 2022-08-19 23:12:12 -07:00
dependabot[bot]
f595d49d05 Bump lxml from 4.6.5 to 4.9.1 in /docs
Bumps [lxml](https://github.com/lxml/lxml) from 4.6.5 to 4.9.1.
- [Release notes](https://github.com/lxml/lxml/releases)
- [Changelog](https://github.com/lxml/lxml/blob/master/CHANGES.txt)
- [Commits](https://github.com/lxml/lxml/compare/lxml-4.6.5...lxml-4.9.1)

---
updated-dependencies:
- dependency-name: lxml
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-29 15:39:40 +00:00
Laurent Savaete
0a1e10767d Merge pull request #104 from laurentS/dependabot/pip/lxml-4.9.1 2022-07-29 18:38:51 +03:00
dependabot[bot]
43b471a0fe Bump lxml from 4.9.0 to 4.9.1
Bumps [lxml](https://github.com/lxml/lxml) from 4.9.0 to 4.9.1.
- [Release notes](https://github.com/lxml/lxml/releases)
- [Changelog](https://github.com/lxml/lxml/blob/master/CHANGES.txt)
- [Commits](https://github.com/lxml/lxml/compare/lxml-4.9.0...lxml-4.9.1)

---
updated-dependencies:
- dependency-name: lxml
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-06 21:52:53 +00:00
Laurent Savaete
f2bb10b8ff Merge pull request #101 from laurentS/unusedImports
Removes all unused imports.
2022-06-17 04:33:36 -03:00
Trevor Currie
426cfc2a22 Type check ignore. 2022-06-16 23:30:05 +02:00
Trevor Currie
3a63282d15 Formatting. 2022-06-16 23:27:45 +02:00
Trevor Currie
1e8b4e21f7 Correcting command. 2022-06-16 23:25:16 +02:00
Trevor Currie
c7dd0927d3 Merging with master. 2022-06-16 23:25:00 +02:00
Trevor Currie
06e5f732d0 Merge remote-tracking branch 'origin/master' into unusedImports
# Conflicts:
#	poetry.lock
2022-06-16 23:23:17 +02:00
Trevor Currie
74fc1652a7 Adding workflow to enforce no unused imports. 2022-06-16 23:23:03 +02:00
Trevor Currie
657461b126 Removes all unused imports. 2022-06-16 23:18:07 +02:00
Trevor Currie
9d80e3929e Merge pull request #96 from swifterhq/master
add redis as extra package
2022-06-16 14:13:31 -07:00
Tarun Sharma
af97b0a4ec Merge branch 'master' into master 2022-06-17 00:05:49 +05:30