Skip to main content

CactusCat

The ultra-fast, Rust-powered bridge between Python and the Web.

Python Rust Wry License

CactusCat is a modern, high-performance hybrid framework designed to build desktop applications using Python for logic and Modern Web Tech (React, Vue, Svelte, Next.js) for the UI. Rebuilt from the ground up in Rust, it provides a "Zero-Cost" abstraction layer for enterprise-grade applications.


Recent Evolution: The "Betrayal of Tauri"

CactusCat has evolved beyond a simple WebView wrapper. It is now a Multi-Engine Application Platform.

  • CNB (Cactus Native Bundle): A new hybrid packaging paradigm. We use PyInstaller for dependency analysis (tree-shaking) but replace the actual bundling with a high-performance Rust Packer.
  • Shielded VFS Bootloader: Applications run inside a memory-backed, isolated, and encrypted Virtual File System. Your source code never touches the disk in plain text.
  • Multi-Engine Hotswapping: Hotswap your browser backend with a single CLI flag. Use the lightweight Native Engine (Tao/Wry) for performance, or the Chrome Engine (Enterprise Chromium stack) for full web compatibility.
  • Aggressive Pruning: The native Rust packer prunes non-essential metadata (.dist-info, test suites, docs) resulting in binaries significantly smaller than standard Python bundlers.

Features

  • Native Rust Engine: Built on tao and wry, eliminating legacy ctypes overhead.
  • Multi-Engine Runtime: Choose between Native WebView or a full Chromium/Electron stack.
  • Reactive State: Magic bi-directional sync between Python app.state and JavaScript ccat.state.
  • Zstd-Compressed Archives: Custom .cat archive format for ultra-fast startup and small footprints.
  • MetaEdit Integration: Powered by the brand new metaedit Rust crate for 1:1 binary metadata surgery.
  • Powerhouse CLI: One-stop shop for initializing, running, and packaging your apps.

Quick Start

1. Installation

Install the development version (pre-compiled wheels available):

pip install cactuscat

2. Scaffold a New Project

cactuscat init MySweetApp --template react

3. Run with Engine Hotswapping

# Default Native Run
cactuscat run --dev

# Run with Enterprise Chrome Engine
cactuscat run --dev --engine chrome

Code Example

Python Backend (app.py)

from cactuscat import App

app = App()
app.state.counter = 0

@app.expose
def increment():
    app.state.counter += 1
    return f"Count is now {app.state.counter}"

app.run()

Frontend UI (App.jsx)

import ccat from 'ccat' // Unified CactusCat Client

async function handleAction() {
    // Dynamic Python calling
    const msg = await ccat.increment();
    console.log(msg);
    
    // Access reactive state directly
    console.log(ccat.state.counter); 
}

CLI Reference

Command Description
init Scaffold a project with React, Vue, Svelte, or Next.js.
run --dev Launch backend + frontend dev server with hot-reload.
run --engine <name> Launch with a specific engine (native or chrome).
package --native Trigger the [CNB] workflow with aggressive Rust pruning.
package --secure Build a native Rust bootloader with an encrypted payload.
engine install Manage browser runtimes (e.g., download Chrome engine).
doctor Comprehensive system health and dependency check.

Architecture: The CNB Paradigm

Unlike traditional "OneDir" or "OneFile" approaches, CactusCat's Native Bundle logic works in three stages:

  1. Analysis: PyInstaller maps the dependency tree.
  2. Pruning: Rust strips the "fat" (PDFs, tests, info folders) and Compresses.
  3. Execution: A Rust Bootloader initializes a shielded environment, decrypts the ccat:// assets, and executes the entry point from memory.

License

CactusCat is open-source software licensed under the MIT License.

Metadata

Release files for cactuscat 0.1.9

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

Source distribution (sdist)

Source distribution for cactuscat 0.1.9
File Size Uploaded Provenance Actions
cactuscat-0.1.9.tar.gz 537.4 kB With provenance Details for cactuscat-0.1.9.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cactuscat 0.1.9
File Interpreter ABI Platform Actions
cactuscat-0.1.9-cp311-cp311-manylinux_2_39_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.39+ x86-64 Details for cactuscat-0.1.9-cp311-cp311-manylinux_2_39_x86_64.whl

Total release size: 82.6 MB

Release files / cactuscat-0.1.9.tar.gz

Download URL cactuscat-0.1.9.tar.gz
Size 537.4 kB
Tags Source
SHA-256 checksum
How to use checksums
e72ee5be64a7cb55c9afc4c1d781a44dd27af2756e3760c5c0eb0e7e0a6a9cb8
BLAKE2b-256 checksum
How to use checksums
a301b5ee19fa937df7a83e147684f8d0d2d0235954b86044db3490ca722e8005
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 20, 2026.

Transparency log

Release files / cactuscat-0.1.9-cp311-cp311-manylinux_2_39_x86_64.whl

Download URL cactuscat-0.1.9-cp311-cp311-manylinux_2_39_x86_64.whl
Size 82.1 MB
Tags CPython 3.11 Linux glibc 2.39+ x86-64
SHA-256 checksum
How to use checksums
2370687b454f58ef2f00f546d56fa1075d7d8be44577b0f8dee2a4d742f6f022
BLAKE2b-256 checksum
How to use checksums
4343674c7efb593286302a932c8c4e16914afb5a4adfea14f02999207cbd4bf3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 20, 2026.

Transparency log

Security for cactuscat 0.1.9

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for cactuscat-0.1.9.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 20, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

0.1.9 This release

2 release files Full provenance

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