# 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()
```
Raw data
{
"_id": null,
"home_page": "https://github.com/legopitstop/serverjars-py/",
"name": "serverjars-api",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": null,
"keywords": "ServerJars, Minecraft, Servers, Bedrock, API",
"author": "Legopitstop",
"author_email": "officiallegopitstop@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/ae/0b/d63bcc73048cc2ddce8cfc53911217d01cfca39fed54ef90d20247d8c4fe/serverjars-api-1.3.0.tar.gz",
"platform": null,
"description": "# serverjars-api\n\n[![PyPI](https://img.shields.io/pypi/v/serverjars-api)](https://pypi.org/project/serverjars-api/)\n[![Python](https://img.shields.io/pypi/pyversions/serverjars-api)](https://www.python.org/downloads//)\n![Downloads](https://img.shields.io/pypi/dm/serverjars-api)\n![Status](https://img.shields.io/pypi/status/serverjars-api)\n[![Issues](https://img.shields.io/github/issues/legopitstop/serverjars-python-api-wrapper)](https://github.com/legopitstop/serverjars-python-api-wrapper/issues)\n[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black)\n\nThe unofficial Python wrapper for [serverjars.com](https://serverjars.com/)\n\n## Installation\nInstall the module with pip:\n```bat\npip3 install serverjars-api\n```\nUpdate existing installation: `pip3 install serverjars-api --upgrade`\n\n## Code Examples:\nFetching the latest jar:\n```python\nimport serverjars\nlatest = serverjars.fetch_latest('vanilla', 'vanilla')\nprint(latest)\n```\n\nFetching all the Jars:\n```python\nimport serverjars\nallJars = serverjars.fetch_all('vanilla', 'snapshot')\nprint(allJars)\n```\n\nFetching types:\n```python\nimport serverjars\nsubtypes = serverjars.fetch_types('modded')\nprint(subtypes)\n```\n\nDownloading Jars:\n```python\nimport serverjars\n\nserverjars.download_jar('vanilla', \"vanilla\")\n```\n\nCreate and run a Minecraft server\n```python\nimport serverjars\n\napp = serverjars.App.create('vanilla', \"vanilla\", fp=\"svr/server.jar\")\napp.run()\n```\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "The unofficial Python wrapper for serverjars.com",
"version": "1.3.0",
"project_urls": {
"Homepage": "https://github.com/legopitstop/serverjars-py/"
},
"split_keywords": [
"serverjars",
" minecraft",
" servers",
" bedrock",
" api"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "ae0bd63bcc73048cc2ddce8cfc53911217d01cfca39fed54ef90d20247d8c4fe",
"md5": "44cecd799a477be25b8f8ddc45b3b179",
"sha256": "5f5e9d28216ee2901756bdb2e2365104320a8fcbcbedbc3447b12d7fcff5a42a"
},
"downloads": -1,
"filename": "serverjars-api-1.3.0.tar.gz",
"has_sig": false,
"md5_digest": "44cecd799a477be25b8f8ddc45b3b179",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 6382,
"upload_time": "2024-04-15T03:49:42",
"upload_time_iso_8601": "2024-04-15T03:49:42.506785Z",
"url": "https://files.pythonhosted.org/packages/ae/0b/d63bcc73048cc2ddce8cfc53911217d01cfca39fed54ef90d20247d8c4fe/serverjars-api-1.3.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-04-15 03:49:42",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "legopitstop",
"github_project": "serverjars-py",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "serverjars-api"
}