multicraft
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)
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 details)
File details
Details for the file multicraft-0.0.2.tar.gz.
File metadata
- Download URL: multicraft-0.0.2.tar.gz
- Upload date:
- Size: 13.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/4.0.2 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7b9f79d85836dcbb45937a76e8efa110e89cff790aad2b909b23ae42835befb8
|
|
| MD5 |
06256354c267c015d90cd8eaaac54b7e
|
|
| BLAKE2b-256 |
b49d93cfcef9c6022a8c7c72bb509a09a12d86fea86f41339e7dfacdb7a33eb2
|