Skip to main content

quartermaster-gc

Tile garbage collection with retention policies. Like a ship's quartermaster managing supplies: keep what matters, discard what's expired, sample what's abundant.

Policies

  • KEEP_ALL — never delete anything
  • KEEP_RECENT — keep tiles newer than max_age_seconds
  • KEEP_IMPORTANT — keep tiles with weight above min_weight
  • KEEP_SAMPLED — keep 1 in every N tiles

Stack policies for compound filtering (all must agree to keep).

Usage

from quartermaster_gc import TileGC, RetentionPolicy, TileEntry
import time

gc = TileGC()
gc.add_tile(TileEntry(id="t1", room="bridge", timestamp=time.time(), weight=0.9))
gc.add_tile(TileEntry(id="t2", room="engine", timestamp=time.time() - 9999, weight=0.1))
gc.add_policy(RetentionPolicy.KEEP_RECENT, max_age_seconds=3600)
gc.add_policy(RetentionPolicy.KEEP_IMPORTANT, min_weight=0.5)

report = gc.collect()
# t2 collected (old + low weight), t1 kept (recent + important)

Zero deps. pip install quartermaster-gc

Metadata

Release files for quartermaster-gc 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 quartermaster-gc 0.1.0
File Size Uploaded Provenance Actions
quartermaster_gc-0.1.0.tar.gz 3.7 kB Without provenance Details for quartermaster_gc-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for quartermaster-gc 0.1.0
File Interpreter ABI Platform Actions
quartermaster_gc-0.1.0-py3-none-any.whl Python 3 none any Details for quartermaster_gc-0.1.0-py3-none-any.whl

Total release size: 7.6 kB

Release files / quartermaster_gc-0.1.0.tar.gz

Download URL quartermaster_gc-0.1.0.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
a511158938eb8493e7d8b4f75ed1012f002e50c8b871594b35abd8df6e41c5e0
BLAKE2b-256 checksum
How to use checksums
5caddbbc84915615c5aea3c6f43152124f464fd22faedbf04d7083472fa7ac4a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.12

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

Download URL quartermaster_gc-0.1.0-py3-none-any.whl
Size 3.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d38d8913078bd678ef53de48825481cf699af7546aa7c96b9e01465819a117ef
BLAKE2b-256 checksum
How to use checksums
9a2bc66927dc4e86e3b4d5a3350befd2111f970463f470275b529a0d2665490c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.12

Security for quartermaster-gc 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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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