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.

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.6.1.tar.gz (71.8 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.6.1-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.6.1-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.6.1-cp38-abi3-macosx_11_0_arm64.whl (2.5 MB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

execkit-0.6.1-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.6.1.tar.gz.

File metadata

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

File hashes

Hashes for execkit-0.6.1.tar.gz
Algorithm Hash digest
SHA256 63b2499729de165a92c99c4b2ab62ef4267168e600b323ae52bb5dc4ad612295
MD5 19aa46ff8160fb04379aeca41fb1c187
BLAKE2b-256 4e3964b259a074f574f4510891e8734829ba8e5ecdf4b481eee7eaa908da48ad

See more details on using hashes here.

Provenance

The following attestation bundles were made for execkit-0.6.1.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.6.1-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for execkit-0.6.1-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 304eac86c9c08cb3518492b1abe39d33a4291a05c5f73b4f2defd21b5d4bd448
MD5 ff00b632fb60dbbf089dcdb6354a9b16
BLAKE2b-256 4148813e873bc0a8f360417e28826756c9b95ea19f8d1b937f59bd91bcdcb90b

See more details on using hashes here.

Provenance

The following attestation bundles were made for execkit-0.6.1-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.6.1-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for execkit-0.6.1-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 77cd0ae2d9fb5d0ab70a82c842ef58e4ea5fe2933b8ae282a9d2d6d850f4e90d
MD5 569674657cae3f051d6662e5e5bf92b7
BLAKE2b-256 8083f83b6dd4ee77457240701e4ddd79d346f459a5e529bdd7a7dcbb6313914c

See more details on using hashes here.

Provenance

The following attestation bundles were made for execkit-0.6.1-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.6.1-cp38-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for execkit-0.6.1-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 01905345e2d0af1028c90ec4c099fbd69757e0c8d0627aa5ed0f5fbc51f13468
MD5 d4127ff017ebd10e6a953ff7833364c0
BLAKE2b-256 b71539eadcadfd751b14299e78cc1e4007ed5f62296228099a42c209925d2ca4

See more details on using hashes here.

Provenance

The following attestation bundles were made for execkit-0.6.1-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.6.1-cp38-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for execkit-0.6.1-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 625e6972f24bbf8374adf1a1756d2a055354adfc751b4dda6cd70f507cdc64a0
MD5 83e14728b84421a9af8c60684721fae6
BLAKE2b-256 e71cf95ec50eee835fbf188ed216bad33b1b460dd377f87ab99b2b0a69e7c8bb

See more details on using hashes here.

Provenance

The following attestation bundles were made for execkit-0.6.1-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