limits 5.4.0__py3-none-any.whl → 5.6.0__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/__init__.py CHANGED
@@ -32,4 +32,4 @@ __all__ = [
32
32
  "strategies",
33
33
  ]
34
34
 
35
- __version__ = _version.get_versions()["version"]
35
+ __version__ = _version.__version__
limits/_version.py CHANGED
@@ -1,21 +1,34 @@
1
+ # file generated by setuptools-scm
2
+ # don't change, don't track in version control
1
3
 
2
- # This file was generated by 'versioneer.py' (0.29) from
3
- # revision-control system data, or from the parent directory name of an
4
- # unpacked source archive. Distribution tarballs contain a pre-generated copy
5
- # of this file.
4
+ __all__ = [
5
+ "__version__",
6
+ "__version_tuple__",
7
+ "version",
8
+ "version_tuple",
9
+ "__commit_id__",
10
+ "commit_id",
11
+ ]
6
12
 
7
- import json
13
+ TYPE_CHECKING = False
14
+ if TYPE_CHECKING:
15
+ from typing import Tuple
16
+ from typing import Union
8
17
 
9
- version_json = '''
10
- {
11
- "date": "2025-06-16T08:51:06-0700",
12
- "dirty": false,
13
- "error": null,
14
- "full-revisionid": "8a5a8254708e2799a762b28482d2a4da7b71b04e",
15
- "version": "5.4.0"
16
- }
17
- ''' # END VERSION_JSON
18
+ VERSION_TUPLE = Tuple[Union[int, str], ...]
19
+ COMMIT_ID = Union[str, None]
20
+ else:
21
+ VERSION_TUPLE = object
22
+ COMMIT_ID = object
18
23
 
24
+ version: str
25
+ __version__: str
26
+ __version_tuple__: VERSION_TUPLE
27
+ version_tuple: VERSION_TUPLE
28
+ commit_id: COMMIT_ID
29
+ __commit_id__: COMMIT_ID
19
30
 
20
- def get_versions():
21
- return json.loads(version_json)
31
+ __version__ = version = '5.6.0'
32
+ __version_tuple__ = version_tuple = (5, 6, 0)
33
+
34
+ __commit_id__ = commit_id = None
limits/_version.pyi ADDED
@@ -0,0 +1 @@
1
+ __version__: str
@@ -1,69 +1,49 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: limits
3
- Version: 5.4.0
3
+ Version: 5.6.0
4
4
  Summary: Rate limiting utilities
5
- Home-page: https://limits.readthedocs.org
6
- Author: Ali-Akber Saifee
7
- Author-email: ali@indydevs.org
8
- License: MIT
5
+ Project-URL: Homepage, https://limits.readthedocs.org
9
6
  Project-URL: Source, https://github.com/alisaifee/limits
7
+ Project-URL: Documentation, https://limits.readthedocs.org
8
+ Author-email: Ali-Akber Saifee <ali@indydevs.org>
9
+ Maintainer-email: Ali-Akber Saifee <ali@indydevs.org>
10
+ License-Expression: MIT
11
+ License-File: LICENSE.txt
10
12
  Classifier: Development Status :: 5 - Production/Stable
11
13
  Classifier: Intended Audience :: Developers
12
14
  Classifier: License :: OSI Approved :: MIT License
13
15
  Classifier: Operating System :: MacOS
14
- Classifier: Operating System :: POSIX :: Linux
15
16
  Classifier: Operating System :: OS Independent
16
- Classifier: Topic :: Software Development :: Libraries :: Python Modules
17
+ Classifier: Operating System :: POSIX :: Linux
17
18
  Classifier: Programming Language :: Python :: 3.10
18
19
  Classifier: Programming Language :: Python :: 3.11
19
20
  Classifier: Programming Language :: Python :: 3.12
20
21
  Classifier: Programming Language :: Python :: 3.13
21
22
  Classifier: Programming Language :: Python :: Implementation :: PyPy
23
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
22
24
  Requires-Python: >=3.10
23
- License-File: LICENSE.txt
24
25
  Requires-Dist: deprecated>=1.2
25
- Requires-Dist: packaging<26,>=21
26
- Requires-Dist: typing_extensions
27
- Provides-Extra: redis
28
- Requires-Dist: redis!=4.5.2,!=4.5.3,<6.0.0,>3; extra == "redis"
29
- Provides-Extra: rediscluster
30
- Requires-Dist: redis!=4.5.2,!=4.5.3,>=4.2.0; extra == "rediscluster"
31
- Provides-Extra: memcached
32
- Requires-Dist: pymemcache<5.0.0,>3; extra == "memcached"
33
- Provides-Extra: mongodb
34
- Requires-Dist: pymongo<5,>4.1; extra == "mongodb"
35
- Provides-Extra: valkey
36
- Requires-Dist: valkey>=6; extra == "valkey"
37
- Provides-Extra: async-redis
38
- Requires-Dist: coredis<5,>=3.4.0; extra == "async-redis"
26
+ Requires-Dist: packaging>=21
27
+ Requires-Dist: typing-extensions
39
28
  Provides-Extra: async-memcached
40
- Requires-Dist: memcachio>=0.3; extra == "async-memcached"
29
+ Requires-Dist: memcachio>=0.3; extra == 'async-memcached'
41
30
  Provides-Extra: async-mongodb
42
- Requires-Dist: motor<4,>=3; extra == "async-mongodb"
31
+ Requires-Dist: motor<4,>=3; extra == 'async-mongodb'
32
+ Provides-Extra: async-redis
33
+ Requires-Dist: coredis<6,>=3.4.0; extra == 'async-redis'
43
34
  Provides-Extra: async-valkey
44
- Requires-Dist: valkey>=6; extra == "async-valkey"
45
- Provides-Extra: all
46
- Requires-Dist: redis!=4.5.2,!=4.5.3,<6.0.0,>3; extra == "all"
47
- Requires-Dist: redis!=4.5.2,!=4.5.3,>=4.2.0; extra == "all"
48
- Requires-Dist: pymemcache<5.0.0,>3; extra == "all"
49
- Requires-Dist: pymongo<5,>4.1; extra == "all"
50
- Requires-Dist: valkey>=6; extra == "all"
51
- Requires-Dist: coredis<5,>=3.4.0; extra == "all"
52
- Requires-Dist: memcachio>=0.3; extra == "all"
53
- Requires-Dist: motor<4,>=3; extra == "all"
54
- Requires-Dist: valkey>=6; extra == "all"
55
- Dynamic: author
56
- Dynamic: author-email
57
- Dynamic: classifier
58
- Dynamic: description
59
- Dynamic: home-page
60
- Dynamic: license
61
- Dynamic: license-file
62
- Dynamic: project-url
63
- Dynamic: provides-extra
64
- Dynamic: requires-dist
65
- Dynamic: requires-python
66
- Dynamic: summary
35
+ Requires-Dist: valkey>=6; extra == 'async-valkey'
36
+ Provides-Extra: memcached
37
+ Requires-Dist: pymemcache<5.0.0,>3; extra == 'memcached'
38
+ Provides-Extra: mongodb
39
+ Requires-Dist: pymongo<5,>4.1; extra == 'mongodb'
40
+ Provides-Extra: redis
41
+ Requires-Dist: redis!=4.5.2,!=4.5.3,<7.0.0,>3; extra == 'redis'
42
+ Provides-Extra: rediscluster
43
+ Requires-Dist: redis!=4.5.2,!=4.5.3,>=4.2.0; extra == 'rediscluster'
44
+ Provides-Extra: valkey
45
+ Requires-Dist: valkey>=6; extra == 'valkey'
46
+ Description-Content-Type: text/x-rst
67
47
 
68
48
  .. |ci| image:: https://github.com/alisaifee/limits/actions/workflows/main.yml/badge.svg?branch=master
69
49
  :target: https://github.com/alisaifee/limits/actions?query=branch%3Amaster+workflow%3ACI
@@ -1,12 +1,12 @@
1
- limits/__init__.py,sha256=gPUFrt02kHF_syLjiVRSs-S4UVGpRMcM2VMFNhF6G24,748
2
- limits/_version.py,sha256=yzZjmmcS6zK5TYwp241WU_2TWLKQak_9QvmKSaY24EY,497
1
+ limits/__init__.py,sha256=o797RFCrvTx-9XGu8tsQYH5ZOtX-UVh6xwq_eatc_AU,734
2
+ limits/_version.py,sha256=3ucixGE1aqqT6_wVh9iJlYsogjPN83_jiyXCqsGzfqU,704
3
+ limits/_version.pyi,sha256=Y25n44pyE3vp92MiABKrcK3IWRyQ1JG1rZ4Ufqy2nC0,17
3
4
  limits/errors.py,sha256=s1el9Vg0ly-z92guvnvYNgKi3_aVqpiw_sufemiLLTI,662
4
5
  limits/limits.py,sha256=EztiGCXBVwIqNtps77HiW6vLlMO93wCh7mu5W7BuhwI,5011
5
6
  limits/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
7
  limits/strategies.py,sha256=Q03NTAyADtwMalhRkOSdk6UE1gVfVt5n258xVyA481o,10732
7
8
  limits/typing.py,sha256=pVt5D23MhQSUGqi0MBG5FCSqDwta2ygu18BpKvJFxow,3283
8
9
  limits/util.py,sha256=283O2aXnN7DmaqjTeTiF-KYn5wVbnpXJ8vb-6LvY5lY,5983
9
- limits/version.py,sha256=YwkF3dtq1KGzvmL3iVGctA8NNtGlK_0arrzZkZGVjUs,47
10
10
  limits/aio/__init__.py,sha256=yxvWb_ZmV245Hg2LqD365WC5IDllcGDMw6udJ1jNp1g,118
11
11
  limits/aio/strategies.py,sha256=ip7NJ_6FvEtICr90tesayaXcsqrmpG7VlC3PwxbfiVQ,10736
12
12
  limits/aio/storage/__init__.py,sha256=vKeArUnN1ld_0mQOBBZPCjaQgM5xI1GBPM7_F2Ydz5c,646
@@ -37,8 +37,7 @@ limits/storage/redis.py,sha256=zTwxV5qosxGBTrkZmD4UWQdvavDbWpYHXY7H3hXH-Sw,10791
37
37
  limits/storage/redis_cluster.py,sha256=GkL8GCQFfxDriMzsPMkaj6pMEX5FvQXYpUtXLY5q8fQ,4621
38
38
  limits/storage/redis_sentinel.py,sha256=OSb61DxgUxMgXSIjaM_pF5-entD8XntD56xt0rFu89k,4479
39
39
  limits/storage/registry.py,sha256=CxSaDBGR5aBJPFAIsfX9axCnbcThN3Bu-EH4wHrXtu8,650
40
- limits-5.4.0.dist-info/licenses/LICENSE.txt,sha256=T6i7kq7F5gIPfcno9FCxU5Hcwm22Bjq0uHZV3ElcjsQ,1061
41
- limits-5.4.0.dist-info/METADATA,sha256=TbligMc6UvZHAIo_DOoYF31XmWZx64Hghgh1RULEQb4,10900
42
- limits-5.4.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
43
- limits-5.4.0.dist-info/top_level.txt,sha256=C7g5ahldPoU2s6iWTaJayUrbGmPK1d6e9t5Nn0vQ2jM,7
44
- limits-5.4.0.dist-info/RECORD,,
40
+ limits-5.6.0.dist-info/METADATA,sha256=AnwByiIGfXg-bL9FEzNEZ82RG2OXhbzkCMds8DZtob4,10357
41
+ limits-5.6.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
42
+ limits-5.6.0.dist-info/licenses/LICENSE.txt,sha256=T6i7kq7F5gIPfcno9FCxU5Hcwm22Bjq0uHZV3ElcjsQ,1061
43
+ limits-5.6.0.dist-info/RECORD,,
@@ -1,5 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (80.9.0)
2
+ Generator: hatchling 1.27.0
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
-
limits/version.py DELETED
@@ -1,3 +0,0 @@
1
- """
2
- empty file to be updated by versioneer
3
- """
@@ -1 +0,0 @@
1
- limits