Skip to main content

VexyFormi

Fast code formatting and minification using the best available tools.

Features

  • 🔥 Blazing Fast: Uses fastest available tools (esbuild, swc, biome, ruff)
  • 🛡️ Safe: Atomic operations with automatic backups
  • 🎯 Smart: Automatic tool detection and fallbacks
  • 📦 Simple: Zero-config operation with sensible defaults
  • 🌐 Universal: Supports JS, TS, CSS, HTML, Python, JSON, YAML, TOML, Markdown

Quick Start

# Install
pip install vexy-formi

# Install all required tools automatically
vfor install

# Minify current directory
vfor mini

# Format Python files
vfor fmt --verbose src/

# Show available tools
vfor tools

# Update all tools to latest versions
vfor update

# Use as Python package
python -c "import vexy_formi; vexy_formi.minify('src/')"

Supported Tools

  • JavaScript/TypeScript: esbuild, swc, terser, biome, prettier
  • CSS/SCSS: biome, lightningcss, prettier
  • Python: ruff, black
  • HTML: html-minifier-terser, prettier
  • JSON: biome, jq, prettier
  • TOML: taplo, dprint
  • YAML: prettier, yq
  • Markdown: dprint, prettier

Configuration

Set preferences via environment variables:

  • VFOR_PREFERRED_JS_TOOL=esbuild
  • VFOR_PREFERRED_CSS_TOOL=biome
  • VFOR_PREFERRED_PYTHON_TOOL=ruff
  • VFOR_MAX_WORKERS=8

Or create .vfor.json in your project:

{
    "preferred_js_tool": "esbuild",
    "preferred_css_tool": "biome", 
    "max_workers": 4
}

CLI Usage

# Minify files
vfor mini                    # Current directory  
vfor mini src/              # Specific directory
vfor mini --verbose src/    # Show detailed output
vfor mini --no-backup src/  # Skip backups

# Format files
vfor fmt                     # Current directory
vfor fmt --recursive src/    # Process recursively  
vfor fmt --exclude "*.min.*" # Exclude patterns

# Tool management
vfor install                 # Install all required tools
vfor update                  # Update tools to latest versions
vfor tools                   # Show available tools
vfor cleanup                 # Clean backup files

Python API

import vexy_formi

# Simple API
result = vexy_formi.minify('src/')
result = vexy_formi.format('src/', recursive=True, exclude=['*.test.*'])

# Advanced usage
from vexy_formi import FileProcessor

processor = FileProcessor()
result = processor.minify_files(
    Path('src/'), 
    recursive=True,
    max_workers=8,
    create_backup=True
)

print(f"Processed {result.total_files} files")
print(f"Size reduction: {result.total_size_reduction_percent:.1f}%")

Development

# Clone repository
git clone https://github.com/vexyart/vexy-formi.git
cd vexy-formi

# Install dependencies  
pip install -e .[dev,test]

# Run CLI directly
./vfor mini examples/

# Run tests
pytest

# Format code
ruff format src/

License

MIT License

Release files for vexy-formi 1.0.4

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

Source distribution (sdist)

Source distribution for vexy-formi 1.0.4
File Size Uploaded
vexy_formi-1.0.4.tar.gz 10.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for vexy-formi 1.0.4
File Interpreter ABI Platform
vexy_formi-1.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 58.1 kB

Release files / vexy_formi-1.0.4.tar.gz

Download URL vexy_formi-1.0.4.tar.gz
Size 10.3 kB
Tags Source
SHA-256 checksum
How to use checksums
973a04deffa36c897fe34c972025ed12d026dd29d453d89acc9717b862e825cc
BLAKE2b-256 checksum
How to use checksums
678f9c5a36ddd5674d03e15867d26330455c080af7f926b2c04051ddcdf6581a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.15

Release files / vexy_formi-1.0.4-py3-none-any.whl

Download URL vexy_formi-1.0.4-py3-none-any.whl
Size 47.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
208593b73ca22de3e4c7a3bdddfd5a7fac5fc56dbe11724d776aa0bd68ed2bf3
BLAKE2b-256 checksum
How to use checksums
7d60c86e32233e840665c78ea3e672bd21bf50a2c143535f688888d5ce4f79e4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.8.15

Release history Release notifications | RSS feed

This release

1.0.4 This release

2 release files

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