Skip to main content

Helper Lib for LLSE Python Runtime

Project description

LLSE-Python Helper Lib

wakatime

Developing……

Install

Use pdm to install, then you can import it in your plugin

pdm add llpy-helper-lib

Usage

# you can from `llpy` import any built-ins from ll
from llpy import ll, mc, Version, logger
from llpy.utils import listen

# register a listener
mc.listen("onServerStarted", lambda: logger.info("The Server Started!"))


# or you can use the decorator from `llpy.utils`
@listen("onServerStarted")
def _():
    logger.info("The Server Started!")


# and more...

logger.info("Test Plugin Loaded!")

ll.registerPlugin(
    "test",
    "test",
    [0, 0, 1, Version.Dev],
    {
        "Author": "student_2333",
    },
)

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

llpy-helper-lib-0.0.1.dev5.tar.gz (40.1 kB view hashes)

Uploaded Source

Built Distribution

llpy_helper_lib-0.0.1.dev5-py3-none-any.whl (62.6 kB view hashes)

Uploaded Python 3

Supported by

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