Skip to main content

A library to easily access the MCSS api.

Project description

MCSS Python API

Allows for easy access to the MCSS API.

Installation

pip install mcss-api

Usage

Initialization

Import the mcss module:

from mcss import *

Create the MCSS instance:

Use this if you want the app to stop if the connection fails

mcss = MCSS("http://localhost:25560", True)

Use this if you want to manage failed states yourself

mcss = MCSS("http://localhost:25560", False)

Example fail state management:

if mcss.com_open == False:
    print("Failed to connect to MCSS")

Authenticating with the MCSS API

mcss.token = "YOUR_TOKEN"

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcss-api-0.0.2.tar.gz (3.9 kB view hashes)

Uploaded Source

Built Distribution

mcss_api-0.0.2-py3-none-any.whl (4.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page