Commit Graph

176 Commits

Author SHA1 Message Date
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
Trevor Currie
40789c6685 Merge pull request #100 from ME-ON1/feat/update-black
update black dev.dependency
2022-06-16 11:24:21 -07:00
Tarun Sharma
0f71d4cbf6 Merge pull request #2 from swifterhq/fix/redis
fix: rm redis import from test/__init__.py
2022-06-16 23:47:09 +05:30
Tarun Sharma
b8dff316b8 fix: rm redis import from test/__init__.py 2022-06-16 23:42:54 +05:30
Tarun Sharma
5307c6b3cd fix: update black@latest for click recent errors 2022-06-16 23:27:05 +05:30
Tarun Sharma
fbb08d35fe Merge pull request #1 from swifterhq/fix/package
fix: rm redis package
2022-05-26 15:36:18 +05:30
Tarun Sharma
97f42a7f33 fix: add redis as extras 2022-05-24 16:37:20 +05:30
Laurent Savaete
b631980d70 Merge pull request #84 from karlnewell/feature/coverage
feature(coverage): Add Python test coverage
2022-02-02 08:38:30 +00:00
Karl Newell
47fccea044 feature(coverage): Add Python test coverage
Add test coverage via `coverage` package.
Update workflow to run pytest via coverage and output coverage report.
Drops Python 3.6 - which is also an open issue and coverage required
dropping 3.6

Closes #82 #83
2022-02-01 09:12:53 -07:00
Trevor Currie
e83c0edf2a Merge pull request #80 from maratsarbasov/master
Implement dynamic limits depending on key.
2022-01-18 16:09:29 -08:00
Trevor Currie
d6a226d053 Merge pull request #79 from laurentS/dependabot/pip/lxml-4.6.5
Bump lxml from 4.6.3 to 4.6.5
2022-01-18 15:50:04 -08:00
Marat Sarbasov
e994f06f19 Clear assert message
Co-authored-by: Laurent Savaete <laurent@where.tf>
2022-01-19 02:37:18 +03:00
Marat Sarbasov
5e78adde2f Replace assert with raise ... 2022-01-19 00:51:52 +03:00
dependabot[bot]
b5590ba8c1 Bump lxml from 4.6.3 to 4.6.5
Bumps [lxml](https://github.com/lxml/lxml) from 4.6.3 to 4.6.5.
- [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.3...lxml-4.6.5)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-18 17:06:26 +00:00
Trevor Currie
813734e749 Merge pull request #73 from laurentS/dependabot/pip/mkdocs-1.2.3
Bump mkdocs from 1.2.2 to 1.2.3
2022-01-18 09:02:53 -08:00
Trevor Currie
03a586e63e Merge pull request #81 from laurentS/dependabot/pip/docs/nltk-3.6.6
Bump nltk from 3.6.5 to 3.6.6 in /docs
2022-01-18 08:54:27 -08:00
Trevor Currie
5fc17e4fd3 Merge pull request #76 from nootr/docs/missing_imports
Fix import issues in examples
2022-01-18 08:54:15 -08:00
dependabot[bot]
80dfca9998 Bump mkdocs from 1.2.2 to 1.2.3
Bumps [mkdocs](https://github.com/mkdocs/mkdocs) from 1.2.2 to 1.2.3.
- [Release notes](https://github.com/mkdocs/mkdocs/releases)
- [Commits](https://github.com/mkdocs/mkdocs/compare/1.2.2...1.2.3)

---
updated-dependencies:
- dependency-name: mkdocs
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-18 16:53:56 +00:00
Trevor Currie
6cf0624569 Merge pull request #78 from laurentS/dependabot/pip/docs/lxml-4.6.5
Bump lxml from 4.6.3 to 4.6.5 in /docs
2022-01-18 08:51:47 -08:00
dependabot[bot]
dd6c9ba077 Bump nltk from 3.6.5 to 3.6.6 in /docs
Bumps [nltk](https://github.com/nltk/nltk) from 3.6.5 to 3.6.6.
- [Release notes](https://github.com/nltk/nltk/releases)
- [Changelog](https://github.com/nltk/nltk/blob/develop/ChangeLog)
- [Commits](https://github.com/nltk/nltk/compare/3.6.5...3.6.6)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-18 16:51:32 +00:00
Trevor Currie
932c696211 Merge pull request #72 from laurentS/dependabot/pip/docs/mkdocs-1.2.3
Bump mkdocs from 1.1.2 to 1.2.3 in /docs
2022-01-18 08:51:21 -08:00
Trevor Currie
cd6e2f3124 Merge pull request #71 from laurentS/dependabot/pip/docs/nltk-3.6.5
Bump nltk from 3.5 to 3.6.5 in /docs
2022-01-18 08:51:05 -08:00
Marat Sarbasov
59d2cdd9de Add test_dynamic_limit_provider_depending_on_key 2022-01-16 04:38:08 +03:00
Marat Sarbasov
33899c0ef1 Enable dynamic limits dependant on key. 2022-01-16 02:46:30 +03:00
dependabot[bot]
22cfb76d1d Bump lxml from 4.6.3 to 4.6.5 in /docs
Bumps [lxml](https://github.com/lxml/lxml) from 4.6.3 to 4.6.5.
- [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.3...lxml-4.6.5)

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

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-13 20:47:39 +00:00
Joris Hartog
bbdadd7674 Fix duplicate method name bug in FastAPI example
Fixes #75
2021-12-09 11:35:27 +01:00