CCC (Clever Command-line Companion)
A smart command-line assistant powered by AI that helps you with terminal commands and tasks.
Installation
pip install ccc-cli-helper
Usage
Start the assistant:
ccc
Options:
-h, --help: Show help message-v, --version: Show version information--verbose: Enable debug mode--model MODEL: Specify AI model to use (default: gpt-4)--api-key KEY: Set OpenAI API key--api-base URL: Set custom API base URL-n, --no-stream: Disable streaming mode
Environment Variables
You can set the following environment variables:
AI_API_KEY: Your OpenAI API keyAI_MODEL: AI model to use (default: gpt-4)AI_API_BASE: Custom API base URL
Examples
- Start the assistant:
ccc
- Enable debug mode:
ccc --verbose
- Use a specific model:
ccc --model gpt-3.5-turbo
- Disable streaming output:
ccc -n
Development
Installation for Development
# Clone the repository
git clone https://github.com/yourusername/ccc.git
cd ccc
# Install in development mode
pip install -e .
Running Tests
The project uses pytest for testing. To run the tests:
# Run all tests
pytest
# Run tests with verbose output
pytest -v
# Run a specific test file
pytest tests/test_cli.py
# Run a specific test
pytest tests/test_cli.py::test_cli_help_works
# Run tests with coverage report
pytest --cov=ccc
Building the Package
# Use the build script (recommended)
./build.sh
The build script automatically cleans up old files before building:
- Removes old build directories (
dist/,build/) - Cleans all egg-info directories
- Removes Python cache files (
__pycache__/,*.pyc, etc.) - Generates both wheel and source distribution packages
# Or build manually
python -m build
If building manually, you may want to clean old files first:
# Clean before building
rm -rf dist/ build/ *.egg-info/ __pycache__/ .pytest_cache/
find . -name "*.pyc" -delete
License
MIT License
Metadata
Release files for ccc-cli-helper 0.2.2
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 |
|---|---|---|---|---|
| ccc_cli_helper-0.2.2.tar.gz | 5.6 kB | Without provenance | Details for ccc_cli_helper-0.2.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ccc_cli_helper-0.2.2-py3-none-any.whl | Python 3 | none | any | Details for ccc_cli_helper-0.2.2-py3-none-any.whl |
Total release size: 11.6 kB
Release files / ccc_cli_helper-0.2.2.tar.gz
| Download URL | ccc_cli_helper-0.2.2.tar.gz |
|---|---|
| Size | 5.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
941402e5ee2320f9b99302cc053d0a1b95c02a7a95df8239b4b0a34ab53cbe6b
|
|
BLAKE2b-256 checksum How to use checksums |
9d592a71e650ec1ee202948624cb813eedd037ed9dbf5807d815ddd10ef6811f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Release files / ccc_cli_helper-0.2.2-py3-none-any.whl
| Download URL | ccc_cli_helper-0.2.2-py3-none-any.whl |
|---|---|
| Size | 6.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2ad7aa6fdd4e64d23e7ebbc5db9ec597f3d9c8c336b2000085769b343e9be2bc
|
|
BLAKE2b-256 checksum How to use checksums |
34848342549c900fd81ea2159f2c7a39ac6404cfc033c1518831aa9d55b02d22
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Security for ccc-cli-helper 0.2.2
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.