Skip to main content

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.

Metadata

Release files for slimelearnpy 0.8.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for slimelearnpy 0.8.3
File Size Uploaded
slimelearnpy-0.8.3.tar.gz 6.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for slimelearnpy 0.8.3
File Interpreter ABI Platform
slimelearnpy-0.8.3-py3-none-any.whl Python 3 none any Details

Total release size: 9.9 kB

Release files / slimelearnpy-0.8.3.tar.gz

Download URL slimelearnpy-0.8.3.tar.gz
Size 6.1 kB
Tags Source
SHA-256 checksum
How to use checksums
662b2651a9b694e6bc7c845782dd38f3d9d0bb28f3e97153a3fa06c4bfd6c5d9
BLAKE2b-256 checksum
How to use checksums
8f3cf54b7f07752993b0aeeeccb330cd39a7aab5c2266cccd843ee93ae0b0ec4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.25.1

Release files / slimelearnpy-0.8.3-py3-none-any.whl

Download URL slimelearnpy-0.8.3-py3-none-any.whl
Size 3.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
56a121059db943c5de32dc80cd3074ec75dafc44e114495df3e358166df832b5
BLAKE2b-256 checksum
How to use checksums
7de5ad5541169b520775bab1b0fd173fe15e9b4b45d78121b00d2f1b9b72d36a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.25.1

Release history Release notifications | RSS feed

This release

0.8.3 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page