Skip to main content

A tool for recursively describing all files in a directory.

Project description

inspect-dense

inspect-dense is a Python package for recursively describing all python files in a directory. Provides a simple way to get a high-level overview of a project's codebase in a conscise format to minimize tokens used.

Installation

You can install inspect-dense using pip:

Copy code

pip install inspect-dense

Usage

To use inspect-dense, simply import the describe_directory function from the package and pass it the directory path you want to describe:

python code

from inspect-dense import describe_directory  

directory = "/path/to/directory" 
output = describe_directory(directory)

The describe_directory function returns a dictionary with the following structure:

{     "/path/to/file.py": {         "functions": {             "function_name(args)": "Function docstring"         },         "classes": {             "Class1": {                 "methods": {                     "method1(args)": "Method docstring",                     "method2(args)": "Method docstring"                 }             },             "Class2": {                 "methods": {                     "method3(args)": "Method docstring",                     "method4(args)": "Method docstring"                 }             }         }     } }

Command Line Interface

inspect-dense also comes with a command line interface. You can use it to describe a directory and output the results to a file:

inspect-dense <directory> [--no-gitignore]

For example:

inspect-dense /path/to/directory --no-gitignore

This will output the results.

License

This project is licensed under the Apache 2 License - see the LICENSE file for details.

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

inspect_dense-0.1.8.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

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

inspect_dense-0.1.8-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file inspect_dense-0.1.8.tar.gz.

File metadata

  • Download URL: inspect_dense-0.1.8.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.7

File hashes

Hashes for inspect_dense-0.1.8.tar.gz
Algorithm Hash digest
SHA256 c2b17349245ae002c9498a045d6a5313d8f0083336c636525f95803c025a042e
MD5 ce81dc51f482a63f4b10a33fd5cf475d
BLAKE2b-256 a13abe42743b309dd334b6057fb059fcc4352cc88a208eaa79a34c647a9c88c2

See more details on using hashes here.

File details

Details for the file inspect_dense-0.1.8-py3-none-any.whl.

File metadata

  • Download URL: inspect_dense-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 7.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.7

File hashes

Hashes for inspect_dense-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 b877a742a6473a279db6b6f5ba51321d38ef1d5c9a42436516051942f843e2dc
MD5 1dcf1a6d52c878e85579c11a2f3f7a03
BLAKE2b-256 dffd418b18ea5166601f561156aec29944e22875d79437751decfe7751a53fdf

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