Skip to main content

kubexec

Kubekec logo

Execute commands and scripts on Kubernetes pods with Docker access.

Designed for use in CLIMB Notebooks.

Installation

pip install -e .

Usage

kubexec [-h] [-d DOCKER_IMAGE] [-n NAMESPACE] [-p POD_NAME] 
        [-m MEMORY] [-c CPU] [-w WORKDIR] [-v VOLUME_MOUNT]
        [--config CONFIG] [--context CONTEXT] [--create-pod]
        [--cleanup] [--verbose] [--dry-run] TARGET

Examples

# Run a simple command
kubexec 'echo "Hello, Kubernetes!"'

# Use specific Docker image
kubexec -d python:3.9 'python -c "import sys; print(sys.version)"'

# Run with resource limits
kubexec -m 4Gi -c 2 'stress --cpu 2 --timeout 60s'

# Execute script file
kubexec ./my_script.sh

# Use existing pod
kubexec -p my-existing-pod 'ls -la'

# Volume mounting
kubexec -v /host/data:/pod/data 'ls /pod/data'

# Save output to local files (works like local commands)
kubexec "ls -la > output.txt"

# Bioinformatics example with SPAdes genome assembler
# This will create spades-out/ directory in your current working directory
kubexec -d community.wave.seqera.io/library/spades:4.1.0--77799c52e1d1054a \
    "spades.py -1 tests/reads/s_6_1.fastq.gz -2 tests/reads/s_6_2.fastq.gz -o spades-out"

Metadata

Release files for kubexec 0.6.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kubexec 0.6.2
File Size Uploaded Provenance
kubexec-0.6.2.tar.gz 15.3 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for kubexec 0.6.2
File Interpreter ABI Platform
kubexec-0.6.2-py3-none-any.whl Python 3 none any Details

Total release size: 32.9 kB

Release files / kubexec-0.6.2.tar.gz

Download URL kubexec-0.6.2.tar.gz
Size 15.3 kB
Tags Source
SHA-256 checksum
How to use checksums
9b220b246cb6e1e89fddec8375ac70b7cfda05c955ccb270d1fd3f6a20ba2c31
BLAKE2b-256 checksum
How to use checksums
5544bee7efac8912980f203b025501469a7e8205215c4038a251bb2d67b1d83f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.5

Release files / kubexec-0.6.2-py3-none-any.whl

Download URL kubexec-0.6.2-py3-none-any.whl
Size 17.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
46d0f3d117739564b2341f9dfb734320380a202d5bb556ac2717e8a2b1db61f3
BLAKE2b-256 checksum
How to use checksums
43364ab6dab296aa7db15faea8d6f4ca22cfeeea513dfc878678a59358b8e1ed
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.5

Security for kubexec 0.6.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page