Skip to main content

No project description provided

Project description

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

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

agentscript_pyo3-0.1.1.tar.gz (12.9 kB view hashes)

Uploaded Source

Built Distribution

agentscript_pyo3-0.1.1-cp310-cp310-macosx_11_0_arm64.whl (721.8 kB view hashes)

Uploaded CPython 3.10 macOS 11.0+ ARM64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page