The unofficial Python wrapper for serverjars.com
Project description
serverjars-api
The unofficial Python wrapper for serverjars.com
Installation
Install the module with pip:
pip3 install serverjars-api
Update existing installation: pip3 install serverjars-api --upgrade
Code Examples:
Fetching the latest jar:
import serverjars
latest = serverjars.fetch_latest('vanilla', 'vanilla')
print(latest)
Fetching all the Jars:
import serverjars
allJars = serverjars.fetch_all('vanilla', 'snapshot')
print(allJars)
Fetching types:
import serverjars
subtypes = serverjars.fetch_types('modded')
print(subtypes)
Downloading Jars:
import serverjars
serverjars.download_jar('vanilla', "vanilla")
Create and run a Minecraft server
import serverjars
app = serverjars.App.create('vanilla', "vanilla", fp="svr/server.jar")
app.run()
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
serverjars-api-1.3.0.tar.gz
(6.4 kB
view hashes)