Skip to main content

Stampla

CI PyPI

Deterministic, verifiable naming for photo and video archives.

stampla stamps every photo and video with an identity derived purely from the file itself — the capture time plus a slice of the content hash:

20260703_150727_9b677b64.nef
└──────┬──────┘ └──┬───┘
  capture time    hash

That name is a stable, unique identifier with properties a filename usually doesn't have:

  • Everything on one timeline. Sorting by name is sorting by capture time, across every camera, phone and scanner — no rolling counters, no IMG_0001 (2).jpg.
  • Verifiable. Because the name is reproducible from the file, the whole archive can be re-checked at any time: corruption is told apart from legitimate edits, and duplicates identify themselves.
  • Groups stay whole. A RAW master, its XMP/PP3 sidecars and its editor derivatives share one name and are renamed together, atomically.

Install

$ pip install stampla

Python 3.11+ and ExifTool on PATH; no other dependencies.

Usage

command what it does
import copy a memory card into the archive, named on arrival; exit 0 certifies the card is fully accounted for — safe to format
verify recompute every name and report what disagrees, classified by meaning (corruption vs. expected drift vs. date mismatch)
rename bring stale names in line, atomically per file group
inject let a DAM (Lightroom Classic) rename the masters it manages, via a metadata token
organize report-only triage for messy trees: proposals, duplicates, undatable files
history / undo / resume every apply is journaled: list runs, revert them, finish interrupted ones

Safety first: every command is a dry run unless --apply. Applies are validated as a whole before anything is touched, journaled before the first change, applied atomically per group, resumable after interruption and revertable — and a file whose capture time cannot be resolved is reported, never renamed. Nothing is ever overwritten.

See the command guide for details, output formats and the exit-code contract, and DESIGN.md for why it works this way.

Configuration

An archive is described by a TOML file; every setting has a sensible default. See six complete example setups — from a single folder of photos to a Lightroom workflow and a naming-scheme migration — and the annotated example config for every option.

License

MIT

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

stampla-0.5.0.tar.gz (152.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

stampla-0.5.0-py3-none-any.whl (75.3 kB view details)

Uploaded Python 3

File details

Details for the file stampla-0.5.0.tar.gz.

File metadata

  • Download URL: stampla-0.5.0.tar.gz
  • Upload date:
  • Size: 152.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for stampla-0.5.0.tar.gz
Algorithm Hash digest
SHA256 ade4add6c249670ca5b5fb52f7bbcf1d53b9612ee4167ed30e28181f745d1f7a
MD5 4edafe41ac5dce7c5e8ac1ebdb18c1dc
BLAKE2b-256 6dbd00d51f599f32cf28c59d5d9db24b00b49a37b4fb529af68cb6b062fedd9b

See more details on using hashes here.

Provenance

The following attestation bundles were made for stampla-0.5.0.tar.gz:

Publisher: release.yml on stampla/stampla

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file stampla-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: stampla-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 75.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for stampla-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8f97670bb98ca5d55fc8111808904c4c95808a35098350e348b4f3806a68e605
MD5 0bc4a40a58ea26a4640ffd6df07fabec
BLAKE2b-256 562772ba1b974235636eb310676c706f5c80a115e8e227ffb78d7c6d332f7dca

See more details on using hashes here.

Provenance

The following attestation bundles were made for stampla-0.5.0-py3-none-any.whl:

Publisher: release.yml on stampla/stampla

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.5.0 This release

2 files

0.4.0

2 files

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