agentscript.pyo3
Python bindings for the Rust agentscript interpreter.
Binds Agentscript.rs to Agentscript.
Install
pip install agentscript_pyo3
Usage
from agentscript_pyo3 import Parser
parser = Parser()
message = 'We need to do translation <Invoke tool="Translator" action="translate" parameters={"text": "Hello", "options": {"from": "en", "to": "es"}} /> with some tailing text'
parser.parse(message)
parsed_data = parser.get_parsed_data()
print(parsed_data)
Develop
To test
python -m venv .venv
source .venv/bin/activate
maturin develop
make test
To publish
maturin publish
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
agentscript_pyo3-0.1.1.tar.gz
(12.9 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 agentscript_pyo3-0.1.1.tar.gz.
File metadata
- Download URL: agentscript_pyo3-0.1.1.tar.gz
- Upload date:
- Size: 12.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
maturin/1.4.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7ff7a0f75ef16f643dcb685a8a0cf4d79cc97a933c8403a3e79ab5f0d458d32f
|
|
| MD5 |
fbe80970aeafb65353c5741e517eaddf
|
|
| BLAKE2b-256 |
48fc58f671a68ad1f076cb0e4b6e844c9330fcffaaba693ed74f74d8c2cc3d79
|
File details
Details for the file agentscript_pyo3-0.1.1-cp310-cp310-macosx_11_0_arm64.whl.
File metadata
- Download URL: agentscript_pyo3-0.1.1-cp310-cp310-macosx_11_0_arm64.whl
- Upload date:
- Size: 721.8 kB
- Tags: CPython 3.10, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via:
maturin/1.4.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e212dec5712c51d388d941f14fc58f5cdc42f42e7b3106b0aa096c0489ed99c9
|
|
| MD5 |
d7210e54780245872ed508d1e02ba1a1
|
|
| BLAKE2b-256 |
957b4803c34f6293a0199cd957e46cac467c2592943ff74d3fceebbc993e38c6
|