Skip to main content

Interact with your Minecraft server from hosts that use Multicraft using Python

Project description

multicraft

PyPI Python Downloads Status Issues

Interact with your Minecraft server from hosts that use Multicraft using Python.

Installation

Install the module with pip:

pip3 install multicraft

Update existing installation: pip3 install multicraft --upgrade

Features

  • Includes a handful of common multicraft hosts.
  • Manage users, players, commands, schedules, and databases.
  • Start, stop, or restart your server.
  • Run console commands (give, kill, whitelist, op, etc)
  • Read your servers current cpu and memmory usage.
  • Send a chat message.

See the docs for more information.

Dependencies

Name Description
requests Requests is a simple, yet elegant, HTTP library.

Example

from multicraft import MulticraftAPI

api = MulticraftAPI(
    url = 'https://localhost/api.php',
    user = 'username',
    key = 'apiKey'
)

owner = api.get_user_id(api.user)

owned_servers = api.list_servers_by_owner(owner)
print(owned_servers)

for id in owned_servers.keys():
    server = api.get_server(id)
    print(server)

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

multicraft-0.0.2.tar.gz (13.2 kB view hashes)

Uploaded Source

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