
Security News
Open Source Maintainers Feeling the Weight of the EU’s Cyber Resilience Act
The EU Cyber Resilience Act is prompting compliance requests that open source maintainers may not be obligated or equipped to handle.
Tree3
is a command-line utility designed to simplify the process of working with directory structures (works on all operating systems: Linux
, macOS
, Windows
and etc.). Its core functionalities are:
tree
command but more useful.
/
├── src/
│ ├── main.py
│ └── utils.py
├── config.py
├── README.md
└── setup.py
The tool aims to assist developers, particularly when interacting with AI code generation tools or when sharing project structures. It provides options for filtering based on .gitignore rules, saving the output to a file, and copying the structure to the clipboard.
Install tree3 using pip:
pip install tree3
tree3 is invoked from the command line.
tree3 [OPTIONS] [path]
• path
(Optional): The directory path whose structure you want to display. Defaults to the current directory (.
).
This argument is ignored if -i
is used.
• -o FILE
, --output FILE
: Save the generated tree structure to the specified FILE
.
• -i FILE
, --input FILE
: Read a tree structure definition from the specified FILE
and create the corresponding directories and files.
• -g
, --ignore
: Respect rules found in the .gitignore
file within the target directory when generating the tree. This ignores files and directories specified in .gitignore
.
• -c
, --copy
: Copy the generated tree structure to the system clipboard.
• -v
, --version
: Display the version of tree3
and exit.
• -h
, --help
: Display the help message and exit.
tree3 [path]
/
├── tree3/
│ ├── core/
│ │ ├── __init__.py
│ │ ├── builder.py
│ │ ├── parser.py
│ │ └── tree.py
│ ├── utils/
│ │ ├── __init__.py
│ │ ├── clipboard.py
│ │ ├── file_utils.py
│ │ └── gitignore.py
│ ├── __init__.py
│ ├── __main__.py
│ ├── cli.py
│ ├── config.py
│ └── constants.py
├── LICENSE
├── pyproject.toml
├── README.md
└── setup.py
tree3 /path/to/my/project
tree3 -g /path/to/my/project
tree3 my_project -c -o structure.txt
tree3 -i structure.txt
Feel free to open issues and pull requests on the GitHub repository.
This project is licensed under the MIT License.
Built with ♥ by Amir Mazinani!
FAQs
A command line utility to display and create directory structures
We found that tree3 demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The EU Cyber Resilience Act is prompting compliance requests that open source maintainers may not be obligated or equipped to handle.
Security News
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.