Skip to main content

Here is a ready-to-use README.md in English tailored to projectcats-cli (pcat), covering packaging, profiles, module inspection/merging/splitting, isolated boxes, plugins, and the multitasking terminal.

# ProjectCats (`pcat`)

A lightweight Python CLI and multitasking terminal toolkit for packing projects into `.pcat` module archives, inspecting and splitting/merging builds, running isolated sandboxes (`pcat box`), and extending commands via plugins.

## Features

- **Project Packaging & Execution (`pack`, `unpack`, `run`, `info`)**: Pack directories or single files into split or single-chunk `.pcat` modules (`PCATIDX` / `PCATMOD` format) with `SHA-256` verification and optional execution entry points.
- **Build Profiles (`--profile`, `profiles`)**: Use predefined or custom profiles (`dev`, `release`, `data`, or custom entries in `~/.pcat/config.json`) with clear descriptions and chunk/executable settings.
- **Module Inspection & Manipulation (`inspect`, `merge`, `split`)**:
  - `pcat inspect`: View project metadata, chunk sizes, `SHA-256` checksums, and integrity status without extracting to a target folder.
  - `pcat merge`: Combine multiple `.pcat` archives into a single bundle with conflict handling (`error`, `overwrite`, `prefix`).
  - `pcat split`: Split a `.pcat` archive into multiple smaller `.pcat` modules (`--per-file` or `--parts`).
- **Isolated Boxes (`pcat box`)**: Run background or foreground workspaces (`up`, `run`, `ps`, `logs`, `attach`, `stop`, `rm`) with optional virtual environments and live console attachment.
- **Plugin System (`plugins`, `plugin init`)**: Load custom `.py` plugins from `~/.pcat/plugins`, `./plugins`, or `PCAT_PLUGINS_DIR` to register new CLI subcommands.
- **Project Cat Terminal (`pcat -o`)**: Multi-pane / tab terminal UI (`prompt_toolkit`) with `0.05s` UI refresh, built-in `EDIT`/`CMD` file editor (`edit` / `vim`), box `attach` / `detach`, and non-blocking process output streaming.

## Installation

Install from PyPI:

```bash
pip install projectcats-cli

Or install locally in editable mode from source:

pip install -e .

Quick Start

# Check CLI version and help
pcat
pcat --help

# Create a new project from a template
pcat new my_app

# Pack a project using a build profile
pcat pack ./my_app --profile release -o ./dist/my_app.pcat

# Inspect archive metadata, chunks, and SHA-256 integrity
pcat inspect ./dist/my_app.pcat

# Run a packed project directly
pcat run ./dist/my_app.pcat

# Open the multitasking terminal
pcat -o

CLI Commands Overview

Command Description
pcat -o Launch Project Cat Terminal (grid and tabs layouts)
pcat new <name...> [--force] Create one or more projects from a template (pcat new --list)
pcat pack <path> [--profile name] Pack files or directories into .pcat modules
pcat profiles List build profiles and their descriptions
pcat inspect <file.pcat> [--json] Inspect chunks, sizes, and SHA-256 checksums
pcat merge <out.pcat> <parts...> Merge multiple .pcat archives into one bundle
`pcat split <file.pcat> [--per-file --parts n]`
pcat run <file.pcat> [-- args...] Execute a runnable .pcat archive
pcat unpack <file.pcat> [-o dir] Verify and extract a .pcat archive
`pcat box {up run
pcat plugins / pcat plugin init <name> List loaded plugins or scaffold a new plugin template
`pcat config {show set

Writing Custom Plugins

Create a .py file in ~/.pcat/plugins/ (or generate a starter file with pcat plugin init my_cmd):

from __future__ import annotations

import argparse

PLUGIN_VERSION = "0.1.0"
PLUGIN_DESCRIPTION = "Example plugin adding a custom 'hello' command."
ENABLED = True


def _setup_parser(parser: argparse.ArgumentParser) -> None:
    parser.add_argument("--name", default="world", help="Target name")


def _handle_hello(args: argparse.Namespace) -> int:
    print(f"Hello, {args.name}!")
    return 0


def register(ctx) -> None:
    ctx.register_command(
        name="hello",
        handler=_handle_hello,
        help="Print a greeting message.",
        parser_setup=_setup_parser,
    )

Terminal Shortcuts (pcat -o)

  • Ctrl + N: Create a new pane or tab
  • Ctrl + D: Close current pane (prompts to exit if only one remains)
  • Ctrl + T: Switch between GRID and TABS layout modes
  • Ctrl + Arrow Keys: Move focus between panes or tabs
  • Ctrl + U / Ctrl + J: Scroll output up / down (Alt + U / Alt + J for faster scroll)
  • Ctrl + K: Jump to bottom of output
  • Ctrl + V: Paste clipboard text
  • Ctrl + Q: Quit pcat

Inside the built-in editor (edit <file> or vim <file>):

  • Ctrl + I: Toggle between EDIT and CMD mode
  • In CMD mode: s (save), sq (save & quit), q (quit without saving), py / python / runbypython / rbp (run buffer with Python)

<ElicitationsGroup message="Next steps for your release:">
  <Elicitation label="Prepare a clean pyproject.toml" query="Create a complete pyproject.toml for projectcats-cli with metadata, description, dependencies, and the pcat entry point."/>
  <Elicitation label="Add a LICENSE file" query="Write a clean MIT LICENSE file in English for my projectcats-cli repository."/>
</ElicitationsGroup>

Metadata

Release files for projectcats-cli 1.1.0

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

Source distribution (sdist)

Source distribution for projectcats-cli 1.1.0
File Size Uploaded Provenance Actions
projectcats_cli-1.1.0.tar.gz 50.2 kB Without provenance Details for projectcats_cli-1.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for projectcats-cli 1.1.0
File Interpreter ABI Platform Actions
projectcats_cli-1.1.0-py3-none-any.whl Python 3 none any Details for projectcats_cli-1.1.0-py3-none-any.whl

Total release size: 102.7 kB

Release files / projectcats_cli-1.1.0.tar.gz

Download URL projectcats_cli-1.1.0.tar.gz
Size 50.2 kB
Tags Source
SHA-256 checksum
How to use checksums
0c8d0f3712e226ec2f18d1eb82d85b0e5a9a8f9bfa3d7f0649827fd5eb1726da
BLAKE2b-256 checksum
How to use checksums
898d4ae257f5f4d96700d2a166d2dd59183b702a3f47ff76a408e959ac00d5e2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.2

Release files / projectcats_cli-1.1.0-py3-none-any.whl

Download URL projectcats_cli-1.1.0-py3-none-any.whl
Size 52.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
af0e7b64ae3c86d907e4cb316e977685e2f6336c0bac5c31e9abab85c1a0c613
BLAKE2b-256 checksum
How to use checksums
3c570d6a2138f3dabd51a293fcd8d2f9b25d1933389fb61ab86bd73960d0de70
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.2

Security for projectcats-cli 1.1.0

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