Skip to main content

pix

Batch AVIF shrink and image-host sync CLI.

pix 把本地图片目录增量压缩为 AVIF,再通过 rclone bisync 备份原图、发布压缩图到图床。只处理显式传入的路径和远端。

pix shrink  -s ./photos -d ./out -w 1920 -q 85
pix backup  -s ./photos -d onedrive:photos --resync
pix publish -s ./out -d r2:images --base-url https://img.example.com --urls
pix doctor
pix config init

backup / publish 是双向镜像,不是单向备份:删除会双向传播。默认 --max-delete 10(删除百分比,即 10%),超过该比例时 rclone 会拒绝;首次运行或修改排除项后必须显式 --resync,先跑 --dry-run 更安全。

Status: implementation complete; real R2 and Windows smoke tests pending (see roadmap).

Docs

Quick start

uv sync
uv run pytest

Metadata

Release files for pix-cli 0.1.0

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

Source distribution (sdist)

Source distribution for pix-cli 0.1.0
File Size Uploaded Provenance Actions
pix_cli-0.1.0.tar.gz 44.8 kB With provenance Details for pix_cli-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pix-cli 0.1.0
File Interpreter ABI Platform Actions
pix_cli-0.1.0-py3-none-any.whl Python 3 none any Details for pix_cli-0.1.0-py3-none-any.whl

Total release size: 58.7 kB

Release files / pix_cli-0.1.0.tar.gz

Download URL pix_cli-0.1.0.tar.gz
Size 44.8 kB
Tags Source
SHA-256 checksum
How to use checksums
68b76eadffcc803a14f9e36180f898fe1ff292b4f83f3e628968c7bdbbf0fa68
BLAKE2b-256 checksum
How to use checksums
a2f3d3d17e79bcb01e12617b56733017c6086eb3316ffb950ee66bc958ac62df
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

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 Nov 4, 2026.

Transparency log

Release files / pix_cli-0.1.0-py3-none-any.whl

Download URL pix_cli-0.1.0-py3-none-any.whl
Size 13.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fe78151b48869d6ac29ac15b96e095524f59f5718a5189994506b28217ec53a1
BLAKE2b-256 checksum
How to use checksums
ad60f5a276d88510658df4071cc24ab32949c3956298075ed8ee96873737759c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

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 Nov 4, 2026.

Transparency log

Security for pix-cli 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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for pix_cli-0.1.0.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 Nov 4, 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