Skip to main content

Directory treemap visualization tool using Plotly

Project description

dirtreemap

Directory treemap visualization tool using Plotly

Installation

You can install the package via pip:

pip install dirtreemap

Usage

You can use the dirtreemap command in your terminal to generate a treemap visualization of a directory. For example:

dirtreemap /path/to/directory /path/to/output_dir --report-filename treemap.html

This will create an HTML file with the treemap visualization of the specified directory. You can also customize the visualization using various options. For a full list of options, run:

dirtreemap --help

Note

A log file named dirtreemap.log will be created in the specified output directory to record scan and generation details.

Example

Here's an example of how to use dirtreemap in a Python script:

import os
from pathlib import Path

from directory_treemap import DirectoryTreemap

scan_dir: Path = Path(os.path.expanduser("~"))

dtm: DirectoryTreemap = DirectoryTreemap(base_path=scan_dir,
                                         output_dir=Path("."),
                                         parallel=False)
dtm.scan()
dtm.generate_treemap(title='Demo Directory Treemap',
                     max_depth=4,
                     max_files=25)
dtm.save_report()
dtm.open_report()

This will generate a treemap visualization of the specified directory and save it as treemap.html

Contributing

Contributions are welcome! Please open an issue or submit a pull request on GitHub.

License

This project is licensed under the MIT 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

dirtreemap-0.1.0.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

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

dirtreemap-0.1.0-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file dirtreemap-0.1.0.tar.gz.

File metadata

  • Download URL: dirtreemap-0.1.0.tar.gz
  • Upload date:
  • Size: 8.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for dirtreemap-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1354ba0c3e0a4ebea6a4b7dda2a5e634487d1ac59bb2fb2da0be1cdfd40c0cc9
MD5 3daec43cdbae2072653a67bada075c13
BLAKE2b-256 70f683f6ad775e34f576a99e0249d34a56c32ea2cdc89b959aeb4d01239ec6a4

See more details on using hashes here.

File details

Details for the file dirtreemap-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: dirtreemap-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for dirtreemap-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bc4928e5702ffb621f3d3ec6981ae951bbdd505308540e2b09d0ceac2dd28b67
MD5 f9385b2466309aa3684f1db25f3aec23
BLAKE2b-256 a555c7cb6536ccf71c785c0fc007d7e1bd2fcd140d9dca451e7deecce3403bcc

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