Skip to main content

Shell + file I/O primitives for Agentix sandboxes

Project description

agentix-runtime-basic

Shell + file I/O primitives for Agentix sandboxes. One wheel, two namespaces:

Namespace Purpose
agentix.bash execute shell commands, stream stdout/stderr
agentix.files upload/download/list files inside the sandbox

These two used to ship as separate agentix-bash and agentix-files distributions. They consolidated here because every realistic sandbox image needs both — splitting them was friction without isolation benefit (neither has any non-stdlib runtime deps).

Install

pip install agentix-runtime-basic

Use

from agentix import RuntimeClient
from agentix.bash import run as bash_run, run_stream as bash_stream
from agentix.files import upload, download

async with RuntimeClient(sandbox.runtime_url) as c:
    await c.remote(upload, path="data.json", content=blob)
    result = await c.remote(bash_run, command="cat data.json | jq .")
    async for ev in c.remote(bash_stream, command="pytest -q"):
        ...  # ev is a BashStdout / BashStderr / BashExit / BashError

Each namespace is "the package IS the namespace": top-level async functions are the remote-callable surface, dataclasses/types like BashResult and UploadResult are importable for return-type annotations.

Building a sandbox image

runtime/Dockerfile is the base image bundle builds extend from. Most users invoke it indirectly:

agentix build runtime-basic -o my-agent:0.1.0

License

MIT — see LICENSE.

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

agentix_runtime_basic-0.1.3.tar.gz (8.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agentix_runtime_basic-0.1.3-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file agentix_runtime_basic-0.1.3.tar.gz.

File metadata

  • Download URL: agentix_runtime_basic-0.1.3.tar.gz
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.4 {"installer":{"name":"uv","version":"0.11.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"TencentOS Server","version":"4.4","id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for agentix_runtime_basic-0.1.3.tar.gz
Algorithm Hash digest
SHA256 fd77878c709918b914e0eda9e88b1f6284d687408ed53bd33c74bd2619214ee0
MD5 90efe70604694a9da3615bab8ed4a12b
BLAKE2b-256 89d8cc84b69cecc475f756d43f8138325375f19cf9c36800dc19043815f16303

See more details on using hashes here.

File details

Details for the file agentix_runtime_basic-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: agentix_runtime_basic-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 8.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.4 {"installer":{"name":"uv","version":"0.11.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"TencentOS Server","version":"4.4","id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for agentix_runtime_basic-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 994f445dff3ec3a58e2f7dae91ca151f236f234c23f014c00c6b0e0df601737a
MD5 3947392e5751c80fda8f5bdb45907c8c
BLAKE2b-256 ba9088814abae38bdbd04d0f26c334a6abd6b3b4feb02b1e895fc71edda655a9

See more details on using hashes here.

Supported by

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