Skip to main content

Visual treeview utility

Project description

Improved version of the Linux tree utility.

Includes features useful for big data analysis and documentation.

Written for Python 3.12.3, works on Python 3.10 and above. It is expected to work on Python 3.2 and above.

Features

  • Tree structure output
  • Size: human-readable
  • File count
  • File list limit
  • Pretty diretory emoji ๐Ÿ“‚

Installation

$ pip install gimi9_tree_view

Usage

Print help

$ treeview -h

usage: treeview [-h] [-d] [-L LEVEL] [-n MAX_FILES] [-f] directory

List directory contents.

positional arguments:
  directory             Directory to read

options:
  -h, --help            show this help message and exit
  -d                    List directories only
  -L LEVEL, --level LEVEL
                        Descend only level directories deep
  -n MAX_FILES, --max-files MAX_FILES
                        Print only N files in each directory
  -f, --files-first     Print files before directories

github: https://github.com/gisman/tree-view

Default

$ treeview 3d_car_instance_sample

 ๐Ÿ“‚ 3d_car_instance_sample                   [2GB]
    โ”œโ”€โ”€ ๐Ÿ“‚ camera                            [340B 2๊ฐœ์˜ ํŒŒ์ผ]
    โ”‚   โ”œโ”€โ”€ ๐Ÿ“„ 5.cam [169B]
    โ”‚   โ””โ”€โ”€ ๐Ÿ“„ 6.cam [171B]
    โ”œโ”€โ”€ ๐Ÿ“‚ car_models                        [25MB 79๊ฐœ์˜ ํŒŒ์ผ]
    โ”‚   โ”œโ”€โ”€ ๐Ÿ“„ 019-SUV.pkl [338KB]
    โ”‚   โ”œโ”€โ”€ ๐Ÿ“„ 036-CAR01.pkl [329KB]
    โ”‚   โ”œโ”€โ”€ ๐Ÿ“„ 037-CAR02.pkl [354KB]
    โ”‚   โ””โ”€โ”€ ๐Ÿ“„ MG-GT-2015.pkl [313KB]
    โ”œโ”€โ”€ ๐Ÿ“‚ car_poses                         [1MB 1,003๊ฐœ์˜ ํŒŒ์ผ]
    โ”‚   โ”œโ”€โ”€ ๐Ÿ“„ 180116_053947113_Camera_5.json [1KB]
    โ”‚   โ”œโ”€โ”€ ๐Ÿ“„ 180116_053947909_Camera_5.json [2KB]
    โ”‚   โ”œโ”€โ”€ ๐Ÿ“„ 180116_053948523_Camera_5.json [2KB]
    โ”‚   โ””โ”€โ”€ ๐Ÿ“„ 180116_053949115_Camera_5.json [1KB]
    โ”œโ”€โ”€ ๐Ÿ“‚ images                            [2GB 1,003๊ฐœ์˜ ํŒŒ์ผ]
    โ”‚   โ”œโ”€โ”€ ๐Ÿ“„ 180116_053947113_Camera_5.jpg [2MB]
    โ”‚   โ”œโ”€โ”€ ๐Ÿ“„ 180116_053947909_Camera_5.jpg [2MB]
    โ”‚   โ”œโ”€โ”€ ๐Ÿ“„ 180116_053948523_Camera_5.jpg [2MB]
    โ”‚   โ””โ”€โ”€ ๐Ÿ“„ 180116_053949115_Camera_5.jpg [2MB]
    โ””โ”€โ”€ ๐Ÿ“‚ split                             [29KB 2๊ฐœ์˜ ํŒŒ์ผ]
        โ”œโ”€โ”€ ๐Ÿ“„ train.txt [21KB]
        โ””โ”€โ”€ ๐Ÿ“„ val.txt [8KB]

List directories only

$ treeview -d 3d_car_instance_sample

 ๐Ÿ“‚ 3d_car_instance_sample                   [2GB]
    โ”œโ”€โ”€ ๐Ÿ“‚ camera                            [340B 2๊ฐœ์˜ ํŒŒ์ผ]
    โ”œโ”€โ”€ ๐Ÿ“‚ car_models                        [25MB 79๊ฐœ์˜ ํŒŒ์ผ]
    โ”œโ”€โ”€ ๐Ÿ“‚ car_poses                         [1MB 1,003๊ฐœ์˜ ํŒŒ์ผ]
    โ”œโ”€โ”€ ๐Ÿ“‚ images                            [2GB 1,003๊ฐœ์˜ ํŒŒ์ผ]
    โ””โ”€โ”€ ๐Ÿ“‚ split                             [29KB 2๊ฐœ์˜ ํŒŒ์ผ]

Depth limit

$ treeview -d -L 1 train

 ๐Ÿ“‚ train                                    [9GB 1๊ฐœ์˜ ํŒŒ์ผ]
    โ”œโ”€โ”€ ๐Ÿ“‚ camera                            [66B 1๊ฐœ์˜ ํŒŒ์ผ]
    โ”œโ”€โ”€ ๐Ÿ“‚ car_poses                         [12MB 4,283๊ฐœ์˜ ํŒŒ์ผ]
    โ”œโ”€โ”€ ๐Ÿ“‚ ignore_mask                       [614MB 4,283๊ฐœ์˜ ํŒŒ์ผ]
    โ”œโ”€โ”€ ๐Ÿ“‚ images                            [8GB 4,283๊ฐœ์˜ ํŒŒ์ผ]
    โ”œโ”€โ”€ ๐Ÿ“‚ keypoints                         [17MB]
    โ””โ”€โ”€ ๐Ÿ“‚ split                             [130KB 2๊ฐœ์˜ ํŒŒ์ผ]

File List limit

$ treeview -n 1 3d_car_instance_sample

 ๐Ÿ“‚ 3d_car_instance_sample                   [2GB]
    โ”œโ”€โ”€ ๐Ÿ“‚ camera                            [340B 2๊ฐœ์˜ ํŒŒ์ผ]
    โ”‚   โ””โ”€โ”€ ๐Ÿ“„ 5.cam [169B]
    โ”œโ”€โ”€ ๐Ÿ“‚ car_models                        [25MB 79๊ฐœ์˜ ํŒŒ์ผ]
    โ”‚   โ””โ”€โ”€ ๐Ÿ“„ 019-SUV.pkl [338KB]
    โ”œโ”€โ”€ ๐Ÿ“‚ car_poses                         [1MB 1,003๊ฐœ์˜ ํŒŒ์ผ]
    โ”‚   โ””โ”€โ”€ ๐Ÿ“„ 180116_053947113_Camera_5.json [1KB]
    โ”œโ”€โ”€ ๐Ÿ“‚ images                            [2GB 1,003๊ฐœ์˜ ํŒŒ์ผ]
    โ”‚   โ””โ”€โ”€ ๐Ÿ“„ 180116_053947113_Camera_5.jpg [2MB]
    โ””โ”€โ”€ ๐Ÿ“‚ split                             [29KB 2๊ฐœ์˜ ํŒŒ์ผ]
        โ””โ”€โ”€ ๐Ÿ“„ train.txt [21KB]

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

gimi9_tree_view-0.5.5.tar.gz (8.5 kB view details)

Uploaded Source

Built Distribution

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

gimi9_tree_view-0.5.5-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file gimi9_tree_view-0.5.5.tar.gz.

File metadata

  • Download URL: gimi9_tree_view-0.5.5.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.3

File hashes

Hashes for gimi9_tree_view-0.5.5.tar.gz
Algorithm Hash digest
SHA256 8fe1e5b4f690ba2648a6359eb8c1039b347953f16ad04d52d9e563fba3459d88
MD5 53d2b21055bb3ce0b949adc5ea1a21e2
BLAKE2b-256 80a4d5652c07fbd7a0395c7c724a628b21be61a2144196375ba32de868d3dd67

See more details on using hashes here.

File details

Details for the file gimi9_tree_view-0.5.5-py3-none-any.whl.

File metadata

File hashes

Hashes for gimi9_tree_view-0.5.5-py3-none-any.whl
Algorithm Hash digest
SHA256 39d2075b7b83fca2e32457f76e74ad6a2a3f6c5231ef05209ca5b872173fded8
MD5 e6ecc632af702a4241a5d25aeb1b938d
BLAKE2b-256 4a0cc53a0820963e607940d0c3ffb41a7342ae59ff02ca8193505203880fdddd

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