Skip to main content

A cli tool to help developers understand and manage their codebases.

Project description

DevLens

Illuminate your codebase with AI-powered analysis

PyPI version Python License: MIT GitHub Stars

Installation · Features · Usage · Contributing · License


Overview

DevLens is a powerful CLI tool that delivers comprehensive insights into your codebase. It helps developers and teams understand, document, and optimize their software projects — powered by AI through Groq's Llama models.

Whether you need a quick project summary, AI-generated documentation, or dead code detection, DevLens has you covered.


Quick Demo


Features

AI-Powered Code Analysis

Get intelligent summaries of every file in your project

Codebase Statistics

Language breakdown, line counts, and project structure

Complete Project Insights

Total files, directories, and detailed structure visualization

Language Breakdown

See exactly how your codebase is distributed across languages

README Generator

Auto-generate professional documentation for your project

Generated Output

Clean, well-structured README tailored to your project

Dead Code Detection

Find unused functions and imports to keep your code clean

Issue Breakdown

Get a full overview of empty files and project issues


Installation

From PyPI (Recommended)

pip install devlens-tool

Using uv

uv tool install devlens-tool

From Source

git clone https://github.com/YounesBensafia/DevLens.git
cd DevLens
uv tool install .

Setup

DevLens uses Groq for AI-powered features. You'll need a free API key.

1. Get your API key from console.groq.com

2. Set the environment variable:

export GROQ_API_KEY=your_api_key_here

Tip: Add the export line to your ~/.bashrc or ~/.zshrc to make it permanent.


Usage

devlens --help

Commands

Command Description
devlens -st <PATH> Generate a comprehensive project summary — total files, lines, directories, language breakdown, and project structure
devlens -an <PATH> AI-powered analysis of each file using meta-llama/llama-4-scout-17b-16e-instruct
devlens -rd Auto-generate a professional README.md tailored to your project
devlens -deadcode <PATH> Detect unused functions and imports across the codebase

Examples

# Analyze the current directory
devlens -st .

# Get AI summaries for a specific project
devlens -an /path/to/your/project

# Generate a README for the current project
devlens -rd

# Find dead code
devlens -deadcode .

Roadmap

  • Project statistics and language breakdown
  • AI-powered file analysis
  • Automatic README generation
  • Dead code detection
  • Dependency graph visualization
  • Support for more languages in dead code detection

Contributing

Contributions are welcome! Please see CONTRIBUTING.md for guidelines.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

This project is licensed under the MIT License — see the LICENSE file for details.


Built by Younes Bensafia

If DevLens helps you, consider giving it a star.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

devlens_tool-0.2.0.tar.gz (21.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

devlens_tool-0.2.0-py3-none-any.whl (26.6 kB view details)

Uploaded Python 3

File details

Details for the file devlens_tool-0.2.0.tar.gz.

File metadata

  • Download URL: devlens_tool-0.2.0.tar.gz
  • Upload date:
  • Size: 21.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for devlens_tool-0.2.0.tar.gz
Algorithm Hash digest
SHA256 1458abdb954c03fab496fee6280c1853c1662018e04ee61242dc8e7ae7e05133
MD5 ef07c9ba22592ca7a85a6e5088f0806b
BLAKE2b-256 6abb7fc15019baed977cdb33ca1b426e50cb80b92367d6bcf70faca2c82fb2ca

See more details on using hashes here.

File details

Details for the file devlens_tool-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: devlens_tool-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 26.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for devlens_tool-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fbfd6218f734427afffdf9bde39c6f0616f2e6983c6be653d5462134255ab0f5
MD5 8f5da562080302820fcbfa6f4ec9cf23
BLAKE2b-256 e986a3f9a5cb30f0c69f12516a333d54c1417ad6e6949db4b04be24a7fd5240e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page