A world-class Python CLI template powered by Typer and rich.
Project description
World-Class Python CLI Template
This repository is a state-of-the-art starting point for building Python Command Line Interfaces (CLIs). It's optimized for both human developers and the Antigravity AI pair-programming agent.
Core Technologies
- Framework: Typer with Rich
- Packaging: Standard
pyproject.toml(PEP 621) usinghatchling - Linting & Formatting: Ruff
- Type Checking: Mypy
- Testing: Pytest
- Git Hooks: pre-commit
Antigravity (AI) Integration
This repository is configured out-of-the-box with .gemini/rules.md. These rules instruct Antigravity automatically on architectural patterns (like enforcing standard Typer usage over other frameworks and maintaining ruff standards).
See .gemini/mcp_instructions.md for tips on how to push the AI even further using MCP tools like sequential-thinking.
How to Work on this project
- Install tools and dependencies:
We highly recommend using
uvor creating a virtual environment first.
# Using standard pip in a venv
pip install -e ".[dev]"
- Setup Git hooks:
make setup
- Useful Commands:
make format: Auto-fix linting issues and auto-format code using Ruff.make lint: Run strict Ruff and Mypy checks.make test: Run pytest suite.make check: Run format, lint, and tests all at once.
Database Configuration
Before running commands that require a database connection (like the dashboard), you need to set up your environment variables.
In PowerShell, you can set them for your current session like this:
$env:DB_NAME="fractanomicsdb"
$env:DB_USER="postgres"
$env:DB_PASS="postgres"
$env:DB_HOST="localhost"
$env:DB_PORT="5433"
Try the CLI locally
Once installed, you can invoke the CLI from anywhere in your terminal!
tradingtools-stock --help
tradingtools-stock example hello World
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 stock_manager_cli-0.1.0.tar.gz.
File metadata
- Download URL: stock_manager_cli-0.1.0.tar.gz
- Upload date:
- Size: 27.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0f018fcdd021e8ca640af644a78e8a64e94c5391f799c08ce70eecfda6f73489
|
|
| MD5 |
bdcb1cb8500885af4fecfe5eaeb62ca0
|
|
| BLAKE2b-256 |
83f55be9cc4601a7400704b187577ca17d34813688e639932947398960a2bf8e
|
Provenance
The following attestation bundles were made for stock_manager_cli-0.1.0.tar.gz:
Publisher:
publish.yml on AntaresAndBharani/stock-manager-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
stock_manager_cli-0.1.0.tar.gz -
Subject digest:
0f018fcdd021e8ca640af644a78e8a64e94c5391f799c08ce70eecfda6f73489 - Sigstore transparency entry: 1674642893
- Sigstore integration time:
-
Permalink:
AntaresAndBharani/stock-manager-cli@bc987f43ca6f8252c0331e76646035283cdebfae -
Branch / Tag:
refs/heads/main - Owner: https://github.com/AntaresAndBharani
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@bc987f43ca6f8252c0331e76646035283cdebfae -
Trigger Event:
push
-
Statement type:
File details
Details for the file stock_manager_cli-0.1.0-py3-none-any.whl.
File metadata
- Download URL: stock_manager_cli-0.1.0-py3-none-any.whl
- Upload date:
- Size: 26.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d116ea2b632aa73aad51a29e4dce9204c9a13930ef370b40c49a0aa76bb1d527
|
|
| MD5 |
a78054a9c55aed8d0ca8d3bf9f5c8633
|
|
| BLAKE2b-256 |
486c38a1a1e118ec5f6fcfd0e56aa6af8a1a2dc7f94dfcc99ea81e36ddb3f3ef
|
Provenance
The following attestation bundles were made for stock_manager_cli-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on AntaresAndBharani/stock-manager-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
stock_manager_cli-0.1.0-py3-none-any.whl -
Subject digest:
d116ea2b632aa73aad51a29e4dce9204c9a13930ef370b40c49a0aa76bb1d527 - Sigstore transparency entry: 1674642904
- Sigstore integration time:
-
Permalink:
AntaresAndBharani/stock-manager-cli@bc987f43ca6f8252c0331e76646035283cdebfae -
Branch / Tag:
refs/heads/main - Owner: https://github.com/AntaresAndBharani
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@bc987f43ca6f8252c0331e76646035283cdebfae -
Trigger Event:
push
-
Statement type: