{"id":16135262,"url":"https://github.com/xnuinside/codegraph","last_synced_at":"2025-04-05T06:08:56.699Z","repository":{"id":61825057,"uuid":"236208358","full_name":"xnuinside/codegraph","owner":"xnuinside","description":"CodeGraph - Tool that create a graph of code to show dependencies between code entities (methods, classes and etc).","archived":false,"fork":false,"pushed_at":"2023-10-04T00:28:05.000Z","size":1084,"stargazers_count":322,"open_issues_count":5,"forks_count":11,"subscribers_count":7,"default_branch":"main","last_synced_at":"2024-10-17T03:37:08.506Z","etag":null,"topics":["analyzer","hactoberfest","python"],"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/xnuinside.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.txt","contributing":"CONTRIBUTING.md","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":"2020-01-25T18:03:21.000Z","updated_at":"2024-10-16T15:03:56.000Z","dependencies_parsed_at":"2024-10-25T17:07:26.508Z","dependency_job_id":"e6c5020e-f608-4216-a3f9-221df2ff804a","html_url":"https://github.com/xnuinside/codegraph","commit_stats":{"total_commits":13,"total_committers":1,"mean_commits":13.0,"dds":0.0,"last_synced_commit":"22b9a148e7e8b3b99fd1c5be09cae809236fa27f"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xnuinside%2Fcodegraph","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xnuinside%2Fcodegraph/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xnuinside%2Fcodegraph/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xnuinside%2Fcodegraph/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xnuinside","download_url":"https://codeload.github.com/xnuinside/codegraph/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247294540,"owners_count":20915340,"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":["analyzer","hactoberfest","python"],"created_at":"2024-10-09T23:06:37.425Z","updated_at":"2025-04-05T06:08:56.672Z","avatar_url":"https://github.com/xnuinside.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"### CodeGraph - static code analyzator, that create a diagram with your code structure.\n\n![badge1](https://img.shields.io/pypi/v/codegraph) ![badge2](https://img.shields.io/pypi/l/codegraph) ![badge3](https://img.shields.io/pypi/pyversions/codegraph)![workflow](https://github.com/xnuinside/codegraph/actions/workflows/main.yml/badge.svg)\n\nTool that create a digram with your code structure to show dependencies between code entities (methods, modules, classes and etc).\nMain advantage of CodeGraph, that is does not execute the code itself. You not need to activate any environments or install dependencies to analyse the target code. \nIt is based only on lex and syntax parse, so it not need to install all your code dependencies.\n\n\n### Install codegraph\n```console\n  \n    pip install codegraph\n\n```\n\n### Analyze your code\n\ncodegraph - name of command line tool for CodeGrapg\n\n```console\n\n    codegraph /path/to/your_python_code\n    # path must be absolute\n\n    # or for one file\n\n    codegraph /path/to/your_python_code\n\n```\n\nyour_python_code - module with your python code\n\nFor example, if I put codegraph in my user home directory path will be:\n\n    codegraph /Users/myuser/codegraph/codegraph\n\nPass '-o' flag if you want only print dependencies in console and don't want graph visualisation\n\n    codegraph /path/to/your_python_code -o\n\nIf you want to change view and play with graph output - you can check 'vizualyzer.py'\nand play with matplotlib and networkX settings.\n\n### Colors meanings \nIn default view - **red line** show dependencies between entities in different modules.\n**Green** - links between objects/functions inside same module.\n\n![Graph visualisation](https://github.com/xnuinside/codegraph/blob/main/docs/img/graph_visualisation.png \"Graph visualisation\")\n\n![ Code with not used module](https://github.com/xnuinside/codegraph/blob/main/docs/img/code_with_trash_module.png \"Code with not used module\")\n\n![Code there all modules linked together](https://github.com/xnuinside/codegraph/blob/main/docs/img/normal_code.png \"Code there all modules linked together\")\n\n### TODO\n\n    1. Create normal readme\n    2. Add tests\n    3. Work on visual part of Graph (now it is not very user friendly)\n    4. Add support to variables (names) as entities\n    5. Split usage \u0026 inheritance as a different cases\n\n## Changelog\n**v0.1.0**\n### Improvements\n\n1. Command line tool name changed from 'cg' to 'codegraph'.\n2. Updated versions of dependencies\n3. Minimal supported python version up to 3.8\n4. Added some unit \u0026 functional tests\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxnuinside%2Fcodegraph","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxnuinside%2Fcodegraph","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxnuinside%2Fcodegraph/lists"}