Skip to main content
==========
PyRedstone
==========

Copyright 2012, Josh Gachnang, Josh@ServerCobra.com.

PyRedstone is a Minecraft server wrapper for both vanilla and CraftBukkit servers. It allows you to start/stop the server, manage players, run all in game commands, manage settings and logs, manage CraftBukkit plugins, and a lot more.
PyRedstone also includes a remote API server based on CherryPy that accepts and returns JSON. A reference implementation of a client is included.
The code can be found on `GitHub <https://github.com/pcsforeducation/pyredstone>`_. All issues and pull requests are welcome!

Requirements
============
PyRedstone requires Python 2.7. It has only been tested on Ubuntu, specifically Ubuntu Server 12.04 x64. Additional testing is welcome, and all bugs will be considered. The only Python 2.7 features it relies on are logging.config.dictConfig and OrderedDict.
You must also have Tmux installed. To install it (on Ubuntu), run:
sudo apt-get update
sudo apt-get install -y tmux

PyRedstone also relies on the following Python packages:
* cherrypy
* nbt

pyredstone.py
=============
PyRedstone can be run from the commandline like so:
python pyredstone.py --config /path/to/config status

server.py
=========
The server can be started from the commandline or an init script. A sample init script is include in the package and on Github.
**Note**: The server will attempt to write a PID file to /var/run/pyredstone. The directory must exist and be writable by the user starting the server (root if started by init script).
python server.py --config /path/to/config

The server accepts JSON in the following format:
**Note**: Username and auth_token are not implemented yet. They will likely be saved in the config file.
{"username": "USERNAME", "auth_token": "TOKEN", "action": "ACTION", "args": {"arg1": "ARG", "args": "ARG"}}

Config File
===========
The config file is a standard, INI style config file. An example is included called example.cfg. The format should be as follows:
[ServerName]
session_name = troydoesntknow
minecraft_dir = /home/josh/minecraft/
server_jar = minecraft.jar
backup_dir = /tmp
mapper = overviewer

The variables are:
* *session_name*: The name of the Tmux session that will be used.
* *minecraft_dir*: The path to the directory containing *server_jar* and server.properties.
* *server_jar*: The name of the actual Minecraft server jar. The vanilla server is usually minecraft.jar, while CraftBukkit is usually craftbukkit.jar.
* *backup_dir*: Where to put backup files. Not currently used.
* *mapper*: The mapper software. Not currently used.

init.d
======

init.d/minecraft
---------
A standard init wrapper around PyRedstone. It gives the standard '/etc/init.d/minecraft start' interface for services. Acceptable commands are start, stop, restart, update, backup, status, and command. You need to customize USERNAME and CONFIG variables.

init.d/redstone_server
---------------
The redstone_server is an init wrapper for server.py. It allows you to start and stop server.py with the server. Acceptable commands are start, stop, restart, and status. You need to customize the USERNAME and CONFIG variables.

Metadata

Release files for PyRedstone 0.0.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for PyRedstone 0.0.9
File Size Uploaded
PyRedstone-0.0.9.tar.gz 28.6 kB Details

Release files / PyRedstone-0.0.9.tar.gz

Download URL PyRedstone-0.0.9.tar.gz
Size 28.6 kB
Tags Source
SHA-256 checksum
How to use checksums
787c14534fa9beb5febef799205a107b3861978b338e06e6b8e8f505ca063efb
BLAKE2b-256 checksum
How to use checksums
4a6c9d242f01536b72f4156c51239e6e85e7709e5a053900314b68d54668dc23
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

0.2.0

1 release file

0.1.0

1 release file

0.0.10

1 release file

This release

0.0.9 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page