Assume you are really annoyed with Lua and want to use a reasonable scripting language. Say, Python.
This module lets you do that.
It establishes a bidirectional link between Mudlet/Lua and Python and exchanges structured messages between the two.
Mudlet can do HTTP requests in the background, so we send a “long poll” PUSH request to the Python server. The reply contains the incoming messages (as a JSON array).
There are a couple of optimizations to be had:
if “httpGET” is available, we use that instead of an empty PUSH.
if the platform supports Unix FIFO nodes in the file system, we use that for sending to Python, as that’s faster and less expensive than a HTTP request per message.
The only required parameter on the Mudlet side is the port number.
Errors / exceptions are generally propagated to the caller.
Metadata
Release files for mudlet 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mudlet-0.1.2.tar.gz | 13.2 kB | Without provenance | Details for mudlet-0.1.2.tar.gz |
Release files / mudlet-0.1.2.tar.gz
| Download URL | mudlet-0.1.2.tar.gz |
|---|---|
| Size | 13.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f5c8d01a7c5fd251c491dafc481c43177a38fa272b9f52fc0cf5227e04221256
|
|
BLAKE2b-256 checksum How to use checksums |
d761f09386edbe08c23ca54c39eb6487f00dbddef84db0da2a4664c4e18b4925
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Python-urllib/3.8
|
Security for mudlet 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.