Skip to content
This repository has been archived by the owner on Sep 19, 2024. It is now read-only.
/ crafty-client Public archive

[Moved to Gitlab] Client library for Python to interface with the Crafty API

Notifications You must be signed in to change notification settings

RMDC-Crafty/crafty-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Crafty-Client

OLD VERSION ALERT!

Our development is now focused on Gitlab, please check out this repository over there!
https://gitlab.com/crafty-controller/crafty-client

About

Crafty Client is a pypi (pip) package for interfacing with the Crafty Web MC server control panel.

It was written from scratch and is based on requests and urllib3, by kevdagoat

Install

Make sure you have python3 installed on your system with the pip package manager.

For windows (conda) environments

pip install crafty-client

For linux (apt/yum/rpm/etc.) environments

pip3 install crafty-client

Usage

Example:

from crafty_client import CraftyWeb

URL = "https://127.0.0.1:8000"    # The location of the crafty-web webserver
API_TOKEN = "<place token here>"  # Your crafty Web API token, printed in the console at installation.

cweb = CraftyWeb(URL, API_TOKEN)

print(cweb.list_mc_servers())

About

[Moved to Gitlab] Client library for Python to interface with the Crafty API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages