### Install Project Dependencies and Activate Shell with Poetry Source: https://github.com/xnuinside/codegraph/blob/main/CONTRIBUTING.md This snippet demonstrates how to install project dependencies using Poetry and then activate the project's virtual environment shell. Poetry manages Python packages and environments, ensuring consistent development setups. ```Shell # after that do install poetry install # and activate project shell poetry shell ``` -------------------------------- ### Install CodeGraph Source: https://github.com/xnuinside/codegraph/blob/main/README.md Instructions to install the CodeGraph tool using pip, the Python package installer. ```console pip install codegraph ``` -------------------------------- ### Install Pre-commit Hooks for Code Style Enforcement Source: https://github.com/xnuinside/codegraph/blob/main/CONTRIBUTING.md This command installs pre-commit hooks, which automatically run checks on your code before each commit. This helps maintain consistent code styles and ensures compliance with project guidelines, preventing issues in CI/CD pipelines. ```Shell pre-commit install ``` -------------------------------- ### Example: Analyze CodeGraph Project Directory Source: https://github.com/xnuinside/codegraph/blob/main/docs/README.rst This example demonstrates using the `codegraph` command with an absolute path to analyze a specific project directory, such as the CodeGraph project itself located in a user's home directory. ```console codegraph /Users/myuser/codegraph/codegraph ``` -------------------------------- ### Install CodeGraph Python Package Source: https://github.com/xnuinside/codegraph/blob/main/docs/README.rst This command installs the CodeGraph library and its command-line tool using pip, the standard Python package installer. This makes the `codegraph` command available in your system's PATH. ```console pip install codegraph ``` -------------------------------- ### Example: Analyzing CodeGraph's Own Code Source: https://github.com/xnuinside/codegraph/blob/main/README.md An example demonstrating how to use CodeGraph with an absolute path, specifically for the tool's own directory if placed in the user's home directory. ```console codegraph /Users/myuser/codegraph/codegraph ``` -------------------------------- ### Print CodeGraph Dependencies to Console Source: https://github.com/xnuinside/codegraph/blob/main/README.md Use the '-o' flag with CodeGraph to print code dependencies directly to the console instead of generating a graph visualization. ```console codegraph /path/to/your_python_code -o ``` -------------------------------- ### Print CodeGraph Dependencies to Console Source: https://github.com/xnuinside/codegraph/blob/main/docs/README.rst Analyze your Python code and output the detected dependencies directly to the console as text, rather than generating a graph visualization. This is achieved by passing the `-o` flag to the `codegraph` command. ```console codegraph /path/to/your_python_code -o ``` -------------------------------- ### CodeGraph Project Development TODO List Source: https://github.com/xnuinside/codegraph/blob/main/docs/README.rst This section outlines the planned future development tasks and improvements for the CodeGraph project, covering areas like documentation, testing, visualization, and enhanced entity support. ```plaintext 1. Create normal readme 2. Add tests 3. Work on visual part of Graph (now it is not very user friendly) 4. Add support to variables (names) as entities 5. Split usage & inheritance as a different cases ``` -------------------------------- ### Analyze Python Code Directory or File Source: https://github.com/xnuinside/codegraph/blob/main/docs/README.rst Use the `codegraph` command-line tool to perform static analysis on a Python project directory or a single Python file. The provided path must be an absolute path to the target code. ```console codegraph /path/to/your_python_code # path must be absolute ``` -------------------------------- ### Analyze Python Code with CodeGraph Source: https://github.com/xnuinside/codegraph/blob/main/README.md Command to analyze a Python code directory or a single file using the CodeGraph command-line tool. The provided path must be absolute. ```console codegraph /path/to/your_python_code # path must be absolute # or for one file codegraph /path/to/your_python_code ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.