pudszttiot / BlackMagic

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BlackMagic

BlackMagic is a Python application designed to simplify code formatting using Black, a popular code formatter. This GUI-based tool offers a seamless experience for loading Python files, applying Black formatting, and saving the formatted code. The interface provides a side-by-side comparison of the original and formatted code, enhancing code readability and maintainability.

Screenshots

Screenshot-1

Table of Contents

Installation

Explain how to install your project.

Usage

  1. Load File: Click "Load Python File" to select the Python file you want to format.

  2. Format Code: Press "Format Code" to apply Black formatting and view the changes.

  3. Save Formatted Code: Use "Save Formatted Code" to save the formatted code to a new file.

Usage Example:

python blackmagic.py

Features

  • User-Friendly Interface:

    • Intuitive GUI for effortless code formatting.
  • Load and Save:

    • Easily load Python files and save the formatted code.
  • Seamless integration with Black for consistent code styling.

  • Comparison View:

    • Side-by-side display of original and formatted code for quick assessment.

Contributing

Contributions and feedback are welcome! Feel free to submit issues, feature requests, or pull requests to enhance BlackMagic.

License

This project is licensed under the MIT License.

About


Languages

Language:Python 100.0%