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.1.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.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.7.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.7.1-cp38-abi3-macosx_11_0_arm64.whl (2.5 MB view details)

Uploaded CPython 3.8+macOS 11.0+ ARM64

execkit-0.7.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.7.1.tar.gz.

File metadata

  • Download URL: execkit-0.7.1.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.1.tar.gz
Algorithm Hash digest
SHA256 b8487cc22bf1b92c2f4202d5c1195b0bc4dfca6a0694233cc9b03d4bb5e00a1e
MD5 0520f583eb70b1156165114f4c23cf4d
BLAKE2b-256 d8382ec31a90912ca181c5bfe920340f7a68e349e41c63062e63d2f2ab6d27ef

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for execkit-0.7.1-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 09555e611ca1b799efe5cb9a0fb496c0d02839a1fd3184f28026b82ce38d8ac2
MD5 d323eddc81b5c1162999d64ef45deea2
BLAKE2b-256 68d32934e04b5558d786737008f464a941c56dee962bc74e0039a7bd7ada24ec

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for execkit-0.7.1-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 13a51a69a61edeaf055ba5289b39c26444118faa50585f23a0782c3e24697914
MD5 2e7a995faae4fac253c86acdba00d113
BLAKE2b-256 96f4c3e2557d6d6309204da17415daf3987757806371aa68b520dc93754ed361

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for execkit-0.7.1-cp38-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 06df5b588bfba4f65b28357578f2212cdc5a8eb3d4b07d60f259672939a94c77
MD5 15a14847e85539cf4443e0fe87da89f9
BLAKE2b-256 cef5463908cb2c5e06cba78aeab658297dea390ab2212ba868180dc39414b051

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for execkit-0.7.1-cp38-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 da4de151cf9fc999ff35e4cedddb6b778c8ca0e3a9e7cb0bfe63833344577aca
MD5 6ccef1b5810c43416c238ea71dfe293a
BLAKE2b-256 cf5e19931f195a7e27d90e5e2da63890e8005561721ed66e0ed0a38eb9e78272

See more details on using hashes here.

Provenance

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