{"id":16661608,"url":"https://github.com/jml/tree-format","last_synced_at":"2025-05-08T19:47:59.511Z","repository":{"id":33749352,"uuid":"37404370","full_name":"jml/tree-format","owner":"jml","description":"Python library for printing trees on the console","archived":false,"fork":false,"pushed_at":"2023-12-31T11:20:44.000Z","size":25,"stargazers_count":39,"open_issues_count":6,"forks_count":17,"subscribers_count":6,"default_branch":"main","last_synced_at":"2024-11-10T01:02:43.076Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jml.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-06-14T08:07:34.000Z","updated_at":"2023-03-11T10:34:05.000Z","dependencies_parsed_at":"2024-06-18T18:35:49.534Z","dependency_job_id":"00e42bdb-e52a-4d16-ba69-d1ca1c6d30d0","html_url":"https://github.com/jml/tree-format","commit_stats":{"total_commits":26,"total_committers":5,"mean_commits":5.2,"dds":0.5384615384615384,"last_synced_commit":"922c9d37661dfb884cd45a9a9a2533f5eabe09f5"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jml%2Ftree-format","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jml%2Ftree-format/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jml%2Ftree-format/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jml%2Ftree-format/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jml","download_url":"https://codeload.github.com/jml/tree-format/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225110575,"owners_count":17422411,"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":[],"created_at":"2024-10-12T10:35:36.731Z","updated_at":"2024-11-18T01:04:59.841Z","avatar_url":"https://github.com/jml.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Python library to generate nicely formatted trees, like the UNIX `tree`\ncommand.\n\n## Example\n\nProduce output like this:\n\n```\nfoo\n├── bar\n│   ├── a\n│   └── b\n├── baz\n└── qux\n    └── c⏎\n        d\n```\n\nusing code like this:\n\n```python\nfrom operator import itemgetter\n\nfrom tree_format import format_tree\n\ntree = (\n    'foo', [\n        ('bar', [\n            ('a', []),\n            ('b', []),\n        ]),\n        ('baz', []),\n        ('qux', [\n            ('c\\nd', []),\n        ]),\n    ],\n)\n\nprint format_tree(\n    tree, format_node=itemgetter(0), get_children=itemgetter(1))\n```\n\n## License\n\nThis is made available under the Apache Software License, version 2.0.\n\nCopyright (c) 2015 - Jonathan M. Lange\n\n## Testing\n\nRun tests with:\n\n```\npython -m testtools.run discover\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjml%2Ftree-format","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjml%2Ftree-format","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjml%2Ftree-format/lists"}