Releases: JamesMCo/python_mcc_api
Releases · JamesMCo/python_mcc_api
v1.1.1
- Update Island API schema to target v24.05.02
- Adds
ProgressionData
type
- Adds
nextEvolutionLevel
and nextLevelProgress
fields to CrownLevel type
v1.1.0
⚠️ Breaking Changes ⚠️
This release adds support for the newly announced MCC Island API. In doing so, it moves the previously existing Event API functionality to the mcc_api.event
subpackage. To update your code, you an replace all from mcc_api import xyz
lines with from mcc_api.event import xyz
, with the exception of:
mcc_api.__version__
(the current version of the package)
mcc_api.__user_agent
(the user agent used for requests to both APIs)
New Island functionality is introduced in the mcc_api.island
subpackage. The MCC Island API uses GraphQL, and also requires an API key which can be minted using Noxcrew Gateway and used with mcc_api.island.set_api_key()
.
Changelog
- Package split into two subpackages:
mcc_api.event
and mcc_api.island
for querying the Event API and Island API respectively
- Same Event functionality as before (
get_event()
, get_hall_of_fame()
, get_participants()
, and get_rundown()
)
- New Island functionality, allowing GraphQL queries to be run against and returned from the new MCC Island API (see the README or docs for more details and a code example)
- Documentation changes
- Change theme to Sphinx's "bizstyle" theme
- Move Event docs to /event, and add Island docs to /island
- Add Island code example to README
- Add badges to docs index page and README to show the currently targeted versions of the Event API and Island API
v1.0.7
- Fix
RundownResponse
raising exception if non-game present in history (e.g. count override, such as for MCC TR)
v1.0.6
- Fix invalid events, teams, and games not raising exceptions when calling
get_rundown
, get_participants
, and get_hall_of_fame
respectively
v1.0.5
- Add optional
timeout
parameter to get_event
, get_hall_of_fame
, get_rundown
, and get_participants
to specify the number of seconds before timing out requests to the MCC API (defaults to 5)
v1.0.4
- Fix Hall of Fame deprecation warning not showing
v1.0.3
- Fix several incompatibilities with Python 3.10
- Use of
enum.StrEnum
(added in Python 3.11)
- Use of
typing.Self
(added in Python 3.11)
- Use of
datetime.fromisoformat
to parse a Javascript Date format date string (support for all valid ISO 8601 formats added in Python 3.11)
v1.0.2
- Fix
__all__
not including get_event
, get_hall_of_fame
, get_rundown
, and get_participants
(and thus not being included when using from mcc_api import *
)
v1.0.1
- Fix rate limit errors from the MCC API raising KeyError exceptions, instead of mcc_api.exceptions.RateLimitError exceptions.