Skip to main content

DirecTracer is a Python script that generates a directory structure in both text and Markdown formats. It can be used to visualize the hierarchy of folders and files in a given directory, while also excluding specific folders and file extensions.

Project description

DirecTracer

DirecTracer is a Python script that generates a directory structure in both text and Markdown formats. It can be used to visualize the hierarchy of folders and files in a given directory, while also excluding specific folders and file extensions.

Features

  • Generates a directory structure in text and Markdown formats.
  • Supports ignoring specific directories and file extensions.
  • Outputs clickable links in the Markdown file for easy navigation.

Usage

Clone this repository using the following command:

git clone https://github.com/Hardvan/DirecTracer
cd DirecTracer
pip install .

OR

Install the DirecTracer package using the following command:

pip install DirecTracer

Call the save_directory_structure function from the DirecTracer module to generate the directory structure.

from DirecTracer import save_directory_structure
import os


# Generate the directory structure in text and Markdown formats
save_directory_structure(
   root_dir=os.getcwd(),
   text_output_file="directory_structure.txt",
   markdown_output_file="directory_structure.md",
   animation=True
)

The function accepts the following parameters:

  • root_dir (str): The root directory to start scanning from.
  • text_output_file (str): The name of the text output file.
  • markdown_output_file (str): The name of the Markdown output file.
  • ignored_directories (list, optional): List of directories to ignore. Defaults to None.
  • ignored_extensions (list, optional): List of file extensions to ignore. Defaults to None.
  • animation (bool, optional): Enable/Disable the loading animation. Defaults to False.

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

DirecTracer-1.0.1.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

DirecTracer-1.0.1-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file DirecTracer-1.0.1.tar.gz.

File metadata

  • Download URL: DirecTracer-1.0.1.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.4

File hashes

Hashes for DirecTracer-1.0.1.tar.gz
Algorithm Hash digest
SHA256 3c60755224410fb1f3abc54e11eb19707c53b7b235078fe937758aa5a7c31bd9
MD5 e3139778bf578de565cc1bb9ab228f4e
BLAKE2b-256 57fcfdba29badb5cbb281a6f05a15611384dc6898d8ed474b3df8d3d7b85cceb

See more details on using hashes here.

File details

Details for the file DirecTracer-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: DirecTracer-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.4

File hashes

Hashes for DirecTracer-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 564507299bf19ab72541844fa159466c10ec7a87bce517227f2cfdeb3ed5e5e0
MD5 ca5edf86a407a1c5be9fe22821519c95
BLAKE2b-256 1676061ab9519721ce858dd451c46a03677255013ca08d230e9ea713edf76d3c

See more details on using hashes here.

Supported by

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