https://github.com/legopitstop/serverjars
Download and fetch details about Minecraft server jars.
https://github.com/legopitstop/serverjars
api bedrock hacktoberfest java minecraft modtoberfest pypi python pythonpackage serverjars servers
Last synced: 10 months ago
JSON representation
Download and fetch details about Minecraft server jars.
- Host: GitHub
- URL: https://github.com/legopitstop/serverjars
- Owner: legopitstop
- License: mit
- Created: 2022-09-05T23:11:44.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-07-01T02:47:28.000Z (over 1 year ago)
- Last Synced: 2025-01-22T19:41:18.587Z (11 months ago)
- Topics: api, bedrock, hacktoberfest, java, minecraft, modtoberfest, pypi, python, pythonpackage, serverjars, servers
- Language: Python
- Homepage: https://pypi.org/project/serverjars-api/
- Size: 105 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# serverjars-api

[](https://pypi.org/project/serverjars-api/)
[](https://www.python.org/downloads//)


[](https://github.com/legopitstop/serverjars-py/issues)
[](https://github.com/ambv/black)
Download and fetch details about Minecraft server jars.
## Installation
Install the module with pip:
```bat
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
- [Documentation](https://docs.lpsmods.dev/serverjars-api)
- [Source Code](https://github.com/legopitstop/serverjars-py)
## Dependencies
| Name | Description |
| ---------------------------------------------- | ------------------------------------------------ |
| [requests](https://pypi.org/project/requests/) | Requests is a simple, yet elegant, HTTP library. |
| [pydantic](https://pypi.org/project/pydantic/) | Data validation using Python type hints |
## Code Examples:
Fetching the latest jar:
```python
import serverjars
latest = serverjars.fetch_latest('vanilla', 'release')
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', "release")
```
Create and run a Minecraft server
```python
import serverjars
app = serverjars.App.create('vanilla', "release", fp="svr/server.jar")
app.run()
```