Trevor Currie
8bf8fd954d
Reformatting.
2021-04-05 15:42:03 -07:00
Trevor Currie
21652645ef
Resolving bug of unregistered endpoints in the disabled state.
2021-04-05 15:38:18 -07:00
Laurent Savaete
4561d83f98
Fix typo in docs
2021-03-14 00:02:17 +00:00
Laurent Savaete
a71a3a8091
Fix formatting in docs
2021-03-14 00:00:41 +00:00
Laurent Savaete
3d63538a08
Add note about order of decorators in docs (see #39 )
2021-03-13 23:56:58 +00:00
Laurent Savaete
76a917f11f
Add example in docs about using redis as backend
2021-03-13 23:49:29 +00:00
Laurent Savaete
467dbb5fd1
Release 0.1.4
v0.1.4
2021-02-21 22:46:23 +00:00
Laurent Savaete
96d16c91ed
Fix broken link in docs
2021-02-21 22:34:27 +00:00
Laurent Savaete
f9f054b608
Merge pull request #30 from xuxygo/bugfix_middle_route_miss
...
fix middleware miss route problem
2021-02-21 22:28:54 +00:00
Laurent Savaete
822a9abe81
Merge pull request #36 from laurentS/enabled-option
...
Make the enabled option actually useful
2021-02-21 22:24:48 +00:00
Laurent Savaete
f64b2f469c
Document the enabled option
2021-02-05 00:55:57 +00:00
Laurent Savaete
458def2a72
Fix #35 Disable the limiter if enabled==False
2021-02-05 00:51:00 +00:00
xuxueyang-dx
750e3513dd
fix middleware miss route problem
...
match.FULL == match -> match == Match.FULL
2021-01-12 09:38:33 +08:00
Laurent Savaete
ea899ca3c3
Merge pull request #28 from laurentS/dependabot/pip/docs/lxml-4.6.2
...
Bump lxml from 4.5.0 to 4.6.2 in /docs
2021-01-10 15:21:36 +00:00
Laurent Savaete
780c08bd4c
Add missing imports in docs
2021-01-10 15:17:49 +00:00
dependabot[bot]
ed8e384c2e
Bump lxml from 4.5.0 to 4.6.2 in /docs
...
Bumps [lxml](https://github.com/lxml/lxml ) from 4.5.0 to 4.6.2.
- [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.5.0...lxml-4.6.2 )
Signed-off-by: dependabot[bot] <support@github.com >
2021-01-07 23:48:33 +00:00
Laurent Savaete
fd53161071
Add middleware in docs/examples
2020-12-29 23:56:34 +00:00
Laurent Savaete
19624e1f0c
Release 0.1.3
v0.1.3
2020-12-23 22:32:39 +00:00
Laurent Savaete
c0d30f4f98
Updates docs
2020-12-23 22:25:53 +00:00
Laurent Savaete
5a18f88b74
Update change log
2020-12-23 21:57:48 +00:00
Laurent Savaete
daa27546a0
Merge pull request #19 from glinmac/fix/fastapi-limit-decorator
...
#18 fix: Address issue with decorator
2020-12-23 21:47:04 +00:00
Guillaume Gardey
cc0140b800
Ignore type error in this specific case
2020-12-23 10:16:42 +00:00
Guillaume Gardey
b6fa460254
Fix formatting
2020-12-23 10:04:52 +00:00
Guillaume Gardey
755bf44e12
Fix copy/paste issue in test
2020-12-23 09:48:50 +00:00
Guillaume Gardey
1a43dc4065
_inject_headers is already checking for the test
2020-12-23 09:48:50 +00:00
Guillaume Gardey
4eb145c8cf
Remove debug print
2020-12-23 09:48:50 +00:00
Guillaume Gardey
acde458c45
fix: Address issue with decorator
...
The value returned by an endpoint may not be an instance or subclass
of `Response`, in this case FastAPI builds the actual Response
at an upper level in the middleware stack.
This patch allows the decorator to inspect the endpoint to retrieve the
associated `Response` to allow headers to be injected.
2020-12-23 09:48:50 +00:00
Laurent Savaete
6e176cc191
Revert "Add support for python 3.9"
...
This reverts commit 92c99630a6 .
2020-12-23 09:48:50 +00:00
Laurent Savaete
9f5ca9394f
Add support for python 3.9
2020-12-23 09:48:50 +00:00
Laurent Savaete
8ddb38ed74
Use poetry run to activate venv
2020-12-23 09:48:50 +00:00
Laurent Savaete
f55743f63c
Update CI to use new maintained poetry action
2020-12-23 09:48:50 +00:00
Laurent Savaete
f061ead87a
Merge pull request #20 from laurentS/fix-ci-issues
...
Fix issues with CI
2020-12-21 23:36:19 +00:00
Laurent Savaete
92abca007f
Revert "Add support for python 3.9"
...
This reverts commit 92c99630a6 .
2020-12-21 23:05:55 +00:00
Laurent Savaete
92c99630a6
Add support for python 3.9
2020-12-21 22:53:39 +00:00
Laurent Savaete
1dd4d0c372
Use poetry run to activate venv
2020-12-21 22:44:09 +00:00
Laurent Savaete
c0a8ab2605
Update CI to use new maintained poetry action
2020-12-21 22:33:01 +00:00
Laurent Savaete
fe5d7aa402
Release 0.1.2
v0.1.2
2020-10-01 23:52:04 +01:00
Laurent Savaete
f21df6d912
Update dependencies on starlette and fastapi
2020-10-01 23:50:51 +01:00
Laurent Savaete
1ac1cf697e
Merge pull request #7 from Rested/master
...
add middleware and exempt decorator
2020-10-01 23:15:47 +01:00
Reuben Thomas-Davis
07e0e20be7
🎨 remove useless comments
2020-10-01 20:11:19 +01:00
Reuben Thomas-Davis
db802405c8
🏷️ resolve mypy errors and add mypy_cache to gitignore
2020-10-01 20:04:03 +01:00
Reuben Thomas-Davis
32205c5b25
🎨 format with black
2020-10-01 19:13:50 +01:00
Reuben Thomas-Davis
3753de763c
Merge branch 'master' of https://github.com/laurentS/slowapi
...
# Conflicts:
# slowapi/extension.py
merge with master conforming to new docstring style
2020-10-01 19:11:30 +01:00
Reuben Thomas-Davis
b8fa36ea83
✨ add override_defaults parameter and fix merge test
2020-10-01 19:05:13 +01:00
Laurent Savaete
196820d84e
Include all dependencies to build the docs
2020-10-01 17:42:38 +01:00
Laurent Savaete
f3bb8d2a6c
Add readthedocs config
2020-10-01 17:27:57 +01:00
Laurent Savaete
b344000524
Configure isort to be black compatible
...
See https://black.readthedocs.io/en/stable/compatible_configs.html
2020-10-01 17:19:24 +01:00
Laurent Savaete
da9cba95e6
Add api documentation using mkautodoc
2020-10-01 16:46:04 +01:00
Laurent Savaete
31c88185b2
Link to docs from README
2020-10-01 14:02:49 +01:00
Laurent Savaete
15483e3b1e
Setup documentation on readthedocs
2020-10-01 13:45:26 +01:00