šŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →
Socket
Sign inDemoInstall
Socket

tree2structure

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tree2structure

Convert tree-style folder structure into real files and folders with comments

0.1.1
PyPI
Maintainers
1

tree2structure

Convert a textual tree-style folder structure into nested Python dicts and generate real files/folders with inline comments.

Install

  pip install tree2structure

Usage

from tree2structure.parser import parse_structure
from tree2structure.generator import create_from_structure

structure = parse_structure(your_string_raw_tree)
create_from_structure(structure, base_path="your_project/")

Keywords

parser

FAQs

Did you know?

Socket

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.

Install

Related posts