Skip to main content

imgproxykit

A typed Python toolkit for building imgproxy URLs.

Tests Result PyPI Version PyPI Downloads Supported Python Version License

Features

  • Fully typed and checked with mypy, pyright, ty and pyrefly in strict modes
  • Expressive transforms: combine option objects with concise scalar arguments
  • Immutable, reusable transforms for consistent image settings across your app
  • Support for named presets configured on your imgproxy server

Installation

Requires Python 3.12+ and a running imgproxy server.

pip install imgproxykit

Example

Define a WebP thumbnail once and reuse it across a product catalog:

from imgproxykit import Client, Transform
from imgproxykit.options import Gravity, Resize

client = Client('https://imgproxy.your-app.com')  # Your imgproxy server.

thumbnail = Transform(
    Resize(width=300, height=300, mode='fill'),  # Pass option objects.
    Gravity(position='sm'),  # Let imgproxy choose the crop's focus.
    quality=80,  # Or scalar, equivalent to Quality(80).
    format='webp',
)
sources = [
    'https://example.com/products/backpack.jpg',
    'https://example.com/products/sneakers.jpg',
]
thumbnail_urls = [client.url(source, transform=thumbnail) for source in sources]

Use these URLs in your images' src attributes; imgproxy handles processing.

Sign URLs and reuse presets configured on your imgproxy server:

from imgproxykit import Client, Transform
from imgproxykit.options import Preset

client = Client(
    'https://imgproxy.your-app.com',
    key='736563726574',  # Example hex credentials; use your server's values.
    salt='73616c74',
)

thumbnail = Transform(
    Preset(names=('product-card',)),
    format='webp',
)
thumbnail_url = client.url(
    'https://example.com/products/backpack.jpg',
    transform=product_card,
)

Contributing

See the contributing guide for development setup and checks. Bug reports and feature requests are welcome on the issue tracker.

License

MIT

Credits

Generated with wemake-python-package (template version).

Metadata

Release files for imgproxykit 0.2.1

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

Source distribution (sdist)

Source distribution for imgproxykit 0.2.1
File Size Uploaded Provenance
imgproxykit-0.2.1.tar.gz 22.4 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for imgproxykit 0.2.1
File Interpreter ABI Platform
imgproxykit-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 65.8 kB

Release files / imgproxykit-0.2.1.tar.gz

Download URL imgproxykit-0.2.1.tar.gz
Size 22.4 kB
Tags Source
SHA-256 checksum
How to use checksums
dc19e8bd76d768d79b39934da21932fa9aa6f45c94a70907032b07fc18c85fa5
BLAKE2b-256 checksum
How to use checksums
33544bd07e573b0f9f6a68b05880e49ca4ed5823a0ffd7dd00e69d325d88efa1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 20, 2026.

Transparency log

Release files / imgproxykit-0.2.1-py3-none-any.whl

Download URL imgproxykit-0.2.1-py3-none-any.whl
Size 43.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
93bf6ad63066244f60a900320a7fb5d40cafa031b001b612166006e78aa346b9
BLAKE2b-256 checksum
How to use checksums
5196969e8e5621b5f2ffdc8fe817ff2c14603d61dd8af4c0f5687f6c15b0fa24
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 20, 2026.

Transparency log

Security for imgproxykit 0.2.1

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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for imgproxykit-0.2.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 20, 2026.

Transparency log

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.

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