Metadata-Version: 2.1
Name: serverjars-api
Version: 1.3.0
Summary: The unofficial Python wrapper for serverjars.com
Home-page: https://github.com/legopitstop/serverjars-py/
Author: Legopitstop
Author-email: officiallegopitstop@gmail.com
License: MIT
Keywords: ServerJars,Minecraft,Servers,Bedrock,API
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3.11
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE

# serverjars-api

[![PyPI](https://img.shields.io/pypi/v/serverjars-api)](https://pypi.org/project/serverjars-api/)
[![Python](https://img.shields.io/pypi/pyversions/serverjars-api)](https://www.python.org/downloads//)
![Downloads](https://img.shields.io/pypi/dm/serverjars-api)
![Status](https://img.shields.io/pypi/status/serverjars-api)
[![Issues](https://img.shields.io/github/issues/legopitstop/serverjars-python-api-wrapper)](https://github.com/legopitstop/serverjars-python-api-wrapper/issues)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black)

The unofficial Python wrapper for [serverjars.com](https://serverjars.com/)

## Installation
Install the module with pip:
```bat
pip3 install serverjars-api
```
Update existing installation: `pip3 install serverjars-api --upgrade`

## Code Examples:
Fetching the latest jar:
```python
import serverjars
latest = serverjars.fetch_latest('vanilla', 'vanilla')
print(latest)
```

Fetching all the Jars:
```python
import serverjars
allJars = serverjars.fetch_all('vanilla', 'snapshot')
print(allJars)
```

Fetching types:
```python
import serverjars
subtypes = serverjars.fetch_types('modded')
print(subtypes)
```

Downloading Jars:
```python
import serverjars

serverjars.download_jar('vanilla', "vanilla")
```

Create and run a Minecraft server
```python
import serverjars

app = serverjars.App.create('vanilla', "vanilla", fp="svr/server.jar")
app.run()
```
