Metadata-Version: 2.4
Name: whitespaces
Version: 0.1.0
Summary: A tool to remove empty lines and clean up whitespace in Python files
Project-URL: Homepage, https://github.com/lothartj/whitespace
Project-URL: Issues, https://github.com/lothartj/whitespace/issues
Author-email: Lothar Tjipueja <lotharwebdev@gmail.com>
License-File: LICENSE
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.8
Requires-Dist: click>=8.0.0
Requires-Dist: loguru>=0.7.0
Requires-Dist: pydantic>=2.0.0
Requires-Dist: rich>=13.0.0
Requires-Dist: typing-extensions>=4.0.0
Description-Content-Type: text/markdown

# whitespaces
https://pypi.org/project/whitespaces/
A Python tool to remove empty lines and clean up whitespace in Python files, with a special focus on removing unnecessary empty lines within functions.

## Installation

Simply run:
```bash
pip install whitespaces
```

That's it! All dependencies will be automatically installed.

## Usage

You can use whitespaces either as a command-line tool or as a library in your Python code.

### Command Line Usage

```bash
# Clean a single file
whitespaces run file.py

# Clean multiple files
whitespaces run file1.py file2.py

# Clean all Python files in a directory
whitespaces run .
```

### Python Usage

```python
from whitespace import clean_file

# Clean a single file
clean_file("path/to/your/file.py")
```

## Features

- Removes empty lines within functions
- Preserves necessary whitespace for Python syntax
- Maintains code readability while reducing unnecessary spacing
- Supports both single file and directory processing
- Can be used as a CLI tool or Python library

## Dependencies

All of these will be installed automatically when you install the package:
- click>=8.0.0 - For command line interface
- loguru>=0.7.0 - For logging
- pydantic>=2.0.0 - For data validation
- typing-extensions>=4.0.0 - For type hints
- rich>=13.0.0 - For beautiful terminal output

## License

MIT License