Print a directory tree structure in your Python code.
Project description
directory-structure
Print a directory tree structure in your Python code.
Download
You can simply:
pip install directory-structure
Or you can also:
- Clone the repository to your local machine.
- Enter the directory.
- Download necessary modules/libraries.
git clone https://github.com/gabrielstork/directory-structure.git
cd directory-structure
pip install -r requirements.txt
Examples
complete=True
:
from directory_structure.tree import Tree
path = Tree('C:/Users/User/Desktop/directory-structure', complete=True)
print(path)
๐ C:
|_๐ Users
|_๐ User
|_๐ Desktop
|_๐ directory-structure
|_๐ .git
|_๐ dist
|_๐ src
|_๐ tests
|_๐ LICENSE
|_๐ pyproject.toml
|_๐ README.md
|_๐ requirements.txt
|_๐ setup.py
complete=False
:
from directory_structure.tree import Tree
path = Tree('C:/Users/User/Desktop/directory-structure', complete=False)
print(path)
๐ directory-structure
|_๐ .git
|_๐ dist
|_๐ src
|_๐ tests
|_๐ LICENSE
|_๐ pyproject.toml
|_๐ README.md
|_๐ requirements.txt
|_๐ setup.py
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
Built Distribution
Close
Hashes for directory-structure-1.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 99979e2882903451b18480eb90fb035fcb8bf7b41d36b5e72c8bc2973307d46a |
|
MD5 | f79b25ce64b0fa018f603fec6c2859c8 |
|
BLAKE2b-256 | e1aa0d8a1dc8dd39ae707e496ff8e8ca0253dad5966852ecb5a0c6b8a8d704ff |
Close
Hashes for directory_structure-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d5f4d35c83009f1098884d0fbf79f39b9d9a8fffd694dd1793e6069d5bc3b4e |
|
MD5 | 78a37ebc75f67196427ffffa0117a414 |
|
BLAKE2b-256 | f1ad46798040c792853a30ad126e4ee4677e066cf86aaa629101f1f804fca8a8 |