A custom image format with CLI and Python library support for encoding, decoding, viewing, and validating .satish files.
Install in development mode:
# Navigate to your satish-format directory cd satish-format/ # Install in development mode (creates the 'satish' command) pip install -e .
# Convert a single image satish convert photo.jpg photo.satish # Convert with specific output path satish convert /path/to/image.png /path/to/output.satish # Overwrite existing files satish convert image.jpg output.satish --overwrite
# Convert SATISH to PNG satish convert photo.satish photo.png # Convert to JPEG with quality setting satish convert photo.satish photo.jpg --quality 90
# Display a SATISH image satish view photo.satish # View without showing file info satish view photo.satish --no-info
# Basic file info satish info photo.satish # Show more pixel details satish info photo.satish --hex-preview 10 # Show raw header bytes satish info photo.satish --show-header
# Basic validation satish validate photo.satish # Strict validation mode satish validate photo.satish --strict
# Convert all JPGs in current directory satish batch *.jpg --output-dir satish_files/ # Parallel processing for faster conversion satish batch *.jpg *.png --parallel --workers 8 # Add suffix to output files satish batch photos/*.jpg --suffix "_converted" --output-dir output/
satish --help # Show help satish --version # Show version satish --verbose # Enable verbose output
satish convert INPUT OUTPUT [OPTIONS]
Options:
--quality INT Output quality for lossy formats (1-100)
--overwrite Overwrite existing output filesatish view FILE [OPTIONS]
Options:
--no-info Don't show image informationsatish info FILE [OPTIONS]
Options:
--hex-preview INT Number of pixels to show in hex (default: 5)
--show-header Show raw header bytessatish validate FILE [OPTIONS] Options: --strict Use strict validation mode
satish batch FILES... [OPTIONS] Options: --output-dir, -o DIR Output directory (default: current) --suffix TEXT Suffix to add to filenames --parallel, -p Enable parallel processing --workers INT Number of worker processes (default: 4)
satish batch ~/Photos/*.jpg --output-dir ~/SatishPhotos/ --parallel # Convert with progress tracking satish batch vacation/*.* --output-dir satish/ --verbose
satish convert large_image.png compressed.satish satish info compressed.satish
for file in *.satish; do echo "Checking $file..." satish validate "$file" --strict done
pip install -e .
which satish
python -m satish.cli.main --helppip install -r requirements.txt
python -c "import satish; print('OK')"pip install --user -e .satish batch *.jpg --output-dir satish_images/ --parallel ls satish_images/ satish info satish_images/photo.satish --hex-preview 3 satish view satish_images/photo.satish satish convert satish_images/photo.satish verification.png satish validate satish_images/*.satish
satish-format/
āāā README.md
āāā setup.py
āāā requirements.txt
āāā satish/
ā āāā __init__.py
ā āāā core/
ā ā āāā __init__.py
ā ā āāā format.py
ā ā āāā encoder.py
ā ā āāā decoder.py
ā ā āāā validator.py
ā āāā utils/
ā ā āāā __init__.py
ā ā āāā colors.py
ā ā āāā file_utils.py
ā ā āāā exceptions.py
ā āāā cli/
ā āāā __init__.py
ā āāā commands.py
ā āāā main.py
āāā tests/
ā āāā __init__.py
ā āāā test_core/
ā ā āāā test_encoder.py
ā ā āāā test_decoder.py
ā ā āāā test_format.py
ā āāā test_utils/
ā āāā test_colors.py
ā āāā test_file_utils.py
āāā examples/
ā āāā basic_usage.py
ā āāā batch_convert.py
ā āāā custom_metadata.py
āāā docs/
āāā format_spec.md
āāā api_reference.md
āāā examples.md
from satish import SatishEncoder, SatishDecoder encoder = SatishEncoder() success = encoder.encode_image('images.jpeg', 'test.satish') print(f"Encoding successful: {success}")