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
Usesasyncio.to_threadto keep the event loop responsive. -
Raw terminal input
Reads characters directly usingtermiosandtty.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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file c2e-1.dev10.tar.gz.
File metadata
- Download URL: c2e-1.dev10.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f4343c8123c1f32bc73812501a476f1b157de9158556511c06e9117d71883431
|
|
| MD5 |
14eb3160505c400230b54715f515b6fc
|
|
| BLAKE2b-256 |
055461bdc0ccb093ac59c84688ae9c6bd9ff4fd1ba1998cdd28abada5236d774
|
Provenance
The following attestation bundles were made for c2e-1.dev10.tar.gz:
Publisher:
release.yml on iFamished/C2E
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
c2e-1.dev10.tar.gz -
Subject digest:
f4343c8123c1f32bc73812501a476f1b157de9158556511c06e9117d71883431 - Sigstore transparency entry: 2604388291
- Sigstore integration time:
-
Permalink:
iFamished/C2E@c15efcf2293405ad94ca1c462ca5a1d519c7931e -
Branch / Tag:
refs/heads/main - Owner: https://github.com/iFamished
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@c15efcf2293405ad94ca1c462ca5a1d519c7931e -
Trigger Event:
push
-
Statement type:
File details
Details for the file c2e-1.dev10-py3-none-any.whl.
File metadata
- Download URL: c2e-1.dev10-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
14d94e8022bdc10b3a108395ad1ae6b5c28411c5af941151017a584ae6bd000e
|
|
| MD5 |
a1c893328bdfbfb5b99db1bb74fb475f
|
|
| BLAKE2b-256 |
4153087e91f4cd44b94ba0af37acc0465303b91b444af2ca5d6f4ca4768ba781
|
Provenance
The following attestation bundles were made for c2e-1.dev10-py3-none-any.whl:
Publisher:
release.yml on iFamished/C2E
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
c2e-1.dev10-py3-none-any.whl -
Subject digest:
14d94e8022bdc10b3a108395ad1ae6b5c28411c5af941151017a584ae6bd000e - Sigstore transparency entry: 2604388309
- Sigstore integration time:
-
Permalink:
iFamished/C2E@c15efcf2293405ad94ca1c462ca5a1d519c7931e -
Branch / Tag:
refs/heads/main - Owner: https://github.com/iFamished
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@c15efcf2293405ad94ca1c462ca5a1d519c7931e -
Trigger Event:
push
-
Statement type: