Skip to main content

Python MCC API

A wrapper for the MC Championship API, inspired by derNiklaas's node-mcc-api project.

Installation

Ensure that pip is updated using:

python -m pip install --upgrade pip

Then install or update mcc_api using:

pip install --upgrade mcc-api

Usage

import mcc_api

# Print information about the current event cycle
from datetime import datetime, timezone
event = mcc_api.get_event()
if event.data.date <= datetime.now(tz=timezone.utc):
    print(f"The latest event (MCC {event.data.event}) started at {event.data.date.strftime('%I%p UTC on %A %d %B %Y')}.")
else:
    print(f"The upcoming event (MCC {event.data.event}) starts at {event.data.date.strftime('%I%p UTC on %A %d %B %Y')}.")

# Print the names of the players that played in Dodgebolt in the latest event
rundown = mcc_api.get_rundown()
dodgebolt_teams = rundown.data.dodgeboltData.keys()
players = sorted([player for team in dodgebolt_teams for player in rundown.data.creators[team]], key=str.casefold)
print(f"The players that played in Dodgebolt in the latest event were {', and '.join([', '.join(players[:-1]), players[-1]])}.")

Metadata

Release files for mcc-api 1.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mcc-api 1.0.5
File Size Uploaded Provenance Actions
mcc_api-1.0.5.tar.gz 19.0 kB Without provenance Details for mcc_api-1.0.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mcc-api 1.0.5
File Interpreter ABI Platform Actions
mcc_api-1.0.5-py3-none-any.whl Python 3 none any Details for mcc_api-1.0.5-py3-none-any.whl

Total release size: 27.3 kB

Release files / mcc_api-1.0.5.tar.gz

Download URL mcc_api-1.0.5.tar.gz
Size 19.0 kB
Tags Source
SHA-256 checksum
How to use checksums
c9f1c8ebe21f32186b438b1960f678a70cf9843c2f128644f34bba5526faae1c
BLAKE2b-256 checksum
How to use checksums
4d148b7cf191a76ca29b46190da1386ae1dfa3c6b4854010bfffdc9d0a4d02ae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Release files / mcc_api-1.0.5-py3-none-any.whl

Download URL mcc_api-1.0.5-py3-none-any.whl
Size 8.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2bb51efdf22559c4b5cf0cef87ffd69e3d89844e538d665403fa16fc8de35312
BLAKE2b-256 checksum
How to use checksums
b8835711bd24e4374d0998c21a2b3e90dfcbd8b631b234a3ea848fe5e36781f9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Security for mcc-api 1.0.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page