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.2.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: DirecTracer-1.0.2.tar.gz
  • Upload date:
  • Size: 5.4 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.2.tar.gz
Algorithm Hash digest
SHA256 c58a8eb80c821a9c0906e5b407c4059a85437b8cb8f05fea9d12e8a491b999c1
MD5 84e7f59bc6afa7dcc6c06b73f4c42266
BLAKE2b-256 5ef63ca9b8016730f37ea7c3cca11dda47ba98ca5463c1f90ed88d0aea4e63bc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: DirecTracer-1.0.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6b322611ba166f2994d4ca14c33e15eb89d05b8d2c632e07b8accf60a1d30f64
MD5 53894ab05185d18d2bf4bf7ef6d541fd
BLAKE2b-256 a020a75496b6c92d83c06ad9a46db9521fe39a851fffebcb6d214ae74a8ebc39

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