Python wrapper for the mlld CLI
Project description
mlld Python SDK
Python wrapper for the mlld CLI.
Installation
pip install mlld
Requires: Node.js and mlld CLI installed (npm install -g mlld)
Quick Start
from mlld import Client
client = Client()
# Process a script
output = client.process('show "Hello World"')
print(output) # Hello World
# Execute a file with payload
result = client.execute('./agent.mld', {'text': 'hello'})
print(result.output)
# Static analysis
analysis = client.analyze('./module.mld')
print(analysis.exports)
API
Client
process(script, *, file_path=None, timeout=None)- Execute a script stringexecute(filepath, payload=None, *, state=None, dynamic_modules=None, timeout=None)- Run a fileanalyze(filepath)- Static analysis without execution
Module-level functions
For convenience, you can also use module-level functions:
import mlld
output = mlld.process('show "Hello"')
result = mlld.execute('./agent.mld', {'text': 'hello'})
analysis = mlld.analyze('./module.mld')
Requirements
- Python 3.10+
- Node.js runtime
- mlld CLI (
npm install -g mlld)
Documentation
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
mlld_sdk-0.1.0.tar.gz
(4.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mlld_sdk-0.1.0.tar.gz.
File metadata
- Download URL: mlld_sdk-0.1.0.tar.gz
- Upload date:
- Size: 4.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bb542b94853329801a4f3c06cd39eb630bc0f9030cd04edc32c0236679057c90
|
|
| MD5 |
a8434f77f18c9ff89a108a498ed2c90c
|
|
| BLAKE2b-256 |
66e6e6d199d890204e57d0365ac85c9e5e0393862e5b35f7b2d21efcae6fe774
|
File details
Details for the file mlld_sdk-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mlld_sdk-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
329596a78fcac8081e9f55ce87717e5ffe9595d65f10c8418a90c1e487225a38
|
|
| MD5 |
02a650c9f9b7db08ce386b8eb073ac96
|
|
| BLAKE2b-256 |
c0bef19213d7e2b5ef9b4c68e334de661cc4d403b7b3c02c04a46a488a54eb16
|