micompress
Compress images, PDFs, video, audio, documents & archives from your terminal or Python. Powered by micompress.com.
A tiny zero-dependency client (standard library only) that sends your file to the MiCompress engine and writes back the optimized result.
pip install micompress
CLI usage
micompress photo.jpg # → photo-min.jpg
micompress *.png --preset extreme
micompress report.pdf slides.pptx -o out/
micompress big.jpg --max-width 1920 --json
| Option | Description |
|---|---|
-o, --output DIR |
Write results to a directory (default: alongside input, -min suffix) |
-p, --preset |
lossless · recommended (default) · extreme |
--max-width PX |
Resize images down to a maximum width |
--token JWT |
Auth token for higher size limits |
--api URL |
Override API base URL |
--json |
Machine-readable output |
-q, --quiet |
Only print errors |
Python API
from micompress import compress_file
data, meta = compress_file("photo.jpg", preset="extreme")
open("photo-min.jpg", "wb").write(data)
print(meta["savedPercent"], "% smaller")
Supported formats
Image (jpg, png, webp, gif, tiff, avif, svg, heic, psd, raw…), PDF & Office docs, video (mp4, mov, mkv, webm…), audio (mp3, wav, flac…), archives (zip, 7z, tar, gz). Full list: https://micompress.com/all-tools
Requirements
Python 3.8+. No third-party dependencies.
License
MIT © MiCompress
Prefer a web UI or bigger batches? Use micompress.com.
Metadata
Release files for micompress 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| micompress-0.1.0.tar.gz | 7.3 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| micompress-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.3 kB
Release files / micompress-0.1.0.tar.gz
| Download URL | micompress-0.1.0.tar.gz |
|---|---|
| Size | 7.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
80a2402d6c4987dfd8b69a2a93165d6b9f10661e8367cec83cc3a2e891cbae59
|
|
BLAKE2b-256 checksum How to use checksums |
1db1ff0262e6afd0a116023f1e2418dfdc08c276fb3c1722c90c8ada860905ce
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.2
|
Release files / micompress-0.1.0-py3-none-any.whl
| Download URL | micompress-0.1.0-py3-none-any.whl |
|---|---|
| Size | 8.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
db5a16add678705ef66b1550c02dc7dbc526a828a5107f094d891053c86d86cd
|
|
BLAKE2b-256 checksum How to use checksums |
042283c7b6f4eac91f38edf0ac2a65342e3acd6380a79aa7c685703a203c70cd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.2
|
Security for micompress 0.1.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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.