Skip to main content

cutip-blocks

Python 3.11+ Rust License: MIT

Rust-backed workflow blocks for CUTIP. Write Python, execute Rust.

Every function you call from cutip_blocks is a compiled Rust binary under the hood — SSH via russh, Docker/Podman via bollard, HTTP via reqwest, YAML/JSON via serde. Zero Python dependencies. The Python GIL is released during all I/O.

Install

pip install cutip-blocks

Modules

Module Rust crate What it does
ssh russh Persistent SSH sessions — connect(), exec(), probe()
kubectl serde Kubernetes ops over SSH — get, exec, find_pod, patch_deployment, patch_file_from_pod
container bollard Docker/Podman — start, stop, remove, exec, pull
file std::fs + serde copy, copy_tree, read/write_json, read/write_yaml, replace
http reqwest get, post, put, delete with JSON + TLS toggle
network bollard create, remove, exists
service reqwest + bollard poll_until_ready, wait_for_exit
validate std path_exists, env_var_set, ip_valid
config string ops render_template, substitute_vars

Usage

SSH + kubectl (remote VM operations)

from cutip_blocks import ssh, kubectl

with ssh.connect(host="10.0.0.1", username="root", password=pw) as sesh:
    sesh.probe()  # verify connectivity

    kube = kubectl.connect(sesh, namespace="prod")
    kube.get("deployment", name="web")
    kube.find_pod(name_prefix="web")

    password = kube.get_secret_value(secret="db-creds", key="password")
    kube.exec(target="deploy/web", cmd="cat /app/config.py")

    kube.patch_file_from_pod(
        deployment="web",
        source_file="/opt/app/handler.py",
        dest_dir="/root/patches",
        replacements={"old_value": "new_value"},
    )

    kube.patch_deployment(
        deployment="web",
        volume_name="config-override",
        host_path="/root/patches/handler.py",
        mount_path="/opt/app/handler.py",
    )

Container management

from cutip_blocks import container

rt = container.connect()  # auto-detect Docker/Podman
rt.pull("nginx", tag="latest")
rt.start("my-container")
result = rt.exec("my-container", "nginx -t")
print(result.stdout)
rt.stop("my-container")
rt.remove("my-container")

File operations

from cutip_blocks import file

data = file.read_json("config.json")
file.copy_tree("src/", "build/deps/")
file.replace("config.yaml", "old_value", "new_value")
file.write_yaml("output.yaml", {"key": "value"})

HTTP

from cutip_blocks import http

resp = http.post("https://api.example.com/token",
                 json={"username": "admin", "password": "secret"},
                 verify_tls=False)
token = resp.json()["access_token"]

Development

Requires Rust toolchain + Python 3.11+.

git clone https://github.com/joshuajerome/cutip-blocks.git
cd cutip-blocks
python -m venv .venv && source .venv/bin/activate
pip install maturin pytest
maturin develop
pytest tests/ -v

Ecosystem

Project Description
cutip Workflow automation framework
cutip-blocks Rust-backed blocks (this repo)
cutip-desktop Visual companion — DAG, container management

License

MIT

Metadata

Release files for rsty 0.11.4

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

Built distributions (wheels)

Table of built distributions (wheels) for rsty 0.11.4
File Actions
rsty-0.11.4-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details for rsty-0.11.4-cp313-cp313-win_amd64.whl
rsty-0.11.4-cp313-cp313-manylinux_2_28_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.28+ x86-64 Details for rsty-0.11.4-cp313-cp313-manylinux_2_28_x86_64.whl
rsty-0.11.4-cp313-cp313-macosx_11_0_arm64.whl CPython 3.13 CPython 3.13 macOS 11.0+ ARM64 Details for rsty-0.11.4-cp313-cp313-macosx_11_0_arm64.whl
rsty-0.11.4-cp313-cp313-macosx_10_12_x86_64.whl CPython 3.13 CPython 3.13 macOS 10.12+ x86-64 Details for rsty-0.11.4-cp313-cp313-macosx_10_12_x86_64.whl
rsty-0.11.4-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details for rsty-0.11.4-cp312-cp312-win_amd64.whl
rsty-0.11.4-cp312-cp312-manylinux_2_28_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.28+ x86-64 Details for rsty-0.11.4-cp312-cp312-manylinux_2_28_x86_64.whl
rsty-0.11.4-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details for rsty-0.11.4-cp312-cp312-macosx_11_0_arm64.whl
rsty-0.11.4-cp312-cp312-macosx_10_12_x86_64.whl CPython 3.12 CPython 3.12 macOS 10.12+ x86-64 Details for rsty-0.11.4-cp312-cp312-macosx_10_12_x86_64.whl
rsty-0.11.4-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details for rsty-0.11.4-cp311-cp311-win_amd64.whl
rsty-0.11.4-cp311-cp311-manylinux_2_28_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.28+ x86-64 Details for rsty-0.11.4-cp311-cp311-manylinux_2_28_x86_64.whl
rsty-0.11.4-cp311-cp311-macosx_11_0_arm64.whl CPython 3.11 CPython 3.11 macOS 11.0+ ARM64 Details for rsty-0.11.4-cp311-cp311-macosx_11_0_arm64.whl
rsty-0.11.4-cp311-cp311-macosx_10_12_x86_64.whl CPython 3.11 CPython 3.11 macOS 10.12+ x86-64 Details for rsty-0.11.4-cp311-cp311-macosx_10_12_x86_64.whl

Total release size: 69.1 MB

Release files / rsty-0.11.4-cp313-cp313-win_amd64.whl

Download URL rsty-0.11.4-cp313-cp313-win_amd64.whl
Size 4.9 MB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
7f9bd7a8d63f9e0d18bc78485afad2a319e2997eaa65a8824d0fe41ebb4b71df
BLAKE2b-256 checksum
How to use checksums
0449c165b6d470c00f58c946100b07460eacbf744369e2b14203902aaecba1a8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / rsty-0.11.4-cp313-cp313-manylinux_2_28_x86_64.whl

Download URL rsty-0.11.4-cp313-cp313-manylinux_2_28_x86_64.whl
Size 8.3 MB
Tags CPython 3.13 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
888dd38b3fe8ea931fba26da974989f9c91265e6710fc072617510167777ce3e
BLAKE2b-256 checksum
How to use checksums
c934b7861e632332816899193427d8d3886375ca0e40c3de8e7a976916758b62
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / rsty-0.11.4-cp313-cp313-macosx_11_0_arm64.whl

Download URL rsty-0.11.4-cp313-cp313-macosx_11_0_arm64.whl
Size 4.7 MB
Tags CPython 3.13 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
4c5c652ca1dbb865e724116a59fe55d523ff7db01d557fe5f3ffc32f6833e244
BLAKE2b-256 checksum
How to use checksums
f7c9fba30f3d29567d17831c7284995ff8ef7a6c8ba6712c33c80babd41c9714
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / rsty-0.11.4-cp313-cp313-macosx_10_12_x86_64.whl

Download URL rsty-0.11.4-cp313-cp313-macosx_10_12_x86_64.whl
Size 5.0 MB
Tags CPython 3.13 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
00beabde0c3588343258873534326a06a07e8787189fdb92ab881e76762c4289
BLAKE2b-256 checksum
How to use checksums
f61d153129b9baecd94e3861d73f47202138f1c737b04020349675589cd1b575
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / rsty-0.11.4-cp312-cp312-win_amd64.whl

Download URL rsty-0.11.4-cp312-cp312-win_amd64.whl
Size 4.9 MB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
56ed97608e11a52b333457688872aac19ff5eb5ec1db7f793c03b9b991a5dccc
BLAKE2b-256 checksum
How to use checksums
e6e473e26cfbf24468dde9ced6f5e65fb2bda3530378d247184ae0bee0d9c8d5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / rsty-0.11.4-cp312-cp312-manylinux_2_28_x86_64.whl

Download URL rsty-0.11.4-cp312-cp312-manylinux_2_28_x86_64.whl
Size 8.3 MB
Tags CPython 3.12 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
f559b352994b22f30306f06cee120142fc542053f1edfe63cdd03848ab68ae1b
BLAKE2b-256 checksum
How to use checksums
183987ff2dd302f79c13f99182d034d2976caf17fe276e4ff56e560d4a2ccd3b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / rsty-0.11.4-cp312-cp312-macosx_11_0_arm64.whl

Download URL rsty-0.11.4-cp312-cp312-macosx_11_0_arm64.whl
Size 4.7 MB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
8ccd66a808ded4f9f7bb168d164730dd5f077f181bde08363516a812d3bfcec9
BLAKE2b-256 checksum
How to use checksums
b8527dd9992d6b454f84fbab7a43696580248c4256023987ad8de0575c1378aa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / rsty-0.11.4-cp312-cp312-macosx_10_12_x86_64.whl

Download URL rsty-0.11.4-cp312-cp312-macosx_10_12_x86_64.whl
Size 5.0 MB
Tags CPython 3.12 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
19f09a78426297cf63d38ab18354f1f3debb7ae2b68d53363a5f8276fb1ca14a
BLAKE2b-256 checksum
How to use checksums
d81ee0f4bcceaad634a028c6c67fc933d2383c51e335482d13d8137559ab8c55
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / rsty-0.11.4-cp311-cp311-win_amd64.whl

Download URL rsty-0.11.4-cp311-cp311-win_amd64.whl
Size 4.9 MB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
f26589cc43707f315450eccc4f4eb7f725b2200cb4973e576d60f0066891886c
BLAKE2b-256 checksum
How to use checksums
d7b2726c87521c4ebfc542ca7918a3c334ad756ccc6deb5a2567d7a1b1da686f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / rsty-0.11.4-cp311-cp311-manylinux_2_28_x86_64.whl

Download URL rsty-0.11.4-cp311-cp311-manylinux_2_28_x86_64.whl
Size 8.4 MB
Tags CPython 3.11 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
c02f17a39fdbc81adeae28715524e4d58777bf1ca184184cf2be14f4d4a5cbe4
BLAKE2b-256 checksum
How to use checksums
a34d55d17aca99de51940b828f6f758b54a399f202799d619d6ed775532fadba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / rsty-0.11.4-cp311-cp311-macosx_11_0_arm64.whl

Download URL rsty-0.11.4-cp311-cp311-macosx_11_0_arm64.whl
Size 4.8 MB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
4157e0eb637ed01c641710f87145c66bd61a837ea5cdbaff91f14f03a38dc0ae
BLAKE2b-256 checksum
How to use checksums
71e2d3a72ff7660bf24fb1529f7d4b1424cf432e1f5a7552ca76f5a99022ca33
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Release files / rsty-0.11.4-cp311-cp311-macosx_10_12_x86_64.whl

Download URL rsty-0.11.4-cp311-cp311-macosx_10_12_x86_64.whl
Size 5.0 MB
Tags CPython 3.11 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
499fc546cb96f0387d957dee3f96cccc79c1c8da81fa4d559d93ce3fed9f2519
BLAKE2b-256 checksum
How to use checksums
5905e762ffe117c0a0dfd4ad65dd919da837a228546bf10f1ba662d9aa296960
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.12

Security for rsty 0.11.4

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