FileFlow is a tool designed to help you visualize and manage file-to-file import dependencies within your Python projects. By utilizing only the standard library, FileFlow generates a clear diagram and a Markdown report that outlines how files within your project interact with each other. This tool is perfect for developers looking to understand their codebase better and ensure all dependencies are verified.
- Visual Diagrams: Automatically generate diagrams that show the relationships between files.
- Markdown Reports: Create comprehensive Markdown reports detailing file dependencies.
- Standard Library: Built entirely with Python's standard library, ensuring compatibility and ease of use.
- Static Analysis: Perform static analysis on your codebase to identify and document dependencies.
- Dependency Verification: Verify that all imports are accounted for and correctly documented.
- Project Architecture Insights: Gain insights into your project's architecture with minimal effort.
To install FileFlow, you can download the latest release from the Releases section. After downloading, follow these steps:
-
Extract the downloaded file.
-
Navigate to the extracted folder in your terminal.
-
Run the following command to execute FileFlow:
python fileflow.py
Make sure you have Python 3 installed on your system.
Using FileFlow is straightforward. Once you have it installed, follow these steps:
-
Navigate to your Python project directory.
-
Run the FileFlow script:
python path/to/fileflow.py
-
After execution, check the generated diagram and Markdown report in the output directory.
FileFlow supports several command line options:
-h
,--help
: Show help message and exit.-o
,--output
: Specify the output directory for the report and diagram.-f
,--format
: Choose the format of the report (Markdown or HTML).
Here’s a simple example to illustrate how FileFlow works:
-
Create a sample Python project with the following structure:
my_project/ ├── main.py ├── utils.py └── data/ └── process.py
-
In
main.py
, import theutils
module:from utils import helper_function
-
In
process.py
, import themain
module:from ..main import main_function
-
Run FileFlow:
python path/to/fileflow.py
-
Check the output directory for the generated diagram and Markdown report.
Contributions are welcome! If you have suggestions or improvements, feel free to open an issue or submit a pull request. Here’s how you can contribute:
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch
). - Make your changes.
- Commit your changes (
git commit -m 'Add new feature'
). - Push to the branch (
git push origin feature-branch
). - Open a pull request.
FileFlow is licensed under the MIT License. See the LICENSE file for details.
For any questions or suggestions, please reach out:
- GitHub: iaqn12xddd12
- Email: your.email@example.com
For the latest updates and releases, visit the Releases section.
Thank you for using FileFlow! Happy coding!