Skip to main content

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

Metadata

Release files for dirtreemap 0.1.0

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

Source distribution (sdist)

Source distribution for dirtreemap 0.1.0
File Size Uploaded Provenance Actions
dirtreemap-0.1.0.tar.gz 8.2 kB Without provenance Details for dirtreemap-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for dirtreemap 0.1.0
File Interpreter ABI Platform Actions
dirtreemap-0.1.0-py3-none-any.whl Python 3 none any Details for dirtreemap-0.1.0-py3-none-any.whl

Total release size: 16.9 kB

Release files / dirtreemap-0.1.0.tar.gz

Download URL dirtreemap-0.1.0.tar.gz
Size 8.2 kB
Tags Source
SHA-256 checksum
How to use checksums
1354ba0c3e0a4ebea6a4b7dda2a5e634487d1ac59bb2fb2da0be1cdfd40c0cc9
BLAKE2b-256 checksum
How to use checksums
70f683f6ad775e34f576a99e0249d34a56c32ea2cdc89b959aeb4d01239ec6a4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release files / dirtreemap-0.1.0-py3-none-any.whl

Download URL dirtreemap-0.1.0-py3-none-any.whl
Size 8.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bc4928e5702ffb621f3d3ec6981ae951bbdd505308540e2b09d0ceac2dd28b67
BLAKE2b-256 checksum
How to use checksums
a555c7cb6536ccf71c785c0fc007d7e1bd2fcd140d9dca451e7deecce3403bcc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Security for dirtreemap 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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