Skip to main content

Description

dirtree-chart is a tiny tool for creating folder structure diagrams based on mermaids markdown syntax. The output will be saved in an seperate .mmd file or may be included in a README.md. The idea behind dirtree-chart is to simple include it in your build tasks for generic charts in your repository. In the future, image output (svg, png, pdf, ...) will be implemented.

Installation

pip install dirtree-chart

Usage and Examples

  • To get information about the tool run python -m dirtree_chart -h in the command line.
  • For big projects it should be considered to limit the folder depth to a suitable level (e.g. -md 3).
  • Files which should not be includes may be put into the ignore list (-il file1, file2). At the moment no wildcard definition is supported.
  • For git project the mermaid output markdown may be written to the README.md file (-i true). Currently only the file extention .md is supported.
  • Define the direction of the graph (-d TD). TD = Top-Down, LR = Left-Right.

Scripts

from dirtree_chart import diagram
from dirtree_chart import config

# Add files or folders to ignore list
ignore_list = config.ignore_list.copy()
ignore_list.extend([".secrets", "ect.f"])

# Create diagram
diagram.DirStrucTree(ignore = ignore_list)

Command line

python -m dirtree_chart [-h] [-r ROOT] [-i INCLUDE_TO_README] [-d DIRECTION] [-md MAXDEPTH] [-il IGNORELIST [IGNORELIST ...]

Todos

  • Image format (svg, png, ...) output
  • Ignore list should accept regex

Author

Manuel Strohmaier / 2021

License

MIT

Metadata

Release files for dirtree-chart 0.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dirtree-chart 0.0.6
File Size Uploaded
dirtree-chart-0.0.6.tar.gz 8.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dirtree-chart 0.0.6
File Interpreter ABI Platform
dirtree_chart-0.0.6-py3-none-any.whl Python 3 none any Details

Total release size: 17.7 kB

Release files / dirtree-chart-0.0.6.tar.gz

Download URL dirtree-chart-0.0.6.tar.gz
Size 8.7 kB
Tags Source
SHA-256 checksum
How to use checksums
40ee21435188c9357eb3b953f11d6c79cada34b714ac8ce8683f7a8ba7adc3c7
BLAKE2b-256 checksum
How to use checksums
93cc5de8cf8482eaceb41a04b6ebea37265f2bda3b754403c5becb756bf5ea39
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.5

Release files / dirtree_chart-0.0.6-py3-none-any.whl

Download URL dirtree_chart-0.0.6-py3-none-any.whl
Size 8.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9b99fd42c758ce8e61e9b11850ba2f703ceb0a69b6901d0355bdba1da282d565
BLAKE2b-256 checksum
How to use checksums
bc60c12650a4ad91aefc60f96e5fdebf86a03bca613b1ab8cf75400f8b0647e6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.5

Release history Release notifications | RSS feed

This release

0.0.6 This release

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page