Skip to content

Releases: JamesMCo/python_mcc_api

v1.1.1

02 May 17:13
v1.1.1
61fa92b
Compare
Choose a tag to compare
  • Update Island API schema to target v24.05.02
    • Adds ProgressionData type
    • Adds nextEvolutionLevel and nextLevelProgress fields to CrownLevel type

v1.1.0

17 Apr 16:23
v1.1.0
fff8e36
Compare
Choose a tag to compare

⚠️ 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

23 Oct 20:51
v1.0.7
6001b6e
Compare
Choose a tag to compare
  • Fix RundownResponse raising exception if non-game present in history (e.g. count override, such as for MCC TR)

v1.0.6

06 Aug 00:40
v1.0.6
d8981c0
Compare
Choose a tag to compare
  • Fix invalid events, teams, and games not raising exceptions when calling get_rundown, get_participants, and get_hall_of_fame respectively

v1.0.5

24 Jul 20:59
v1.0.5
e6e22ac
Compare
Choose a tag to compare
  • 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

25 Apr 00:53
v1.0.4
9e230c8
Compare
Choose a tag to compare
  • Fix Hall of Fame deprecation warning not showing

v1.0.3

21 Apr 01:09
v1.0.3
537d3d7
Compare
Choose a tag to compare
  • 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

16 Apr 03:16
v1.0.2
d9805e3
Compare
Choose a tag to compare
  • 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

07 Apr 23:45
v1.0.1
205887d
Compare
Choose a tag to compare
  • Fix rate limit errors from the MCC API raising KeyError exceptions, instead of mcc_api.exceptions.RateLimitError exceptions.

v1.0.0

06 Apr 01:22
v1.0.0
6ee4e88
Compare
Choose a tag to compare
  • Initial release