Skip to main content

build status

jpegoptim-py

A python wrapper to provide a pip-installable jpegoptim binary.

Internally this package provides a convenient way to download the pre-built jpegoptim binary for your particular platform.

Installation

pip install jpegoptim-py

Usage

After installation, the jpegoptim binary should be available in your environment (or jpegoptim.exe on windows).

As a pre-commit hook

See pre-commit for instructions

Sample .pre-commit-config.yaml:

-   repo: https://github.com/UnknownPlatypus/jpegoptim-py
    rev: v1.5.5.2
    hooks:
    -   id: jpegoptim

Lossy compression is not idempotent. In that case, consider adding a threshold, otherwise you might block the commit for too long.

Sample .pre-commit-config.yaml with lossy compression enabled:

-   repo: https://github.com/UnknownPlatypus/jpegoptim-py
    rev: v1.5.5.2
    hooks:
    -   id: jpegoptim
        args: [--strip-all, --all-progressive, --max=85, --threshold=3]

References

This is an adaptation of shellcheck-py following the exact same strategy. This aims at making it easier to use as a pre-commit hook.

Metadata

Release files for jpegoptim-py 1.5.5.2

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

Source distribution (sdist)

Source distribution for jpegoptim-py 1.5.5.2
File Size Uploaded Provenance
jpegoptim_py-1.5.5.2.tar.gz 3.2 kB Without provenance Details

Built distributions (wheels)

Table of built distributions (wheels) for jpegoptim-py 1.5.5.2
File Interpreter ABI Platform
jpegoptim_py-1.5.5.2-py2.py3-none-win_amd64.whl Python 2, Python 3 none Windows x86-64 Details
jpegoptim_py-1.5.5.2-py2.py3-none-macosx_12_0_x86_64.whl Python 3, Python 2 none macOS 12.0+ x86-64 Details

Total release size: 504.8 kB

Release files / jpegoptim_py-1.5.5.2.tar.gz

Download URL jpegoptim_py-1.5.5.2.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
0cefc8465ad15afb6f0d2c811539812cf3134cdb2582c5f7a3bebf0a73dbbced
BLAKE2b-256 checksum
How to use checksums
880fd2f6169d8600d8b98c0006d5f790d27b1371121cec6e5eed6be0990c300e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.13.0rc2

Release files / jpegoptim_py-1.5.5.2-py2.py3-none-win_amd64.whl

Download URL jpegoptim_py-1.5.5.2-py2.py3-none-win_amd64.whl
Size 280.5 kB
Tags Python 2 Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
679f2c8a6af402878d38ee543b52e5b1afe152b344b36b2f82c12ee595d763f4
BLAKE2b-256 checksum
How to use checksums
1447c7f1cdd4f62183450edd1efb81bbe9de953ad6f7e43d6dc9d500c3ae0573
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.13.0rc2

Release files / jpegoptim_py-1.5.5.2-py2.py3-none-macosx_12_0_x86_64.whl

Download URL jpegoptim_py-1.5.5.2-py2.py3-none-macosx_12_0_x86_64.whl
Size 221.1 kB
Tags Python 2 Python 3 macOS 12.0+ x86-64
SHA-256 checksum
How to use checksums
3e6aa8ea2cbb65e959a421b6c7ccbc6bef4c44f614e956f1e7245f96ea629880
BLAKE2b-256 checksum
How to use checksums
ed25340f2e8cd1097f1ed9e99e29d888ad26df4a260f68b9b420c4aa9d09afd8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.13.0rc2

Security for jpegoptim-py 1.5.5.2

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.5.5.2 This release

3 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