A modular CLI platform for running Python microtools from a shared tools directory.
Project description
Axle v1.2.0
A modular CLI platform for running Python microtools from a shared tools directory.
🚀 Quick install
Method 1: Install from GitHub (Recommended)
pip install git+https://github.com/skpaul82/axle-cli.git
That's it! You can now run:
axle list
axle run 1 "your prompt"
axle scan
Method 2: Manual Installation
# Clone the repository
git clone https://github.com/skpaul82/axle-cli.git
cd axle-cli
# Install dependencies
pip install --upgrade pip
pip install -r requirements.txt
# Install the package
pip install -e .
Note: PyPI installation (
pip install axle-cli) is planned for future releases. For v1.2.0, please use the GitHub installation method above.
🎉 What's New in v1.2.0
✨ Optional Security & Code Review
- Security and code review are now DISABLED by default for faster execution
- Use
--securityand--code-reviewflags to enable per-run - Use
axle security enableandaxle review enableto enable persistently - Configuration stored in
~/.axle/config.json
🔄 Built-in Update Command
axle update- Update Axle CLI to the latest versionaxle update --check- Check for updates without installing- Automatic dependency updates and package reinstallation
📊 Tool Metadata System
axle metadata scan- Scan all tools and build metadata cacheaxle metadata show <tool>- Show detailed tool informationaxle metadata search <query>- Search tools by name, functions, or descriptionaxle metadata list- List all tools with summaries- View tool functions, parameters, documentation, and imports
📚 Improved Documentation
- Updated command reference with all new commands
- Better inline help and error messages
- Enhanced user experience
📦 Features
🔒 Built-in Security (Optional)
- Pre-execution validation: Tools can be scanned for security issues before running (optional)
- Dangerous pattern detection: Blocks eval(), exec(), shell=True, and more
- Hardcoded secret detection: Finds passwords, API keys, tokens in code
- Configurable security policies: strict, warn, permissive modes
- On-demand validation: Enable per-run with
--securityflag or persistently withaxle security enable - Dependency vulnerability scanning: Integrated pip-audit for package security
🔍 Automatic Code Review (Optional)
- Pre-execution code quality checks: Automatic review before running tools (optional)
- Auto-fixing: Fixes formatting (Black) and import sorting (isort) issues
- Clear feedback: Shows exactly what's wrong and how to fix it
- Non-blocking: Won't stop your workflow by default
- Manual review: Run
axle reviewanytime for comprehensive checks - CI/CD integration: Catch issues locally before they reach CI
- On-demand review: Enable per-run with
--code-reviewflag or persistently withaxle review enable
Core Features
- Modular platform for running ANY Python tool consistently
- SEO-focused microtools (keyword checker, meta-tag auditor, etc.)
- Daily-life automation helpers from the terminal
axle listshows all tools with numbersaxle run <tool_number_or_name> <prompt>executes a tool- Configurable tools folder path
🛠️ Commands
| Command | Purpose |
|---|---|
axle -V, --version |
Show Axle version. |
axle list |
List all tools in the tools/ directory. |
axle run 1 "prompt" |
Run tool by number and pass a prompt. |
axle run tool_name ... |
Run by filename (without .py). |
axle run 1 "prompt" --security |
Run tool with security validation enabled. |
axle run 1 "prompt" --code-review |
Run tool with code review enabled. |
axle info tool_name |
Show tool description. |
axle scan |
Scan dependencies for known vulnerabilities. |
axle doctor |
Check Python, disk, and required modules. |
axle path |
Show current tools folder location. |
axle review <tool> |
Run code review on a specific tool. |
axle review --all |
Run code review on all tools. |
axle review --fix |
Apply automatic fixes to issues found. |
axle review --enable |
Enable code review by default. |
axle review --disable |
Disable code review by default. |
axle review --show |
Show current code review configuration. |
axle security |
Show or configure security policy. |
axle security --enable |
Enable security validation by default. |
axle security --disable |
Disable security validation by default. |
axle security --show |
Show current security configuration. |
axle update |
Update Axle CLI to the latest version. |
axle update --check |
Check for updates without installing. |
axle metadata scan |
Scan tools and build metadata cache. |
axle metadata show <tool> |
Show detailed metadata for a tool. |
axle metadata search <query> |
Search tools by name, functions, etc. |
axle metadata list |
List all tools with summaries. |
axle help |
Show all commands. |
🧱 Requirements
- Python 3.10+
- RAM: 8 GB minimum, 16 GB preferred
- Disk: 5–8 GB free for models and caches
- CPU: 2 cores minimum, 4 cores preferred
Install via pip install -r requirements.txt and pip install -e .
📝 Docs
See:
docs/index.md– overviewdocs/security.md– security validation (MANDATORY)docs/installation.md– step-by-step setupdocs/usage.md– how to use toolsdocs/commands.md– detailed command reference
🔧 Adding Your Own Tools
Axle is designed as a platform for tools - you can easily add your own Python scripts!
Tools Directory
Run axle path to see your tools directory location. By default, it's created at:
<axle_install_location>/tools/
How to Add Tools
-
Find your tools directory:
axle path -
Create a new Python file in the tools directory:
# Example: tools/04_my_tool.py -
Implement the required functions:
def get_description() -> str: """Return one-line description of the tool.""" return "Brief description of what your tool does" def main(prompt: str) -> None: """Main entry point. Called by CLI router.""" # Your tool logic here print(f"Processing: {prompt}")
-
Run your tool:
axle list # Your tool appears in the list axle run 4 "your prompt" # Run by number axle run my_tool "your prompt" # Run by name
Tool Requirements
- ✅ Must implement
get_description()function (returns string) - ✅ Must implement
main(prompt: str)function (no return value) - ✅ File must be valid Python 3.10+
- ✅ Optional: Use numeric prefix for ordering (e.g.,
04_my_tool.py)
Learn more: www.axle.sanjoypaul.com
🌐 Community & Support
If this helps your workflow:
- ⭐ Star on GitHub: skpaul82/axle-cli
- 🐦 Follow on X: @_skpaul82
- 🌐 Website: www.axle.sanjoypaul.com
- 🌐 FB Group: Agentic AIO
- 🌐 More Tools and Documentation: Visit Agentic AIO website.
📄 License
MIT License – see LICENSE for details.
🤝 Contributing
Contributions are welcome! Please see docs/contributing.md for guidelines.
📚 Troubleshooting
Having issues? Check docs/troubleshooting.md for common problems and solutions.
♥ Built for the community. ♥ Shared with love for creators, builders, and learners.
Project details
Release history Release notifications | RSS feed
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 axle_cli-1.2.0.tar.gz.
File metadata
- Download URL: axle_cli-1.2.0.tar.gz
- Upload date:
- Size: 73.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
94267a04cb7cdb6061f7c88486cf4edd2f5bc779715d46ba83fc14c42aa1f507
|
|
| MD5 |
4c94caa6a36dd7f08c9d09f28c740a42
|
|
| BLAKE2b-256 |
f93526360063eda63627f854bc84892f48f8c7fb88b404ffcf9990a6375131cd
|
File details
Details for the file axle_cli-1.2.0-py3-none-any.whl.
File metadata
- Download URL: axle_cli-1.2.0-py3-none-any.whl
- Upload date:
- Size: 83.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.20
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a561ab080fa20b55894ed4c5cc01fac69f6d3df2a4d446bf08de3a39ae92b772
|
|
| MD5 |
f1183ad88778105c4fe54c83ba806278
|
|
| BLAKE2b-256 |
36d97cb58d57bd88a89c902351cd0fc1574546f8cba37bde92ecb521b6102f27
|