{"id":15874575,"url":"https://github.com/rudifa/sourcekitten-calltree","last_synced_at":"2025-04-01T23:21:20.582Z","repository":{"id":74524004,"uuid":"593799020","full_name":"rudifa/sourcekitten-calltree","owner":"rudifa","description":"python script, extracts a calltree from `sourcekitten structure --file myfile.swift`","archived":false,"fork":false,"pushed_at":"2023-01-28T14:32:58.000Z","size":57,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-07T15:13:48.856Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rudifa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2023-01-26T21:29:56.000Z","updated_at":"2023-01-26T21:30:08.000Z","dependencies_parsed_at":"2023-02-25T20:00:24.919Z","dependency_job_id":null,"html_url":"https://github.com/rudifa/sourcekitten-calltree","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rudifa%2Fsourcekitten-calltree","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rudifa%2Fsourcekitten-calltree/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rudifa%2Fsourcekitten-calltree/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rudifa%2Fsourcekitten-calltree/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rudifa","download_url":"https://codeload.github.com/rudifa/sourcekitten-calltree/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246725459,"owners_count":20823642,"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-06T01:40:41.942Z","updated_at":"2025-04-01T23:21:20.564Z","avatar_url":"https://github.com/rudifa.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# generate a calltree for a swift file\n\n```\nsourcekitten-calltree % sourcekitten_calltree.py -h                                        [main|✔]\nusage: sourcekitten_calltree.py [-h] [--file FILE] [-x EXCLUDE]\n\nProcess a json file generated by sourcekitten --structure and generate a calltree.\n\noptional arguments:\n  -h, --help            show this help message and exit\n  --file FILE           the file to process\n  -x EXCLUDE, --exclude EXCLUDE\n                        exclude identifiers from the call tree\n\nHow to generate a calltree for a Swift file:\n1. sourcekitten structure --file \u003cfile\u003e.swift | python3 sourcekitten_calltree.py\n2. or, in two steps:\n    2.1. sourcekitten structure --file \u003cfile\u003e.swift \u003e \u003cfile\u003e.json\n    2.2. python3 sourcekitten_calltree.py \u003cfile\u003e.json\n3. this script generates two calltree files in subdirectory graphviz-output/:\n    3.1 \u003cfile\u003e.calltree.gv\n    3.2 \u003cfile\u003e.calltree.gv.pdf and opens it in Preview.\n4. if needed, install sourcekitten first:\n    brew install sourcekitten\n5. You can exclude uninteresting functions from the calltree by passing them as a comma-separated list, e.g.:\n   ./sourcekitten_calltree.py --file \u003cfile\u003e.json -x print,String,Int\n\n```\n\n### issues\n\n- none known\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frudifa%2Fsourcekitten-calltree","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frudifa%2Fsourcekitten-calltree","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frudifa%2Fsourcekitten-calltree/lists"}