Unofficial Python bindings to the MCC Island API.
Project description
mcci-api-python
About
This library is a wrapper around the MCC Island API. Some basic examples are showcased below, but more extensive documentation will be coming soon.
Examples
Basics
To unlock this library's features, you first need to set up an APIClient
instance. There are two options that must be set: api_key
and user_agent
:
api_key
: Noxcrew requires you to generate an API key on the Noxcrew Gateway website. This is sensitive, so it is recommended to store this in a safe place. For the purpose of this example, we will use the environment variableMCCI_API_KEY
.user_agent
: Noxcrew also requires a uniqueUser-Agent
header header, which is represented here by this option. It is recommended to include a way to contact you in the header, like an email. Usually I format this as the GitHub repository, followed by the contact email. I'll use an environment variable here too, but you can include this directly in the code if you want.
from mcci_api import APIClient
import os
api_key = os.getenv("MCCI_API_KEY")
user_agent = os.getenv("MCCI_API_USER_AGENT")
client = APIClient(api_key=api_key, user_agent=user_agent)
Now we have a client!
...more coming soon...
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mcci_api-24.5.6.dev1.tar.gz
(17.5 kB
view hashes)
Built Distribution
Close
Hashes for mcci_api-24.5.6.dev1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 09dd8a8e3be44d1e85d618e3b49524562aab300f95b35a1af3049c9e93436cf8 |
|
MD5 | 15c8d2993c6ce9bdac63f66e0b14bfc0 |
|
BLAKE2b-256 | a1102c52fe6cbbd915ccfb50fbabc0eb12ab66ac63405c3d0e6ae34c0e30826d |