Skip to main content

Stateful, structured, safe shell sessions for AI agents - over local shells, SSH, and Docker.

Project description

execkit (Python)

Stateful, structured, safe shell sessions for AI agents - over local shells, SSH, and Docker. Native bindings to the execkit Rust core.

pip install execkit
import execkit
from execkit import Session, Policy

with Session.local(policy=Policy(deny=["rm"]), timeout=30.0) as s:
    r = s.exec("cd /app && npm ci")
    print(r.stdout, r.exit_code, r.cwd)

State (cwd, env) persists across exec calls. Every result is a structured ExecResult (split stdout/stderr, exit code, cwd, duration), already secret-redacted and output-bounded. Commands pass an advisory policy fence first.

Async callers: r = await asyncio.to_thread(s.exec, "npm ci") (the native call releases the GIL).

Unix-only (local sessions need a POSIX shell). See the project README for the full picture and the operator security model.

License

Apache-2.0.

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

execkit-0.7.2.tar.gz (74.2 kB view details)

Uploaded Source

Built Distributions

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

execkit-0.7.2-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.8 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ x86-64

execkit-0.7.2-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.4 MB view details)

Uploaded CPython 3.8+manylinux: glibc 2.17+ ARM64

execkit-0.7.2-cp38-abi3-macosx_11_0_arm64.whl (2.5 MB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

execkit-0.7.2-cp38-abi3-macosx_10_12_x86_64.whl (2.6 MB view details)

Uploaded CPython 3.8+macOS 10.12+ x86-64

File details

Details for the file execkit-0.7.2.tar.gz.

File metadata

  • Download URL: execkit-0.7.2.tar.gz
  • Upload date:
  • Size: 74.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for execkit-0.7.2.tar.gz
Algorithm Hash digest
SHA256 698da10a9e509e7b0ca89c1f3c6f1645832f488cc2386da7bf5bedc468e8f473
MD5 5b366d93b58a9dd190f03b9cac5971ca
BLAKE2b-256 1d625a6653ecc089575e06e69627469b2613afe848b7676132272ac766a3072f

See more details on using hashes here.

Provenance

The following attestation bundles were made for execkit-0.7.2.tar.gz:

Publisher: wheels.yml on blinkingbit-oss/execkit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file execkit-0.7.2-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for execkit-0.7.2-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 86c7b76cf45def85e57a2ac375e8a5a61955c2fa7206c4b3b142cebe8bd8c572
MD5 e5b73b892d375d00d5002bbb064102a3
BLAKE2b-256 9bf73a06a516dc9dc69b8202de257d80d5998279a188cfdcfd80deb10a06d774

See more details on using hashes here.

Provenance

The following attestation bundles were made for execkit-0.7.2-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: wheels.yml on blinkingbit-oss/execkit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file execkit-0.7.2-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for execkit-0.7.2-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 86458ac4ac0557f04781fff6db0b6c59fd6ecbda9e2401cd966655b342d9c5a9
MD5 44c938528355362dc3773a8733a97430
BLAKE2b-256 1d6a178a8fddedadc17359a2bc3b9dd00598a8b145178ffe358f6b61691f81d1

See more details on using hashes here.

Provenance

The following attestation bundles were made for execkit-0.7.2-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: wheels.yml on blinkingbit-oss/execkit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file execkit-0.7.2-cp38-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for execkit-0.7.2-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b28f0e3b7c9941f869fcb0f787087c9d811731b8d2d1e951807a1c85ade23a0e
MD5 8f9fb576fb8ee6250ba6d9bcb9afdae6
BLAKE2b-256 1299225a84d0fb4758d5b1ead81ebefe401bb5297f10b99524f98c82e89ff98e

See more details on using hashes here.

Provenance

The following attestation bundles were made for execkit-0.7.2-cp38-abi3-macosx_11_0_arm64.whl:

Publisher: wheels.yml on blinkingbit-oss/execkit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file execkit-0.7.2-cp38-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for execkit-0.7.2-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 96e092fc84a8743ab5b11de4dbab5cbae38d2f5ce23c9af157322293df7847d3
MD5 b3c860e37fd40f1a6c90cd86b35eaa57
BLAKE2b-256 9e009e52b3970eacea5cc8b3f2af9900e22dfd6717d4ff1ae5352fd42901e285

See more details on using hashes here.

Provenance

The following attestation bundles were made for execkit-0.7.2-cp38-abi3-macosx_10_12_x86_64.whl:

Publisher: wheels.yml on blinkingbit-oss/execkit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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