dhruv 🐍
A foundational Python package for AI-assisted development, featuring an AI Developer Handbook and batteries-included templates.
⚡ Quick Start
Prerequisites
- Python 3.8+
- pip
Installation
pip install .
Or for development:
pip install -e .
Run
Verify the installation immediately:
dhruv hello
Demo
Use the core logic in your own scripts:
from dhruv.main import hello
# Access the core functionality directly
print(hello())
# Output: "Hello from Dhruv!"
✨ Features
- 🧠 AI Developer Handbook: A comprehensive set of standardized system prompts (
src/dhruv/prompts/) to guide AI agents through Documentation, Roadmapping, Testing, and Refactoring. - 🚀 Modern CLI Foundation: Built with Typer and Rich for a robust, beautiful, and self-documenting command-line interface.
- 📦 Batteries-Included Templates: Pre-configured templates for
pytest, project settings, and more, located insrc/dhruv/templates/. - 🏗️ Clean Architecture: Follows a strict
srclayout with modular design, ensuring scalability and maintainability. - 🎨 Visual Utilities: Includes banner generation and syntax highlighting themes for a polished user experience.
🛠️ Configuration
CLI Arguments
The dhruv CLI is the primary interface.
| Command | Argument | Description |
|---|---|---|
dhruv |
hello |
Prints a welcome message to verify installation. |
dhruv |
--help |
Show the help message and exit. |
Note: No environment variables are currently required for core operation.
🏗️ Architecture
Directory Tree
src/
└── dhruv/
├── prompts/ # 📘 AI Developer Handbook & System Prompts
├── templates/ # 🛠️ Configuration Templates (pytest, settings)
├── utils/ # 🔧 Utility modules (banners, themes)
├── cli.py # 🚀 CLI entry point (Typer)
└── main.py # 🧠 Core logic
High-Level Flow
- Entry Point:
dhruvcommand triggerssrc/dhruv/cli.py. - Routing:
typerroutes commands (e.g.,hello) to their respective functions. - Core Logic: Commands invoke logic in
src/dhruv/main.pyor access resources inprompts/andtemplates/. - Utilities:
src/dhruv/utils/provides shared functionality like banner rendering and styling.
🐞 Troubleshooting
| Issue | Possible Cause | Solution |
|---|---|---|
command not found: dhruv |
PATH issue or not installed. | Ensure pip install . was successful and your Python scripts folder is in your PATH. |
ModuleNotFoundError |
Virtual environment mismatch. | Activate the correct venv where dhruv was installed. |
Debug Mode
If you encounter unexpected behavior, check your Python version and environment details:
python --version
pip show dhruv
🤝 Contributing
We welcome contributions! Please see CONTRIBUTING.md for details.
Dev Setup
- Clone the repository.
- Install package in editable mode:
pip install -e . - Install test dependencies:
pip install pytest pytest-cov - Run tests:
pytest
🗺️ Roadmap
- Initial Release & Core Structure
- CLI Implementation (
typer) - AI Developer Handbook (Prompts)
- Interactive Init:
dhruv initto scaffold new projects. - Prompt Management: CLI commands to list and display prompts.
- Template Injection: Automate copying templates to project root.
Metadata
Release files for dhruv 2.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| dhruv-2.0.0.tar.gz | 13.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dhruv-2.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 25.7 kB
Release files / dhruv-2.0.0.tar.gz
| Download URL | dhruv-2.0.0.tar.gz |
|---|---|
| Size | 13.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fc2cf6e7a90ea0763d94817ed17fcf3b528d3b22f735663e4ac5ee30723e9fe9
|
|
BLAKE2b-256 checksum How to use checksums |
277cc4ee2b9a32568d05032bc8023ccd463c218cfeb484c1680ccb142166a987
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 19, 2025.
Transparency logRelease files / dhruv-2.0.0-py3-none-any.whl
| Download URL | dhruv-2.0.0-py3-none-any.whl |
|---|---|
| Size | 12.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4e4ceb1a5602f0858aab1390a208fd2c28dba6ece79108f1ba04b27c2c6bdcac
|
|
BLAKE2b-256 checksum How to use checksums |
2f9bcffdf00fd4a56b6fa331f1fcfad2265594fd3512b0c868ac5e3e628ecad2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Dec 19, 2025.
Transparency log