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()
help
module:string python_efun_help(string efunname)
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.
You can deactivate single efuns with a configfile .ldmud-efuns
in your home directory, with the following contents
[efuns]
name_of_the_efun = off
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()
ldmudefuns.help.register()
Have fun!
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size ldmud_efuns-0.0.5-py3.7.egg (16.3 kB) | File type Egg | Python version 3.7 | Upload date | Hashes View |
Filename, size ldmud_efuns-0.0.5-py3-none-any.whl (8.9 kB) | File type Wheel | Python version py3 | Upload date | Hashes View |
Filename, size ldmud-efuns-0.0.5.tar.gz (6.2 kB) | File type Source | Python version None | Upload date | Hashes View |
Close
Hashes for ldmud_efuns-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e57dcdd4cf77ff675b1f516dca4d6f7f7fb60f94db073ac22e6f91282f8b8d26 |
|
MD5 | 7bf39b086bf67f03c2d32c028a8136e6 |
|
BLAKE2-256 | e5c481363b620332bd9e5d1636fdd0903d81c8624c809c5c4fe0b271553fc2bf |