Skip to content

Commit 7425123

Browse files
committed
Increase ratelimit to 200 requests per minute
1 parent 691f1e7 commit 7425123

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Python MCC API
22

33
[![🐍 PyPI](https://img.shields.io/pypi/v/mcc-api?label=🐍%20PyPI)](https://pypi.org/project/mcc-api/)
4-
[![👑 Targeting Event API v1.5.0](https://img.shields.io/badge/👑_Targeting_Event_API-v1.5.0-red)](https://github.com/Noxcrew/mcchampionship-api/releases/tag/v1.5.0)
4+
[![👑 Targeting Event API v1.6.0](https://img.shields.io/badge/👑_Targeting_Event_API-v1.6.0-red)](https://github.com/Noxcrew/mcchampionship-api/releases/tag/v1.6.0)
55
[![🏝️ Targeting Island API v24.05.06](https://img.shields.io/badge/🏝️_Targeting_Island_API-v24.05.06-aqua)](https://github.com/Noxcrew/mccisland-api/releases/tag/v24.05.06)
66

77
A helper library for the [MC Championship](https://mcchampionship.com) APIs

docs/index.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ python_mcc_api
44
.. image:: https://img.shields.io/pypi/v/mcc-api?label=🐍%20PyPI
55
:alt: 🐍 PyPI
66
:target: https://pypi.org/project/mcc-api/
7-
.. image:: https://img.shields.io/badge/👑_Targeting_Event_API-v1.5.0-red
8-
:alt: 👑 Targeting Event API v1.5.0
9-
:target: https://github.com/Noxcrew/mcchampionship-api/releases/tag/v1.5.0
7+
.. image:: https://img.shields.io/badge/👑_Targeting_Event_API-v1.6.0-red
8+
:alt: 👑 Targeting Event API v1.6.0
9+
:target: https://github.com/Noxcrew/mcchampionship-api/releases/tag/v1.6.0
1010
.. image:: https://img.shields.io/badge/🏝️_Targeting_Island_API-v24.05.06-aqua
1111
:alt: 🏝️ Targeting Island API v24.05.06
1212
:target: https://github.com/Noxcrew/mccisland-api/releases/tag/v24.05.06

mcc_api/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"__version__"
55
]
66

7-
__version__ = "1.1.6"
7+
__version__ = "1.1.7"
88
__user_agent: t.Final[str] = f"python_mcc_api/{__version__} (https://github.com/JamesMCo/python_mcc_api)"
99

1010
# update version of package

mcc_api/event/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@
3535

3636

3737
@ratelimit.sleep_and_retry
38-
@ratelimit.limits(calls=40, period=60)
38+
@ratelimit.limits(calls=200, period=60)
3939
def __request(endpoint: str, timeout: int) -> requests.Response:
4040
"""Make and return a request to the given endpoint of the MCC API.
4141
42-
Limited to 40 calls per minute, and will sleep until the rate limit resets if exceeded.
42+
Limited to 200 calls per minute, and will sleep until the rate limit resets if exceeded.
4343
Timeout parameter is passed to requests module directly."""
4444
return requests.get(
4545
f"{__base_url.rstrip('/')}/{endpoint}",

0 commit comments

Comments
 (0)