Skip to main content

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


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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

slimelearnpy-0.8.3-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file slimelearnpy-0.8.3.tar.gz.

File metadata

  • Download URL: slimelearnpy-0.8.3.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.25.1

File hashes

Hashes for slimelearnpy-0.8.3.tar.gz
Algorithm Hash digest
SHA256 662b2651a9b694e6bc7c845782dd38f3d9d0bb28f3e97153a3fa06c4bfd6c5d9
MD5 24bff7635c441fcbe2ec4fc1c0acbd97
BLAKE2b-256 8f3cf54b7f07752993b0aeeeccb330cd39a7aab5c2266cccd843ee93ae0b0ec4

See more details on using hashes here.

File details

Details for the file slimelearnpy-0.8.3-py3-none-any.whl.

File metadata

  • Download URL: slimelearnpy-0.8.3-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.25.1

File hashes

Hashes for slimelearnpy-0.8.3-py3-none-any.whl
Algorithm Hash digest
SHA256 56a121059db943c5de32dc80cd3074ec75dafc44e114495df3e358166df832b5
MD5 f39ea72626a65e9c4a73b3c1b21befee
BLAKE2b-256 7de5ad5541169b520775bab1b0fd173fe15e9b4b45d78121b00d2f1b9b72d36a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page