semvec/pypi-packages huggingface dataset:
cleanscript 1.0.1
CleanScript: An intelligent Python code optimizer and documentation tool that enhances code quality through automated refactoring, PEP-8 compliance checks, and AI-powered comment generation. Supports both online API and local AI models for all your code cleaning needs.
License: MIT
Requires Python: >=3.7
Keywords: python, code, optimizer, cleaner, documentation, gpt, refactor, pep8, formatter, ai, autocomplete

# CleanScript

**CleanScript** is a Python package that optimizes your Python scripts by:

- Removing unused imports,
- Adding basic or GPT-generated docstrings to functions and classes,
- Formatting your code with [black](https://github.com/psf/black),
- Optionally generating smarter comments using Hugging Face GPT-2 inference API.

---

## Installation

```bash
pip install cleanscript