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 Provenance Actions
slimelearnpy-0.8.3.tar.gz 6.1 kB Without provenance Details for slimelearnpy-0.8.3.tar.gz

Built distribution (wheel)

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

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

Security for slimelearnpy 0.8.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.8.3 This release

2 release files No provenance

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