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
Laurent Savaete
3c90518f90
Merge pull request #15 from laurentS/ci-tests
...
Setup CI to check formatting and run tests
2020-09-28 01:56:35 +02:00
Laurent Savaete
b82536a669
Fix black and mypy errors
2020-09-28 00:53:41 +01:00
Laurent Savaete
5ed2026e8c
Fix ci error
2020-09-27 23:22:35 +00:00
Laurent Savaete
a0e9fc41d3
Setup CI to check formatting and run tests
2020-09-27 23:19:36 +00:00
Laurent Savaete
85b5b22191
Merge pull request #14 from thomasleveil/test_missing_request
...
TESTS : cover cases of missing `request: Request` parameter or misuse
2020-09-28 00:15:46 +02:00
Thomas LEVEIL
a66a728e50
TESTS : cover cases of missing request: Request parameter or misuse
2020-09-27 20:20:16 +02:00
Reuben Thomas-Davis
272ae50d05
add default limit merging test
2020-09-13 19:33:31 +01:00
Reuben Thomas-Davis
cd79c35a39
✅ improve exempt decorator test
2020-07-11 21:56:44 +01:00
Reuben Thomas-Davis
6580bb0624
add middleware and exempt decorator
2020-07-04 03:16:46 +01:00
Laurent Savaete
4c4141a7db
Merge pull request #4 from brumar/patch-1
...
Add missing import in the readme
2020-05-11 14:23:27 +00:00
Bruno Martin
4d4656356d
missing import in the readme ?
...
Thanks for your work :)
2020-05-11 16:13:11 +02:00
Laurent Savaete
82b04f02af
Release 0.1.1
2020-03-11 00:02:24 +00:00
Laurent Savaete
191168fde4
Update README
2020-03-10 23:59:19 +00:00
Laurent Savaete
b1af962d7a
Improve typing annotations
2020-03-10 23:43:45 +00:00
Laurent Savaete
a671418767
Add missing typing annotations
2020-03-10 21:36:23 +00:00
Laurent Savaete
7453b58646
Fix typo in rate limit handler
2020-03-10 21:36:00 +00:00
Laurent Savaete
3da4b8409b
Update dependencies on starlette (0.13.2) and fastapi (0.52.0)
2020-03-10 21:34:37 +00:00
Laurent Savaete
eca2a6f1e4
Add marker for mypy to see the code as annotated
2020-02-21 16:46:17 +00:00
Laurent Savaete
9880ff7625
First version
2020-02-21 13:51:35 +00:00
Laurent Savaete
a12edf5365
Initial commit
2020-02-21 12:56:21 +00:00