Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

C2E — Console Command Engine

C2E is a lightweight, async‑friendly console command framework for Python.
It provides a raw‑mode terminal engine (LiveCLI) and a flexible command DSL for building interactive CLIs with subcommands, parameters, flags, and argument metadata.

C2E is extracted from the ServerWatcher CLI and generalized into a reusable standalone library.


Features

  • Async console loop
    Uses asyncio.to_thread to keep the event loop responsive.

  • Raw terminal input
    Reads characters directly using termios and tty.setraw.

  • Command DSL
    Decorators for commands, children, parameters, flags, and argument metadata.

  • Automatic help generation
    Built‑in help for commands, subcommands, and argument‑level usage.

  • Dynamic parameter/flag injection
    Child functions receive parameter values and flag states via wrapped globals.

  • View‑safe printing
    safePrint() integrates with external buffer systems without breaking terminal output.

  • Minimal dependencies
    Only Python standard library + optional MapRes for color formatting.


Installation

pip install c2e

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

c2e-1.dev9.tar.gz (19.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

c2e-1.dev9-py3-none-any.whl (18.7 kB view details)

Uploaded Python 3

File details

Details for the file c2e-1.dev9.tar.gz.

File metadata

  • Download URL: c2e-1.dev9.tar.gz
  • Upload date:
  • Size: 19.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for c2e-1.dev9.tar.gz
Algorithm Hash digest
SHA256 1405b3b0dbea572e8d3d4123ca5614a7609dd67f0bbb80abdd434a0e996e7034
MD5 5f7f8a5da994cd2bb5994849f82d6371
BLAKE2b-256 93627102e7eaed4c19b8ad69aa9b1f4298efdc5dc081c37af6fe4033cd7225a7

See more details on using hashes here.

Provenance

The following attestation bundles were made for c2e-1.dev9.tar.gz:

Publisher: release.yml on iFamished/C2E

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file c2e-1.dev9-py3-none-any.whl.

File metadata

  • Download URL: c2e-1.dev9-py3-none-any.whl
  • Upload date:
  • Size: 18.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for c2e-1.dev9-py3-none-any.whl
Algorithm Hash digest
SHA256 b7709c41d200a3f4b7bea8c9f20c4a2f528dcd9d4d36516a67572598d483178b
MD5 46edf601d90bd6bc735c110b11f3fca3
BLAKE2b-256 e056dc3677472b21ccc07eac699cb8cae24c89a344d4d535b40f3a49e8cc15ba

See more details on using hashes here.

Provenance

The following attestation bundles were made for c2e-1.dev9-py3-none-any.whl:

Publisher: release.yml on iFamished/C2E

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.
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