Helper Lib for LLSE Python Runtime
Project description
LLSE-Python Helper Lib
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
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
llpy-helper-lib-0.0.1.dev5.tar.gz
(40.1 kB
view hashes)
Built Distribution
Close
Hashes for llpy-helper-lib-0.0.1.dev5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5edbff6e5d153730d4df54c7893688c75ed3833c4ed6add754d131d93ae1ef90 |
|
MD5 | 3de208c4d05f9be9e7d3e768bc9a32c6 |
|
BLAKE2b-256 | cca510e4839fb5f3f3ab43acd0a14b1b18fd5ec08a14c11773d21829313968fb |
Close
Hashes for llpy_helper_lib-0.0.1.dev5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4f097c5ea3cf1bccc259114560c501235cb9b039c945ed3bf97a117cb2f32abe |
|
MD5 | 0c82d0f8e47ad1413db2550e9dfb20eb |
|
BLAKE2b-256 | 102dc8ae105abba28375c099efbfe4dced9d4bd7d565670d856fd67f9bb6f264 |