{"id":38670286,"url":"https://github.com/gabrielstork/directory-structure","last_synced_at":"2026-01-17T09:54:56.084Z","repository":{"id":57418260,"uuid":"390745237","full_name":"gabrielstork/directory-structure","owner":"gabrielstork","description":":package: Print a directory tree structure in your Python code.","archived":false,"fork":false,"pushed_at":"2021-09-16T21:16:23.000Z","size":24,"stargazers_count":54,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-01-07T06:43:56.663Z","etag":null,"topics":["directory","emoji","file","folder","structure","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/gabrielstork.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-07-29T14:09:42.000Z","updated_at":"2025-12-03T21:14:03.000Z","dependencies_parsed_at":"2022-09-08T06:50:08.676Z","dependency_job_id":null,"html_url":"https://github.com/gabrielstork/directory-structure","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gabrielstork/directory-structure","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabrielstork%2Fdirectory-structure","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabrielstork%2Fdirectory-structure/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabrielstork%2Fdirectory-structure/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabrielstork%2Fdirectory-structure/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gabrielstork","download_url":"https://codeload.github.com/gabrielstork/directory-structure/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gabrielstork%2Fdirectory-structure/sbom","scorecard":{"id":416740,"data":{"date":"2025-08-11","repo":{"name":"github.com/gabrielstork/directory-structure","commit":"641ca9e6f05754dc51dc4aa0cdc537dd9c1b1c6c"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Code-Review","score":0,"reason":"Found 0/29 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-19T00:07:07.219Z","repository_id":57418260,"created_at":"2025-08-19T00:07:07.220Z","updated_at":"2025-08-19T00:07:07.220Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28505565,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T06:57:29.758Z","status":"ssl_error","status_checked_at":"2026-01-17T06:56:03.931Z","response_time":85,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["directory","emoji","file","folder","structure","tree"],"created_at":"2026-01-17T09:54:55.698Z","updated_at":"2026-01-17T09:54:56.068Z","avatar_url":"https://github.com/gabrielstork.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# directory-structure\n\n![PyPI](https://img.shields.io/pypi/v/directory-structure?color=blue)\n![PyPI - Downloads](https://img.shields.io/pypi/dm/directory-structure?color=blue)\n![PyPI - License](https://img.shields.io/pypi/l/directory-structure?color=blue)\n![GitHub watchers](https://img.shields.io/github/watchers/gabrielstork/directory-structure?color=blue)\n![GitHub Repo stars](https://img.shields.io/github/stars/gabrielstork/directory-structure?color=blue)\n![GitHub forks](https://img.shields.io/github/forks/gabrielstork/directory-structure?color=blue)\n\nPrint a directory tree structure in your Python code.\n\n## Download\n\nYou can simply:\n\n```sh\npip install directory-structure\n```\n\nOr you can also:\n\n1. Clone the repository to your local machine.\n2. Enter the directory.\n3. Download necessary modules/libraries.\n\n```sh\ngit clone https://github.com/gabrielstork/directory-structure.git\ncd directory-structure\npip install -r requirements.txt\n```\n\n## Examples\n\n```python\nfrom directory_structure import Tree\n```\n\nUsing absolute path as an argument.\n\n```python\npath = Tree('C:/Users/User/Desktop/directory-structure', absolute=True)\nprint(path)\n```\n\n```text\n📂 C:\n|_📂 Users\n  |_📂 User\n    |_📂 Desktop\n      |_📂 directory-structure\n        |_📁 .git\n        |_📁 directory_structure\n        |_📄 .gitignore\n        |_📄 LICENSE\n        |_📄 pyproject.toml\n        |_📄 README.md\n        |_📄 requirements.txt\n        |_📄 setup.py\n```\n\n```python\npath = Tree('C:/Users/User/Desktop/directory-structure', absolute=False)\nprint(path)\n```\n\n```text\n📂 directory-structure\n|_📁 .git\n|_📁 directory_structure\n|_📄 .gitignore\n|_📄 LICENSE\n|_📄 pyproject.toml\n|_📄 README.md\n|_📄 requirements.txt\n|_📄 setup.py\n```\n\nAccessing a folder in current working directory.\n\n```python\npath = Tree('./directory_structure', absolute=True)\nprint(path)\n```\n\n```text\n📂 C:\n|_📂 Users\n  |_📂 User\n    |_📂 Desktop\n      |_📂 directory-structure\n        |_📂 directory_structure\n          |_📄 tree.py\n          |_📄 __init__.py\n```\n\n```python\npath = Tree('./directory_structure', absolute=False)\nprint(path)\n```\n\n```text\n📂 directory_structure\n|_📄 tree.py\n|_📄 __init__.py\n```\n\nGetting all from the directory where your current working directory is.\n\n```python\npath = Tree('../', absolute=True)\nprint(path)\n```\n\n```text\n📂 C:\n|_📂 Users\n  |_📂 User\n    |_📂 Desktop\n      |_📁 directory-structure\n      |_📄 Discord.lnk\n      |_📄 Spotify.lnk\n      |_📄 Steam.lnk\n      |_📄 Telegram.lnk\n      |_📄 Visual Studio Code.lnk\n      |_📄 WhatsApp.lnk\n```\n\n```python\npath = Tree('../', absolute=False)\nprint(path)\n```\n\n```text\n📂 Desktop\n|_📁 directory-structure\n|_📄 Discord.lnk\n|_📄 Spotify.lnk\n|_📄 Steam.lnk\n|_📄 Telegram.lnk\n|_📄 Visual Studio Code.lnk\n|_📄 WhatsApp.lnk\n```\n\n[![forthebadge](https://forthebadge.com/images/badges/made-with-python.svg)](https://github.com/gabrielstork)\n[![forthebadge](https://forthebadge.com/images/badges/built-with-love.svg)](https://github.com/gabrielstork)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgabrielstork%2Fdirectory-structure","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgabrielstork%2Fdirectory-structure","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgabrielstork%2Fdirectory-structure/lists"}