scic-cli
A ready-to-use interactive shell client for applications built with
scic-framework.
scic-cli does not implement application business logic. It creates an
independent SCICSession, presents the registered context tree, resolves user
instructions, executes functions, and renders structured results.
Features
- Interactive shell based on
prompt-toolkit. - One independent SCIC navigation session per client.
- Context-aware resource completion.
- Persistent command history.
- Rich tables, JSON, errors, descriptions, and tree rendering.
- Native support for synchronous and asynchronous SCIC functions.
- Built-in navigation and inspection commands.
- Works on Linux, Windows, and macOS.
- Programmatic API and
python -m scic_clilauncher.
Installation
python -m pip install scic-cli
For development:
python -m pip install -e ".[test,build]"
pytest
Application integration
from scic_cli import CLIConfig, SCICCLI
cli = SCICCLI(
scic,
config=CLIConfig(application_name="OpenShell Manager"),
)
raise SystemExit(cli.run())
Inside an existing event loop:
await cli.run_async()
Each SCICCLI creates its own SCICSession, so several CLI, WebGUI, API, or
DesktopGUI clients can share the same frozen SCIC registry without sharing
navigation state.
Generic launcher
Expose a SCIC object or zero-argument factory from a Python module:
# my_application.py
application = build_scic_application()
Launch it without writing a dedicated CLI entrypoint:
python -m scic_cli my_application:application --name "My Application"
A factory is also valid:
python -m scic_cli my_application:build_application
Shell commands
| Command | Purpose |
|---|---|
help, ? |
Show help |
ls |
List the active context |
cd <context> |
Enter a child context |
back, .. |
Move to the parent context |
root, / |
Return to the root context |
pwd |
Print the active context path |
describe [path] |
Describe a context or executable |
tree |
Render the complete registry tree |
clear |
Clear the terminal |
exit, quit |
Close the shell |
Any other line is forwarded unchanged to SCICSession.execute().
Example:
scic > ls
scic > cd math
scic/math > add 20 22
42
scic/math > describe add
scic/math > back
scic > exit
SCIC quoting uses the framework parser. Complex values can be passed as JSON
strings where the registered Executable supports them.
Design boundaries
scic-cli owns presentation and interactive navigation. It does not own:
- SCIC registry construction;
- business functions;
- permissions or authentication;
- remote transport;
- HTTP APIs;
- application persistence.
Those concerns remain in the application or in other SCIC clients.
Publishing
Run checks and build distributions:
./check.sh
Publish to TestPyPI:
./publish.sh --test
Publish to PyPI:
./publish.sh
The included GitHub Actions workflow can publish releases using PyPI Trusted Publishing after the repository/environment is configured.
License
MIT.
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 scic_cli-0.1.0.tar.gz.
File metadata
- Download URL: scic_cli-0.1.0.tar.gz
- Upload date:
- Size: 12.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0a6d1089e2b1e10140b75801ad4dad18820d2417668f0d13c885c97365886812
|
|
| MD5 |
1c804a21fc1895fa2412501a34abab95
|
|
| BLAKE2b-256 |
59d1a32df16a09f30864a82d75a8fa799a3c662ca5f1ce37f2599650dccf4e4c
|
File details
Details for the file scic_cli-0.1.0-py3-none-any.whl.
File metadata
- Download URL: scic_cli-0.1.0-py3-none-any.whl
- Upload date:
- Size: 11.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e13057ac83da04597192b912ef02d6b4da3e6636c14d08cde028dd9a64e12ccb
|
|
| MD5 |
4f22c8eea175b008e39d86a36b09b84b
|
|
| BLAKE2b-256 |
2ef259c0415c70f3f704b404234d0aada2cea46dc45edc9aa2080bca379ce601
|