Skip to main content

PyBoost - Ultimate Python Code Maintenance Toolkit

PyPI version Python versions License

PyBoost is a comprehensive toolkit for cleaning, optimizing, and improving Python code. It integrates multiple tools into a single, easy-to-use package.

Features

PyBoost combines the following tools:

  1. pybackup - Create backups of Python files with timestamps
  2. rmcm - Remove comments and docstrings (optional)
  3. autoflake - Remove unused imports and variables
  4. pyupgrade - Upgrade to modern Python syntax
  5. isort - Sort imports
  6. black - Format code
  7. ruff - Lint and check for errors
  8. mypy - Static type checking (optional)
  9. bandit - Security checks (optional)
  10. vulture - Find dead code (optional)

Installation

The package is available on PyPI as pyboost-toolkit.

Note: While the package name is pyboost-toolkit, the command-line tools are still named pyboost, pybackup, etc.

Basic Installation

pip install pyboost-toolkit

Full Installation (with all optional tools)

pip install pyboost-toolkit[all]

Development Installation

pip install pyboost-toolkit[dev]

Usage

Basic Usage

pyboost /path/to/your/python/project

Options

usage: pyboost [-h] [--no-bak] [--backup-dir BACKUP_DIR] [--skip SKIP]
               [--aggressive] [--backup-only] [--list-tools] [--verbose]
               directory

Ultimate Python Code Maintenance Toolkit

positional arguments:
  directory             Directory containing Python files to process

options:
  -h, --help            show this help message and exit
  --no-bak              Skip creating backup files (backups are stored in the
                        codebase by default)
  --backup-dir BACKUP_DIR
                        Directory to store backups (default: <codebase>/backup)
  --skip SKIP           Comma-separated list of tools to skip (e.g.,
                        'rmcm,mypy,bandit')
  --aggressive          Enable aggressive mode (includes comment removal and
                        other potentially destructive operations)
  --backup-only         Only create backups, don't process files
  --list-tools          List all available tools and exit
  --verbose, -v         Enable verbose output

Examples

Basic Usage

pyboost ~/projects/my_python_project

Skip Optional Tools

pyboost ~/projects/my_python_project --skip=mypy,bandit,vulture

Aggressive Mode (includes comment removal)

pyboost ~/projects/my_python_project --aggressive

Backup Only

pyboost ~/projects/my_python_project --backup-only

Custom Backup Directory

pyboost ~/projects/my_python_project --backup-dir ~/backups/python_projects

Individual Tools

PyBoost also provides access to individual tools:

PyBackup

Create backups of Python files with timestamps.

pybackup /path/to/your/python/project

PyRMCM (Remove Comments)

Remove comments and docstrings from Python files.

pyrmcm input_file.py output_file.py

PyFormat

Format Python files by removing comments and applying Black.

pyformat /path/to/your/python/project

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository from GitHub
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.

Metadata

Release files for pyboost-toolkit 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyboost-toolkit 1.0.0
File Size Uploaded Provenance
pyboost_toolkit-1.0.0.tar.gz 19.4 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for pyboost-toolkit 1.0.0
File Interpreter ABI Platform
pyboost_toolkit-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 40.3 kB

Release files / pyboost_toolkit-1.0.0.tar.gz

Download URL pyboost_toolkit-1.0.0.tar.gz
Size 19.4 kB
Tags Source
SHA-256 checksum
How to use checksums
c211185423130c6bb7a4a584fd6af023b7e5dba7298abad21d6594ea1b33ac35
BLAKE2b-256 checksum
How to use checksums
b418b7edf779238b1c7990c47084470085316158b8e64e64440aa948842cc0cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.3

Release files / pyboost_toolkit-1.0.0-py3-none-any.whl

Download URL pyboost_toolkit-1.0.0-py3-none-any.whl
Size 20.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9c0116d3b9e9ea20321853f7f688486a396542895431b8e57e046155581f39bb
BLAKE2b-256 checksum
How to use checksums
003ceb8ca76635474dc4ae5e7e7eb9554d4c6beb1645603702cc4e95940e1e17
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.3

Security for pyboost-toolkit 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page