Skip to main content

Dynamically generated BRIEF.md summaries for your Python projects, to make them accessible to new contributors or coding agents.

Project description

debrief: Project Summarizer

debrief generates a comprehensive BRIEF.md file designed to provide new contributors or coding agents with a high-density overview of a Python project.

Installation

pip install debrief

Usage

debrief [path] [--output BRIEF.md]

Arguments

Argument Description Default
path Project root path. .
-o, --output Output filename. BRIEF.md
--tree-budget Max lines for Directory Tree (auto-depth). 60
--max-readme Max lines to include from README. 20
--max-deps Max lines for dependencies list. 15
--max-imports Max lines for Import Tree. 50
--max-definitions Max lines for Module Definitions. 200
--no-docstrings Omit docstrings from the output. False

Features

  • Project Metadata: Extracts description and dependencies from pyproject.toml (with requirements.txt fallback).
  • Directory Tree: Adaptive depth tree that fits within a line budget, respecting .gitignore.
  • Import Analysis: Generates an import dependency tree to visualize project structure.
  • Code Definitions: Extracts class and function signatures with docstrings for all Python files.
  • Optimized Output:
    • Truncation: Automatically truncates long lines (>300 chars) and large sections.
    • "Read more": Links to local files for truncated content.
    • Markdown: Formatted for optimal readability.

Example Output (BRIEF.md)

The BRIEF.md file in this repository serves as a real example of the output of debrief.

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

debrief-0.8.0.tar.gz (14.5 kB view details)

Uploaded Source

Built Distribution

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

debrief-0.8.0-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

Details for the file debrief-0.8.0.tar.gz.

File metadata

  • Download URL: debrief-0.8.0.tar.gz
  • Upload date:
  • Size: 14.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for debrief-0.8.0.tar.gz
Algorithm Hash digest
SHA256 df9eb59d210b94385f9a36ec96398c96cc13f07e409109cbe99884fc55bbb5c2
MD5 ac542361c0544f1f1ca1d9745d3e4529
BLAKE2b-256 8fa8a711f86e09e78eeb569131981a780d60f12ab9b93e5fee27e5500178f206

See more details on using hashes here.

File details

Details for the file debrief-0.8.0-py3-none-any.whl.

File metadata

  • Download URL: debrief-0.8.0-py3-none-any.whl
  • Upload date:
  • Size: 11.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for debrief-0.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7b737fb0c03d254f18924e7aa069a7a6ac38c11cc4ab37faf7d2d156f810c0d8
MD5 96b845b82dcef030d9cc1b05394d6310
BLAKE2b-256 2bfd39025cd713d1275abd65962f29cf1cbc349d7c82034357de170d3a63fccf

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