Skip to main content

dhruv 🐍

A foundational Python package for AI-assisted development, featuring an AI Developer Handbook and batteries-included templates.

PyPI version Python Wheel Build status Codecov Code style: black Ruff Maintenance


⚡ 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 in src/dhruv/templates/.
  • 🏗️ Clean Architecture: Follows a strict src layout 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

  1. Entry Point: dhruv command triggers src/dhruv/cli.py.
  2. Routing: typer routes commands (e.g., hello) to their respective functions.
  3. Core Logic: Commands invoke logic in src/dhruv/main.py or access resources in prompts/ and templates/.
  4. 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

  1. Clone the repository.
  2. Install package in editable mode: pip install -e .
  3. Install test dependencies: pip install pytest pytest-cov
  4. Run tests: pytest

🗺️ Roadmap

  • Initial Release & Core Structure
  • CLI Implementation (typer)
  • AI Developer Handbook (Prompts)
  • Interactive Init: dhruv init to 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)

Source distribution for dhruv 2.0.0
File Size Uploaded
dhruv-2.0.0.tar.gz 13.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dhruv 2.0.0
File Interpreter ABI Platform
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 log

Release 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

Release history Release notifications | RSS feed

This release

2.0.0 This release

2 release files

1.0.0

2 release files

0.2.0

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page