Directory`s files console-visualizer
Project description
Print_dir - it`s a directory-visualizer python-package
How to install
pip install print_dir
Guide
from print_dir.visualizer import Visualizer
# You can start work with files from where you would
my_dir = my_dir = Visualizer(directory) # directory – path to start visualizer
# You can see content of directory
my_dir.dir()
# You can change directory
my_dir.cd(to) # to – path to new folder
# Via cd-method you can move back
my_dir.cd('..') # if to == '..' directory changes to parent
Example of usage
from print_dir.visualizer import Visualizer
my_dir = Visualizer('/files/directory/')
my_dir.dir() # OUTPUT:
"""
рџ“Ѓ directory
|_ рџ“Ѓ print_dir
|_ рџ“Ѓ tests
|_ рџ“Ѓ venv
|_ рџ“ѓ .gitignore
|_ рџ“ѓ README.md
|_ рџ“ѓ setup.py
"""
my_dir.cd('tests')
my_dir.dir() # OUTPUT:
"""
рџ“Ѓ tests
|_ рџ“ѓ test_Visualizer.py
|_ рџ“ѓ __init__.py
"""
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
pr_dir-1.0.0.tar.gz
(2.7 kB
view hashes)