Skip to main content

tripsort

Offline Python library + CLI that merges trip photo zips, removes duplicates, and sorts photos by person, shot type, and category.

Status: pre-alpha. 0.0.1 is a placeholder release: the package installs and tripsort --version works, but nothing else does yet. The first useful pre-release will be 0.1.0a1 (ingest, index, and dedupe).

What it will do

After a group trip, everyone has a zip of photos from their own phone. tripsort takes all of them and:

  • merges them into one pool and removes exact duplicates and recompressed copies (such as WhatsApp copies), keeping the best original;
  • groups faces by person across every zip, so each friend gets a folder with every photo they appear in;
  • splits shots into solo, group, and selfie, ignoring strangers in the background;
  • sorts photos into categories such as scenery, animals, food, and documents, defined as editable text prompts;
  • culls bursts down to the best shot and flags blurry, dark, or eyes-closed photos without deleting anything;
  • exports plain folders plus a manifest.json, and never modifies the input zips.

Everything runs locally on an ordinary laptop CPU: no account, no cloud uploads, no telemetry.

Planned usage

Not implemented yet; this is the target interface:

uvx tripsort run mine.zip sam.zip alex.zip -o sorted/ --refs refs/

sorted/
├── all/            every kept file, once
├── people/         one folder per person
├── shots/          solo/, group/, selfie/
├── categories/     scenery/, animals/, food/, documents/
├── rejects/        blurry, dark, eyes closed: review before deleting
└── manifest.json
from tripsort import Project

proj = Project.open("sorted/")
proj.ingest(["mine.zip", "sam.zip", "alex.zip"])
proj.analyze()
result = proj.export()

Install

Requires Python 3.11 or newer.

uvx tripsort --version

or pip install tripsort.

Development

The project uses uv for everything. Settled design decisions are logged in docs/decisions.md.

uv sync                              # create .venv with the dev tools
uv run pytest --cov                  # tests with coverage
uv run ruff check .                  # lint
uv run ruff format --check .         # formatting
uv run mypy                          # strict type check of src/
uv run pre-commit install            # optional: run the checks on every commit

CI runs the tests, linters, and type checks on Windows, macOS, and Linux with Python 3.11 to 3.13.

Releasing

  1. Set the new version in pyproject.toml (uv version <new-version>), merge to main.
  2. Tag the merge commit on main with v<version> and push the tag.
  3. .github/workflows/release.yml builds the package, publishes it to TestPyPI, installs it from there on every OS (only tripsort from TestPyPI, its dependencies from PyPI), then publishes to PyPI. Both uploads use Trusted Publishing, so the repo stores no tokens.
  4. To repeat the TestPyPI install check locally: uv run tools/verify_testpypi.py.

License

MIT. See LICENSE.

Metadata

Release files for tripsort 0.0.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 tripsort 0.0.1
File Size Uploaded Provenance Actions
tripsort-0.0.1.tar.gz 5.0 kB With provenance Details for tripsort-0.0.1.tar.gz

Built distribution (wheel)

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

Total release size: 10.6 kB

Release files / tripsort-0.0.1.tar.gz

Download URL tripsort-0.0.1.tar.gz
Size 5.0 kB
Tags Source
SHA-256 checksum
How to use checksums
5baca9b57b349e5f7bc1046349e61ede865364d839985104b852c3a1babbe667
BLAKE2b-256 checksum
How to use checksums
dece3c80ca6b3ecbb36914887682cd07ac9a979495dc886e7a72adb3248863ad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 17, 2026.

Transparency log

Release files / tripsort-0.0.1-py3-none-any.whl

Download URL tripsort-0.0.1-py3-none-any.whl
Size 5.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
369084e9ba389c8f702810f1ef02e9a7a99bb1a0720eeddc7a1627a6431afb15
BLAKE2b-256 checksum
How to use checksums
2d6b39630d4bd156228d7c8ffb7878f42890edf0ee6392d0817d1956435e7f2f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 17, 2026.

Transparency log

Security for tripsort 0.0.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

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

Select from 2 files

Attestation for tripsort-0.0.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 Nov 17, 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