All Projects โ†’ gabrielstork โ†’ directory-structure

gabrielstork / directory-structure

Licence: MIT License
๐Ÿ“ฆ Print a directory tree structure in your Python code.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to directory-structure

fsify
Convert an array of objects into a persistent or temporary directory structure.
Stars: โœญ 24 (-40%)
Mutual labels:  tree, directory, structure, file
Tree Node Cli
๐ŸŒฒ Node.js library to list the contents of directories in a tree-like format, similar to the Linux tree command
Stars: โœญ 102 (+155%)
Mutual labels:  tree, directory, file
Voila
Voila is a domain-specific language launched through CLI tool for operating with files and directories in massive amounts in a fast & reliable way.
Stars: โœญ 78 (+95%)
Mutual labels:  directory, file, folder
gtree
Output tree๐ŸŒณ or Make directories๐Ÿ“ from #Markdown or Programmatically. Provide CLI, Golang library and Web (using #Wasm ).
Stars: โœญ 88 (+120%)
Mutual labels:  tree, directory, file
Inert
Static file and directory handlers for hapi.js
Stars: โœญ 236 (+490%)
Mutual labels:  directory, file
Fcfilemanager
iOS File Manager on top of NSFileManager for simplifying files management. ๐Ÿ“‚
Stars: โœญ 862 (+2055%)
Mutual labels:  directory, file
Repository Tree
๐ŸŒฒPretty display directory tree view of a GitHub repository.
Stars: โœญ 56 (+40%)
Mutual labels:  tree, directory
Jstarcraft Ai
็›ฎๆ ‡ๆ˜ฏๆไพ›ไธ€ไธชๅฎŒๆ•ด็š„Javaๆœบๅ™จๅญฆไน (Machine Learning/ML)ๆก†ๆžถ,ไฝœไธบไบบๅทฅๆ™บ่ƒฝๅœจๅญฆๆœฏ็•ŒไธŽๅทฅไธš็•Œ็š„ๆกฅๆข. ่ฎฉ็›ธๅ…ณ้ข†ๅŸŸ็š„็ ”ๅ‘ไบบๅ‘˜่ƒฝๅคŸๅœจๅ„็ง่ฝฏ็กฌไปถ็Žฏๅขƒ/ๆ•ฐๆฎ็ป“ๆž„/็ฎ—ๆณ•/ๆจกๅž‹ไน‹้—ดๆ— ็ผๅˆ‡ๆข. ๆถต็›–ไบ†ไปŽๆ•ฐๆฎๅค„็†ๅˆฐๆจกๅž‹็š„่ฎญ็ปƒไธŽ่ฏ„ไผฐๅ„ไธช็Žฏ่Š‚,ๆ”ฏๆŒ็กฌไปถๅŠ ้€Ÿๅ’Œๅนถ่กŒ่ฎก็ฎ—,ๆ˜ฏๆœ€ๅฟซๆœ€ๅ…จ็š„Javaๆœบๅ™จๅญฆไน ๅบ“.
Stars: โœญ 160 (+300%)
Mutual labels:  tree, structure
dirgen
Generate files and folders from a template file
Stars: โœญ 21 (-47.5%)
Mutual labels:  directory, structure
project-structure-sample
Shows how to keep front end and back end separated
Stars: โœญ 91 (+127.5%)
Mutual labels:  structure, folder
empty-dir
Check if a directory is empty.
Stars: โœญ 19 (-52.5%)
Mutual labels:  directory, folder
md-file-tree
Generate markdown list of all the files in a directory. Now also with emoji ๐Ÿ“‚ ๐Ÿ“„
Stars: โœญ 130 (+225%)
Mutual labels:  emoji, tree
Downgit
Create GitHub Resource Download Link
Stars: โœญ 936 (+2240%)
Mutual labels:  directory, file
Cpx
A cli tool to watch and copy file globs.
Stars: โœญ 394 (+885%)
Mutual labels:  directory, file
Coc Explorer
๐Ÿ“ Explorer for coc.nvim
Stars: โœญ 722 (+1705%)
Mutual labels:  tree, file
Cryptolist
Curated collection of blockchain & cryptocurrency resources.
Stars: โœญ 3,501 (+8652.5%)
Mutual labels:  directory, folder
files
Useful methods to manage files and directories
Stars: โœญ 27 (-32.5%)
Mutual labels:  directory, file
gitree
Print a directory tree that shows Git status and ignores files dictated by .gitignore.
Stars: โœญ 32 (-20%)
Mutual labels:  tree, directory
unicode-emoji-json
Emoji data from unicode.org as easily consumable JSON files.
Stars: โœญ 149 (+272.5%)
Mutual labels:  emoji
Attachment-Handler-Swift
Access Camera, Photo Library, Video and File from User device using Swift 4
Stars: โœญ 20 (-50%)
Mutual labels:  file

directory-structure

PyPI PyPI - Downloads PyPI - License GitHub watchers GitHub Repo stars GitHub forks

Print a directory tree structure in your Python code.

Download

You can simply:

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.
git clone https://github.com/gabrielstork/directory-structure.git
cd directory-structure
pip install -r requirements.txt

Examples

from directory_structure import Tree

Using absolute path as an argument.

path = Tree('C:/Users/User/Desktop/directory-structure', absolute=True)
print(path)
๐Ÿ“‚ C:
|_๐Ÿ“‚ Users
  |_๐Ÿ“‚ User
    |_๐Ÿ“‚ Desktop
      |_๐Ÿ“‚ directory-structure
        |_๐Ÿ“ .git
        |_๐Ÿ“ directory_structure
        |_๐Ÿ“„ .gitignore
        |_๐Ÿ“„ LICENSE
        |_๐Ÿ“„ pyproject.toml
        |_๐Ÿ“„ README.md
        |_๐Ÿ“„ requirements.txt
        |_๐Ÿ“„ setup.py
path = Tree('C:/Users/User/Desktop/directory-structure', absolute=False)
print(path)
๐Ÿ“‚ directory-structure
|_๐Ÿ“ .git
|_๐Ÿ“ directory_structure
|_๐Ÿ“„ .gitignore
|_๐Ÿ“„ LICENSE
|_๐Ÿ“„ pyproject.toml
|_๐Ÿ“„ README.md
|_๐Ÿ“„ requirements.txt
|_๐Ÿ“„ setup.py

Accessing a folder in current working directory.

path = Tree('./directory_structure', absolute=True)
print(path)
๐Ÿ“‚ C:
|_๐Ÿ“‚ Users
  |_๐Ÿ“‚ User
    |_๐Ÿ“‚ Desktop
      |_๐Ÿ“‚ directory-structure
        |_๐Ÿ“‚ directory_structure
          |_๐Ÿ“„ tree.py
          |_๐Ÿ“„ __init__.py
path = Tree('./directory_structure', absolute=False)
print(path)
๐Ÿ“‚ directory_structure
|_๐Ÿ“„ tree.py
|_๐Ÿ“„ __init__.py

Getting all from the directory where your current working directory is.

path = Tree('../', absolute=True)
print(path)
๐Ÿ“‚ C:
|_๐Ÿ“‚ Users
  |_๐Ÿ“‚ User
    |_๐Ÿ“‚ Desktop
      |_๐Ÿ“ directory-structure
      |_๐Ÿ“„ Discord.lnk
      |_๐Ÿ“„ Spotify.lnk
      |_๐Ÿ“„ Steam.lnk
      |_๐Ÿ“„ Telegram.lnk
      |_๐Ÿ“„ Visual Studio Code.lnk
      |_๐Ÿ“„ WhatsApp.lnk
path = Tree('../', absolute=False)
print(path)
๐Ÿ“‚ Desktop
|_๐Ÿ“ directory-structure
|_๐Ÿ“„ Discord.lnk
|_๐Ÿ“„ Spotify.lnk
|_๐Ÿ“„ Steam.lnk
|_๐Ÿ“„ Telegram.lnk
|_๐Ÿ“„ Visual Studio Code.lnk
|_๐Ÿ“„ WhatsApp.lnk

forthebadge forthebadge

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].