directory-structure-1.1.2
توضیحات
Print a directory tree structure in your Python code.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | directory-structure-1.1.2 |
| نام | directory-structure |
| نسخه کتابخانه | 1.1.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Gabriel Stork |
| ایمیل نویسنده | storkdeveloper@gmail.com |
| آدرس صفحه اصلی | https://github.com/gabrielstork/directory-structure |
| آدرس اینترنتی | https://pypi.org/project/directory-structure/ |
| مجوز | MIT |
# directory-structure






Print a directory tree structure in your Python code.
## Download
You can simply:
```sh
pip install directory-structure
```
Or you can also:
1. Clone the repository to your local machine.
2. Enter the directory.
3. Download necessary modules/libraries.
```sh
git clone https://github.com/gabrielstork/directory-structure.git
cd directory-structure
pip install -r requirements.txt
```
## Examples
```python
from directory_structure import Tree
```
Using absolute path as an argument.
```python
path = Tree('C:/Users/User/Desktop/directory-structure', absolute=True)
print(path)
```
```text
📂 C:
|_📂 Users
|_📂 User
|_📂 Desktop
|_📂 directory-structure
|_📁 .git
|_📁 directory_structure
|_📄 .gitignore
|_📄 LICENSE
|_📄 pyproject.toml
|_📄 README.md
|_📄 requirements.txt
|_📄 setup.py
```
```python
path = Tree('C:/Users/User/Desktop/directory-structure', absolute=False)
print(path)
```
```text
📂 directory-structure
|_📁 .git
|_📁 directory_structure
|_📄 .gitignore
|_📄 LICENSE
|_📄 pyproject.toml
|_📄 README.md
|_📄 requirements.txt
|_📄 setup.py
```
Accessing a folder in current working directory.
```python
path = Tree('./directory_structure', absolute=True)
print(path)
```
```text
📂 C:
|_📂 Users
|_📂 User
|_📂 Desktop
|_📂 directory-structure
|_📂 directory_structure
|_📄 tree.py
|_📄 __init__.py
```
```python
path = Tree('./directory_structure', absolute=False)
print(path)
```
```text
📂 directory_structure
|_📄 tree.py
|_📄 __init__.py
```
Getting all from the directory where your current working directory is.
```python
path = Tree('../', absolute=True)
print(path)
```
```text
📂 C:
|_📂 Users
|_📂 User
|_📂 Desktop
|_📁 directory-structure
|_📄 Discord.lnk
|_📄 Spotify.lnk
|_📄 Steam.lnk
|_📄 Telegram.lnk
|_📄 Visual Studio Code.lnk
|_📄 WhatsApp.lnk
```
```python
path = Tree('../', absolute=False)
print(path)
```
```text
📂 Desktop
|_📁 directory-structure
|_📄 Discord.lnk
|_📄 Spotify.lnk
|_📄 Steam.lnk
|_📄 Telegram.lnk
|_📄 Visual Studio Code.lnk
|_📄 WhatsApp.lnk
```
[](https://github.com/gabrielstork)
[](https://github.com/gabrielstork)
نیازمندی
| مقدار | نام |
|---|---|
| - | emoji |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3 | Python |
نحوه نصب
نصب پکیج whl directory-structure-1.1.2:
pip install directory-structure-1.1.2.whl
نصب پکیج tar.gz directory-structure-1.1.2:
pip install directory-structure-1.1.2.tar.gz