Skip to main content

Installation with UV

uv tool install freshfiles

Sample use-case in bash

Checking the age

# `./update_files.sh` is invoked if any of these files are missing or more than 1 hour old
freshfiles check --max-age-seconds 3600 file1 file2 || ./update_files.sh



freshfiles check --max-age-seconds 3600 .authfile && echo "no auth needed" || { 
    echo "authenticating" # replace with actual authentication
    touch .authfile
}

Checking that target files are more recent that any of the source files used to generate the target

freshfiles compare -s src1 -s src2 -t dest || echo "update dest from src1 and src2" 

Using justfiles

Project link: https://just.systems/man/en/introduction.html

[private]
_maybe_authenticate:
  #!/usr/bin/env bash
  set -euo pipefail
  freshfiles check --max-age-seconds 3 .authfile && echo "auth still valid" || { 
        echo "authenticating" # replace with actual authentication
        touch .authfile
  }

run: _maybe_authenticate
  @echo "... do work with valid auth"

Metadata

Release files for freshfiles 0.2.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 freshfiles 0.2.0
File Size Uploaded
freshfiles-0.2.0.tar.gz 4.8 kB Details

Built distribution (wheel)

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

Total release size: 7.9 kB

Release files / freshfiles-0.2.0.tar.gz

Download URL freshfiles-0.2.0.tar.gz
Size 4.8 kB
Tags Source
SHA-256 checksum
How to use checksums
804c30fabd15dc4ddc928ebbdc3d8ba908c57fcb782f7e582c41d3106f2672cb
BLAKE2b-256 checksum
How to use checksums
9bd36063884188c81f03046168caa7cfc2ce1306f267e7189d766727dd79fe9b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.7.13

Release files / freshfiles-0.2.0-py3-none-any.whl

Download URL freshfiles-0.2.0-py3-none-any.whl
Size 3.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a5a47717cb1c5b26e10795037cad05e6b3561f6b5d82cbadfb9a322ec7784b8d
BLAKE2b-256 checksum
How to use checksums
e7cddd1c9ba14b4eef76093d4f79962d5f9bc851c572ba79d7dca31b3fdea3c3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.7.13

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.0

2 release 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