slimelearn.py version
Project description
slimelearn.py
A very easy to use API wrapper for SlimeLearn written in Python.
Installing
Python 3.9.1 or higher is required
To install the library:
pip install slimelearnpy
Client Example
The following code recives updates from the server every 3 seconds, and executes a jump if the player is ready to do so.
from slimelearnpy import SlimeLearn
sl = SlimeLearn()
conf = {
"req": "config",
"payload": {
"mode": "sec",
"delay": 3,
}
}
def my_agent(input_data):
if input_data["player"]["state"] == 'idle':
sl.jump()
sl.run("//localhost:8080", config=conf, function=my_agent)
More examples can be found in the examples folder.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
slimelearnpy-0.8.3.tar.gz
(6.1 kB
view hashes)
Built Distribution
Close
Hashes for slimelearnpy-0.8.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 56a121059db943c5de32dc80cd3074ec75dafc44e114495df3e358166df832b5 |
|
MD5 | f39ea72626a65e9c4a73b3c1b21befee |
|
BLAKE2b-256 | 7de5ad5541169b520775bab1b0fd173fe15e9b4b45d78121b00d2f1b9b72d36a |