limits 4.3__py3-none-any.whl → 4.4.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- limits/_version.py +3 -3
- limits/aio/storage/etcd.py +3 -0
- limits/storage/etcd.py +3 -0
- {limits-4.3.dist-info → limits-4.4.1.dist-info}/METADATA +1 -1
- {limits-4.3.dist-info → limits-4.4.1.dist-info}/RECORD +8 -8
- {limits-4.3.dist-info → limits-4.4.1.dist-info}/LICENSE.txt +0 -0
- {limits-4.3.dist-info → limits-4.4.1.dist-info}/WHEEL +0 -0
- {limits-4.3.dist-info → limits-4.4.1.dist-info}/top_level.txt +0 -0
limits/_version.py
CHANGED
|
@@ -8,11 +8,11 @@ import json
|
|
|
8
8
|
|
|
9
9
|
version_json = '''
|
|
10
10
|
{
|
|
11
|
-
"date": "2025-03-
|
|
11
|
+
"date": "2025-03-14T20:24:07-0700",
|
|
12
12
|
"dirty": false,
|
|
13
13
|
"error": null,
|
|
14
|
-
"full-revisionid": "
|
|
15
|
-
"version": "4.
|
|
14
|
+
"full-revisionid": "a9d5a1a8a9a7dd9686861117364a3d4cd786cd5b",
|
|
15
|
+
"version": "4.4.1"
|
|
16
16
|
}
|
|
17
17
|
''' # END VERSION_JSON
|
|
18
18
|
|
limits/aio/storage/etcd.py
CHANGED
|
@@ -5,6 +5,8 @@ import time
|
|
|
5
5
|
import urllib.parse
|
|
6
6
|
from typing import TYPE_CHECKING
|
|
7
7
|
|
|
8
|
+
from deprecated.sphinx import deprecated
|
|
9
|
+
|
|
8
10
|
from limits.aio.storage.base import Storage
|
|
9
11
|
from limits.errors import ConcurrentUpdateError
|
|
10
12
|
|
|
@@ -12,6 +14,7 @@ if TYPE_CHECKING:
|
|
|
12
14
|
import aetcd
|
|
13
15
|
|
|
14
16
|
|
|
17
|
+
@deprecated(version="4.4")
|
|
15
18
|
class EtcdStorage(Storage):
|
|
16
19
|
"""
|
|
17
20
|
Rate limit storage with etcd as backend.
|
limits/storage/etcd.py
CHANGED
|
@@ -3,6 +3,8 @@ from __future__ import annotations
|
|
|
3
3
|
import time
|
|
4
4
|
import urllib.parse
|
|
5
5
|
|
|
6
|
+
from deprecated.sphinx import deprecated
|
|
7
|
+
|
|
6
8
|
from limits.errors import ConcurrentUpdateError
|
|
7
9
|
from limits.storage.base import Storage
|
|
8
10
|
from limits.typing import TYPE_CHECKING
|
|
@@ -11,6 +13,7 @@ if TYPE_CHECKING:
|
|
|
11
13
|
import etcd3
|
|
12
14
|
|
|
13
15
|
|
|
16
|
+
@deprecated(version="4.4")
|
|
14
17
|
class EtcdStorage(Storage):
|
|
15
18
|
"""
|
|
16
19
|
Rate limit storage with etcd as backend.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
limits/__init__.py,sha256=gPUFrt02kHF_syLjiVRSs-S4UVGpRMcM2VMFNhF6G24,748
|
|
2
|
-
limits/_version.py,sha256=
|
|
2
|
+
limits/_version.py,sha256=OIOxN-MDv1YuEK8t93Tt2gc9v0srDZB1V6k1pgrJZXs,497
|
|
3
3
|
limits/errors.py,sha256=s1el9Vg0ly-z92guvnvYNgKi3_aVqpiw_sufemiLLTI,662
|
|
4
4
|
limits/limits.py,sha256=YzzZP8_ay_zlMMnnY2xhAcFTTFvFe5HEk8NQlvUTru4,4907
|
|
5
5
|
limits/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -11,7 +11,7 @@ limits/aio/__init__.py,sha256=yxvWb_ZmV245Hg2LqD365WC5IDllcGDMw6udJ1jNp1g,118
|
|
|
11
11
|
limits/aio/strategies.py,sha256=9jnVU_nynm0zL1EjQLE3fus1vFbLqA-19ZRQhhexAGo,10776
|
|
12
12
|
limits/aio/storage/__init__.py,sha256=gL4DGTV-XDksZxofaP__sGvwehN8MuuJQuRZeuGwiOQ,695
|
|
13
13
|
limits/aio/storage/base.py,sha256=376Bs7l285vRTRa3-DqcVRnqOPdf3BpoCqbJr3XA9u8,6439
|
|
14
|
-
limits/aio/storage/etcd.py,sha256=
|
|
14
|
+
limits/aio/storage/etcd.py,sha256=QJY8B9jNCNZLpo_cEMUyQkYsk4UIfoMhz7lJUl-ROmk,5081
|
|
15
15
|
limits/aio/storage/memcached.py,sha256=kSX7B0CRS-qDVCQot4AW0rF3YwomXRyWg6W0_RyaHhM,10361
|
|
16
16
|
limits/aio/storage/memory.py,sha256=cBWk9P8_Dtm8YJpsZWScVuJQN93IJyno0fFVd5ubcRc,9759
|
|
17
17
|
limits/aio/storage/mongodb.py,sha256=EvwYBu9YoNX7j6A8XB8ik8SqMx0n4oWmBYhh4LHMYaI,19310
|
|
@@ -28,7 +28,7 @@ limits/resources/redis/lua_scripts/moving_window.lua,sha256=5hUZghISDh8Cbg8HJedi
|
|
|
28
28
|
limits/resources/redis/lua_scripts/sliding_window.lua,sha256=qG3Yg30Dq54QpRUcR9AOrKQ5bdJiaYpCacTm6Kxblvc,713
|
|
29
29
|
limits/storage/__init__.py,sha256=DArgeRfGilHWsfKz5qT_6OimP3S5u2E9lnzVst0n8Bw,2701
|
|
30
30
|
limits/storage/base.py,sha256=6MprvcdNaTIPyN0ei9emcJLajYq07vDGSIKrmiaU6dU,7003
|
|
31
|
-
limits/storage/etcd.py,sha256
|
|
31
|
+
limits/storage/etcd.py,sha256=oaNYOUryK-YmWKfmPtodRLjJGDMV4lGEYW9PU7FI_Ko,4745
|
|
32
32
|
limits/storage/memcached.py,sha256=NJqHpbfZjT7YpjlK0dUX1-k_nb7HxPMQvBBapgUaHhY,11217
|
|
33
33
|
limits/storage/memory.py,sha256=xLg3NDsnVEI3ds4QGS7MpH-VjjEJqwroOnz3LA8UQQ8,9226
|
|
34
34
|
limits/storage/mongodb.py,sha256=NqXFRj6h8fk8r_dznV-h9gqh95MLNtd5VRmtFncdzT0,18224
|
|
@@ -36,8 +36,8 @@ limits/storage/redis.py,sha256=b2m5TrPNwS7NBY5btwCN0esGyCVQTwwgCn6f-sTcgFQ,10613
|
|
|
36
36
|
limits/storage/redis_cluster.py,sha256=z6aONMl4p1AY78G3J0BbtK--uztz88krwnpiOsU61BM,4447
|
|
37
37
|
limits/storage/redis_sentinel.py,sha256=AN0WtwHN88TvXk0C2uUE8l5Jhsd1ZxU8XSqrEyQSR20,4327
|
|
38
38
|
limits/storage/registry.py,sha256=CxSaDBGR5aBJPFAIsfX9axCnbcThN3Bu-EH4wHrXtu8,650
|
|
39
|
-
limits-4.
|
|
40
|
-
limits-4.
|
|
41
|
-
limits-4.
|
|
42
|
-
limits-4.
|
|
43
|
-
limits-4.
|
|
39
|
+
limits-4.4.1.dist-info/LICENSE.txt,sha256=T6i7kq7F5gIPfcno9FCxU5Hcwm22Bjq0uHZV3ElcjsQ,1061
|
|
40
|
+
limits-4.4.1.dist-info/METADATA,sha256=rAF5W3aD4wjvA_iPcTiIX7vPW1JK1xUu8VxIjwG9O2g,11357
|
|
41
|
+
limits-4.4.1.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
|
|
42
|
+
limits-4.4.1.dist-info/top_level.txt,sha256=C7g5ahldPoU2s6iWTaJayUrbGmPK1d6e9t5Nn0vQ2jM,7
|
|
43
|
+
limits-4.4.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|