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 details)

Uploaded Source

Built Distribution

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

Uploaded CPython 3.10 macOS 11.0+ ARM64

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

Hashes for agentscript_pyo3-0.1.1.tar.gz
Algorithm Hash digest
SHA256 7ff7a0f75ef16f643dcb685a8a0cf4d79cc97a933c8403a3e79ab5f0d458d32f
MD5 fbe80970aeafb65353c5741e517eaddf
BLAKE2b-256 48fc58f671a68ad1f076cb0e4b6e844c9330fcffaaba693ed74f74d8c2cc3d79

See more details on using hashes here.

File details

Details for the file agentscript_pyo3-0.1.1-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for agentscript_pyo3-0.1.1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e212dec5712c51d388d941f14fc58f5cdc42f42e7b3106b0aa096c0489ed99c9
MD5 d7210e54780245872ed508d1e02ba1a1
BLAKE2b-256 957b4803c34f6293a0199cd957e46cac467c2592943ff74d3fceebbc993e38c6

See more details on using hashes here.

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