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

Uploaded CPython 3.8+macOS 11.0+ ARM64

execkit-0.6.0-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.0.tar.gz.

File metadata

  • Download URL: execkit-0.6.0.tar.gz
  • Upload date:
  • Size: 71.6 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.0.tar.gz
Algorithm Hash digest
SHA256 d3e0046a9f71b8edd484cacbd6835e44fef14f2418079f926f47178eb9c76f83
MD5 846328c0af5d0309cda4e5a8ed9b2253
BLAKE2b-256 4f8de1b27e91d946beec49b205ec1b3d2e6649dcc7e8e67ed02d9eecc0c99dbe

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for execkit-0.6.0-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 bee8d075f99229f2950d01978e4dac7864ed322221ac8d4ff15484b3f292412f
MD5 2cc857ac7f33d737370e3062de45e284
BLAKE2b-256 379528097e23ae2827b92aa343f049865a11a07c5a46cf9b45184c7be40d9055

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for execkit-0.6.0-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 390d4cb2a0c3b50dec775e7ad1b75a8a61a3a70a02cea200b190f6c602036dd1
MD5 a83f729019b4a44ad2f9e525c64cc039
BLAKE2b-256 b3d7fab8afe8989526d1055189960ba1536e5e3f4e33bc6ab01ea7f6a25d59c8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for execkit-0.6.0-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 08d31ccb0768f6f511675670cf2c9e03598a63a1c2db90ba6578d8056c05ec14
MD5 28d492f8254d1e8bc21a39346845c243
BLAKE2b-256 4e0087976aef8abca83596fb1adb19fa605fa7c24956073978629f9409ae56fc

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for execkit-0.6.0-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 86c55967792199a0c5248c9fa6e7a31fcf9f80d62beaf2cf9faf9b906763c1e0
MD5 5ceec77eab6ca0d60bcb44efeae31503
BLAKE2b-256 4127b9296c1167489c04a36c2265ea1db0b59016f497bb419af8dd8bdaa01fb6

See more details on using hashes here.

Provenance

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