Skip to main content

Visual tree utility

Project description

linux tree utility의 개선.

bigdata 분석 및 문서화에 활용하기 좋은 기능을 포함.

Python 3.12.3 기준으로 작성되었으며, Python 3.10 이상에서 동작합니다. 아마도 3.2 이상이면 다 동작할 것으로 예상됩니다.

기능

  • tree 구조 출력
  • size: human readable
  • file count
  • file list limit
  • 📂 emoji

treeview -h

usage: Main.py [-h] [-d] [-L LEVEL] [-n MAX_FILES] 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

출력 예

treeview 3d_car_instance_sample

📂 3d_car_instance_sample [2 GB]
└──📂 3d_car_instance_sample [2 GB]
    ├──📂 camera [340 B    2 개의 파일]
    │   ├── 5.cam [169 B]
    │   └── 6.cam [171 B]
    ├──📂 car_models [25 MB    79 개의 파일]
    │   ├── 019-SUV.pkl [338 KB]
    │   ├── 036-CAR01.pkl [329 KB]
    │   ├── 037-CAR02.pkl [354 KB]
    │   └── MG-GT-2015.pkl [313 KB]
    ├──📂 car_poses [1 MB    1,003 개의 파일]
    │   ├── 180116_053947113_Camera_5.json [1 KB]
    │   ├── 180116_053947909_Camera_5.json [2 KB]
    │   ├── 180116_053948523_Camera_5.json [2 KB]
    │   └── 180116_053949115_Camera_5.json [1 KB]
    ├──📂 images [2 GB    1,003 개의 파일]
    │   ├── 180116_053947113_Camera_5.jpg [2 MB]
    │   ├── 180116_053947909_Camera_5.jpg [2 MB]
    │   ├── 180116_053948523_Camera_5.jpg [2 MB]
    │   └── 180116_053949115_Camera_5.jpg [2 MB]
    └──📂 split [29 KB    2 개의 파일]
       ├── train.txt [21 KB]
       └── val.txt [8 KB]

treeview -d 3d_car_instance_sample

📂 3d_car_instance_sample [2 GB]
└──📂 3d_car_instance_sample [2 GB]
    ├──📂 camera [340 B    2 개의 파일]
    ├──📂 car_models [25 MB    79 개의 파일]
    ├──📂 car_poses [1 MB    1,003 개의 파일]
    ├──📂 images [2 GB    1,003 개의 파일]
    └──📂 split [29 KB    2 개의 파일]

reeview -d -L 1 3d_car_instance_sample

📂 3d_car_instance_sample [2 GB]
└──📂 3d_car_instance_sample [2 GB]

treeview -n 1 3d_car_instance_sample

📂 3d_car_instance_sample [2 GB]
└──📂 3d_car_instance_sample [2 GB]
    ├──📂 camera [340 B    2 개의 파일]
    │   └── 5.cam [169 B]
    ├──📂 car_models [25 MB    79 개의 파일]
    │   └── 019-SUV.pkl [338 KB]
    ├──📂 car_poses [1 MB    1,003 개의 파일]
    │   └── 180116_053947113_Camera_5.json [1 KB]
    ├──📂 images [2 GB    1,003 개의 파일]
    │   └── 180116_053947113_Camera_5.jpg [2 MB]
    └──📂 split [29 KB    2 개의 파일]
       └── train.txt [21 KB]

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.3.tar.gz (6.2 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.3-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gimi9_tree_view-0.3.tar.gz
  • Upload date:
  • Size: 6.2 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.3.tar.gz
Algorithm Hash digest
SHA256 68edd1e91b8e79bffb059646f8df7c31d9fc8ebf25cb3b5b75728e6bb27069dc
MD5 2c05863d6592bd64edd52a55d6ea9b0a
BLAKE2b-256 95fc918921a67a3a376ff63a5d18b0277f34ef4c6b36aeb1e5ad5f6ae36255f5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gimi9_tree_view-0.3-py3-none-any.whl
  • Upload date:
  • Size: 6.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.3

File hashes

Hashes for gimi9_tree_view-0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 07c3ebf6e56d2d5b55b27989dc28266eb1a740b643acd0cac2c982993c50f130
MD5 b8963634976e769eb529572cec01b6f4
BLAKE2b-256 b19d738cd81a9a44bccfe416bc6023653cc4e0b292ecf51fb15e55118730ac9c

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