{"id":24486938,"url":"https://github.com/taeefnajib/pygentree","last_synced_at":"2025-04-13T21:05:08.346Z","repository":{"id":259396956,"uuid":"877760175","full_name":"taeefnajib/pygentree","owner":"taeefnajib","description":"A Python package to generate ASCII tree representation of directory structures.","archived":false,"fork":false,"pushed_at":"2024-11-22T16:28:01.000Z","size":22,"stargazers_count":12,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-23T01:46:58.247Z","etag":null,"topics":["ascii","directory","directory-tree","file-structure","files","filesystem","filetree","generate","generator","python","tree"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/taeefnajib.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-24T07:40:28.000Z","updated_at":"2024-11-23T00:35:57.000Z","dependencies_parsed_at":"2024-10-31T00:31:38.806Z","dependency_job_id":null,"html_url":"https://github.com/taeefnajib/pygentree","commit_stats":null,"previous_names":["taeefnajib/pygentree"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taeefnajib%2Fpygentree","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taeefnajib%2Fpygentree/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taeefnajib%2Fpygentree/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/taeefnajib%2Fpygentree/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/taeefnajib","download_url":"https://codeload.github.com/taeefnajib/pygentree/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234975104,"owners_count":18916157,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ascii","directory","directory-tree","file-structure","files","filesystem","filetree","generate","generator","python","tree"],"created_at":"2025-01-21T15:31:54.659Z","updated_at":"2025-01-21T15:32:53.732Z","avatar_url":"https://github.com/taeefnajib.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PyGenTree\n\n[![PyPI version](https://img.shields.io/pypi/v/pygentree.svg?style=for-the-badge)](https://pypi.org/project/pygentree/)\n[![License](https://img.shields.io/pypi/l/pygentree.svg?style=for-the-badge)](https://github.com/taeefnajib/pygentree/blob/main/LICENSE)\n[![Python versions](https://img.shields.io/pypi/pyversions/pygentree.svg?style=for-the-badge)](https://pypi.org/project/pygentree/)\n\nA Python package to generate ASCII tree representation of directory structures.\n\n\u003cimg src=\"https://i.postimg.cc/HsPP8RRL/Screenshot-from-2024-10-24-23-45-17.png\"/\u003e\n\n## Requirements\n\n- Python 3.6 or higher\n\n## Installation\n\n```bash\npip install pygentree\n```\n\n## Usage\n\n```bash\n# Basic usage (current directory)\npygentree\n\n# Specify a directory\npygentree /path/to/directory\n\n# Limit depth level\npygentree -l 2\n\n# Sort files and folders\npygentree -s asc   # ascending order\npygentree -s desc  # descending order\npygentree -s standard  # default: folders first, then files\n\n# Show only directories\npygentree -d\n\n# Ignore hidden files and directories, e.g. .git, .env, etc.\npygentree --ignore-hidden\n\n# Exclude specific files or directories (comma-separated)\npygentree -e \"node_modules,venv,dist\"\n\n# Save output to file (default .txt)\npygentree -o tree.txt\n\n# Save output in different formats\npygentree -o tree.rst --format rst  # Save as reStructuredText\npygentree -o tree.txt --format txt  # Save as plain text (default)\n\n# Show version\npygentree -v\n\n# Show help\npygentree -h\n```\n\n## Features\n\n- Generate ASCII tree representation of directory structures\n- Customize maximum depth level\n- Multiple sorting options\n- Option to show only directories\n- Option to ignore hidden files and directories\n- Exclude specific files and directories\n- Save output to file in multiple formats (txt, rst)\n- Handle permission errors gracefully\n- Cross-platform compatibility\n\n## Supported Python Versions\n\n- Python 3.6\n- Python 3.7\n- Python 3.8\n- Python 3.9\n- Python 3.10\n- Python 3.11\n- Python 3.12\n\n## License\n\nMIT License","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaeefnajib%2Fpygentree","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftaeefnajib%2Fpygentree","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftaeefnajib%2Fpygentree/lists"}