Skip to main content

A Python port of the Multicraft API

Project description

multicraft-api

What it is

multicraft-api is a Python port of the Multicraft API Interface.

Installation

pip install multicraft-api

Usage

From example.py:

from multicraftapi import MulticraftAPI


# Arguments: (url, username, api_key)
client = MulticraftAPI("http://example.com/multicraft/api.php",  "Example_Username",  "3X4MP134P1K3Y")

# Arguments: (function, *args)
response =  client("getServerStatus",  "123456")

# Response is always JSON in form {'success': <success_status>, 'errors': [<errors>], 'data':[<returned data>]}
print(response)

For more information, including all the functions and their args, please refer to the wiki.

Project details


Download files

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

Files for multicraft-api, version 1.3.2
Filename, size File type Python version Upload date Hashes
Filename, size multicraft_api-1.3.2-py3-none-any.whl (7.2 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size multicraft-api-1.3.2.tar.gz (3.5 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page