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 details)
File details
Details for the file serverjars-api-1.3.0.tar.gz
.
File metadata
- Download URL: serverjars-api-1.3.0.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f5e9d28216ee2901756bdb2e2365104320a8fcbcbedbc3447b12d7fcff5a42a |
|
MD5 | 44cecd799a477be25b8f8ddc45b3b179 |
|
BLAKE2b-256 | ae0bd63bcc73048cc2ddce8cfc53911217d01cfca39fed54ef90d20247d8c4fe |