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 tabCtrl + D: Close current pane (prompts to exit if only one remains)Ctrl + T: Switch betweenGRIDandTABSlayout modesCtrl + Arrow Keys: Move focus between panes or tabsCtrl + U/Ctrl + J: Scroll output up / down (Alt + U/Alt + Jfor faster scroll)Ctrl + K: Jump to bottom of outputCtrl + V: Paste clipboard textCtrl + Q: Quitpcat
Inside the built-in editor (edit <file> or vim <file>):
Ctrl + I: Toggle betweenEDITandCMDmode- In
CMDmode: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.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| projectcats_cli-1.0.3.tar.gz | 39.8 kB | Without provenance | Details for projectcats_cli-1.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| projectcats_cli-1.0.3-py3-none-any.whl | Python 3 | none | any | Details for projectcats_cli-1.0.3-py3-none-any.whl |
Total release size: 81.2 kB
Release files / projectcats_cli-1.0.3.tar.gz
| Download URL | projectcats_cli-1.0.3.tar.gz |
|---|---|
| Size | 39.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
436e98dd3292611b14308f987483916727984e1f1f8eae9224d8b2b2f62dca1d
|
|
BLAKE2b-256 checksum How to use checksums |
05270e34128934a47927a1a60b5223943414087053bbea6861aeca51dbff23b7
|
| 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.0.3-py3-none-any.whl
| Download URL | projectcats_cli-1.0.3-py3-none-any.whl |
|---|---|
| Size | 41.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c53a14c22134f70947f60058f7ec07be312ee5f967e83cfd14c85ef7f4d20a33
|
|
BLAKE2b-256 checksum How to use checksums |
7935c647ec61f981a7ca7d97ddbabf7841c91ef22eee1ada17d0ef7362c10462
|
| 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.0.3
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.