Skip to main content

Download and fetch details about Minecraft server jars.

Project description

serverjars-api

Tests PyPI Python Downloads Status Issues Code style: black

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)

Uploaded Source

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

Hashes for serverjars-api-1.4.0.tar.gz
Algorithm Hash digest
SHA256 f75321fbb7d8339da8d9c635f531f7cb8c96ae8a697015a83975a73cbe885cfe
MD5 a45da45ee1e4ac8c856f3ff9ffda6f9a
BLAKE2b-256 2d9f7867066483f641ec42efffbe23ef09f0ef752ff6252e3ad746eb10b90e8f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page