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.fetchLatest('vanilla')
print(latest)
Fetching all the Jars:
import serverjars
allJars = serverjars.fetchAll('paper')
print(allJars)
Fetching types:
import serverjars
types = serverjars.fetchTypes()
print(types)
Fetching subtypes:
import serverjars
subtypes = serverjars.fetchTypes('bedrock')
print(subtypes)
Downloading Jars:
import serverjars
def on_finish(jar):
print('Downloaded', jar)
serverjars.downloadJar('snapshot', finishcommand=on_finish)
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.2.0.tar.gz
(4.8 kB
view details)
File details
Details for the file serverjars-api-1.2.0.tar.gz
.
File metadata
- Download URL: serverjars-api-1.2.0.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b1bc2d03dfe32d03f1bdd3268c0eb21cd67202dbe9477b44750995b119c9a296 |
|
MD5 | 7f848c2980bf0bbdf20626a59e187d5f |
|
BLAKE2b-256 | ff7b3154e6b3f656b0716fb836731b151226bf8726c0704f856f88bb9fb297d5 |