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.logwill 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1354ba0c3e0a4ebea6a4b7dda2a5e634487d1ac59bb2fb2da0be1cdfd40c0cc9
|
|
| MD5 |
3daec43cdbae2072653a67bada075c13
|
|
| BLAKE2b-256 |
70f683f6ad775e34f576a99e0249d34a56c32ea2cdc89b959aeb4d01239ec6a4
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bc4928e5702ffb621f3d3ec6981ae951bbdd505308540e2b09d0ceac2dd28b67
|
|
| MD5 |
f9385b2466309aa3684f1db25f3aec23
|
|
| BLAKE2b-256 |
a555c7cb6536ccf71c785c0fc007d7e1bd2fcd140d9dca451e7deecce3403bcc
|