Here is the simple usage list of ServerJars wrapper:
import serverjars as sj
#Initalize Client
client = sj.Client()
#Initalize Category (Optional)
paper = client.Category("paper")
#List Versions (Optional max)
client.GetVersions("paper")
paper.GetVersions(max=5)
#Get Details of Version (Optional version)
client.GetDetails("paper", "latest")
paper.GetDetails()
#Get Details of Latest Version
client.GetLatestDetails("paper")
paper.GetLatestDetails()
#Download (Optional version, fileName)
client.Download("paper", "1.18.2", "downloads/{}")
paper.Download()
#Download Latest (Optional fileName)
client.DownloadLatest("paper", "paper.jar")
paper.Download("latest")
Distributed under the GPL 3.0 license. See LICENSE
for more information.