Download and fetch details about Minecraft server jars.
Project description
serverjars-api
Download and fetch details about Minecraft server jars.
Installation
Install the module with pip:
pip3 install serverjars-api
Update existing installation: pip3 install serverjars-api --upgrade
Features
- Access vanilla or modded Minecraft jars.
- No 3rd party APIs.
- Add support for your own jar service.
Links
Dependencies
Name | Description |
---|---|
requests | Requests is a simple, yet elegant, HTTP library. |
pydantic | Data validation using Python type hints |
Code Examples:
Fetching the latest jar:
import serverjars
latest = serverjars.fetch_latest('vanilla', 'release')
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', "release")
Create and run a Minecraft server
import serverjars
app = serverjars.App.create('vanilla', "release", 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.4.0.tar.gz
(7.8 kB
view details)
File details
Details for the file serverjars-api-1.4.0.tar.gz
.
File metadata
- Download URL: serverjars-api-1.4.0.tar.gz
- Upload date:
- Size: 7.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.19
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f75321fbb7d8339da8d9c635f531f7cb8c96ae8a697015a83975a73cbe885cfe |
|
MD5 | a45da45ee1e4ac8c856f3ff9ffda6f9a |
|
BLAKE2b-256 | 2d9f7867066483f641ec42efffbe23ef09f0ef752ff6252e3ad746eb10b90e8f |