Python Efun package for LDMud
Project description
Python Efun package for LDMud
These are python efuns to be used with LDMud 3.5 and later.
This package contains the following efuns:
strings
module:string wrap(string str [, int len [, int left]])
string wrap_say(string intro, string text [, int len [, int left]])
string left(string text, int len [,string pattern])
json
module:mixed json_parse(string jsonstring)
string json_serialize(mixed data)
reload
module:void python_reload()
Usage
Install from the python package index
The efun package can be downloaded from the python package index:
pip3 install --user ldmud-efuns
Build & install the package yourself
You can build the package yourself.
First clone the repository
git clone https://github.com/ldmud/python-efuns.git
Install the package
cd python-efuns
python3 setup.py install --user
Automatically load the modules at startup
Use startup.py as the Python startup script for LDMud. It will automatically detect the installed python efuns and load them.
Manually load the modules at startup
Add the following lines to your startup script:
import ldmudefuns.strings
import ldmudefuns.json
import ldmudefuns.reload
ldmudefuns.strings.register()
ldmudefuns.json.register()
ldmudefuns.reload.register()
Have fun!
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
ldmud-efuns-0.0.1.tar.gz
(3.8 kB
view hashes)
Built Distributions
ldmud_efuns-0.0.1-py3.5.egg
(9.2 kB
view hashes)
Close
Hashes for ldmud_efuns-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b35d3073eaf9d005574ff9746b538436e3cf426e159080dfd564226450295b57 |
|
MD5 | d97ed21453ded6dba0ca342312fa7f6c |
|
BLAKE2b-256 | 2e265cd4524e7dbd6489c116463ca2f8c3c784f329f74d22e09771c714ea7894 |