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.4.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.4-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gimi9_tree_view-0.5.4.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.4.tar.gz
Algorithm Hash digest
SHA256 14eb88dc634c0ef1aa749c02ac6e2a8ba495ac692b820628ad19d880fce76339
MD5 1d98c798a2e693ca5dcb1c6a9cf6f6fd
BLAKE2b-256 d6a2117a74352a118ce13a3add950a05feb5e6e90f1292a7dcc7116815e8df20

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gimi9_tree_view-0.5.4-py3-none-any.whl
Algorithm Hash digest
SHA256 cbdf208f03718fe263ec10b478dac11fea818360998cc6cde7525618eeb09743
MD5 d625ab88969cc842519c642cd0445e90
BLAKE2b-256 da709680ed1fc96dcf5af6900b196037eceefff3fe0f93e8c01883cc8f6cad36

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