Catalog PyPI
PACKAGE EXPLORERView in registry

agecheck

PyPI

Date-of-birth / age-threshold utility with timezone-correct date math.

agecompliancedate-of-birthdobtimezone
Versions collected1
Direct dependencies0From release 0.1.0
Last observed20 Oct, 21:22 UTC

README

Version 0.1.0 documentation

agecheck

Date-of-birth / age-threshold utility with timezone-correct date math. Answer whether someone meets a jurisdiction minimum age using the calendar date in that jurisdiction's timezone.

Install

pip install agecheck

Usage

from datetime import date
from agecheck import is_of_age, age_on

dob = date(2000, 6, 15)
assert is_of_age(dob, 18, on=date(2018, 6, 15), tz="UTC") is True
assert is_of_age(dob, 18, on=date(2018, 6, 14), tz="UTC") is False
assert age_on(dob, on=date(2026, 6, 15), tz="UTC") == 26

Roadmap

This is an early 0.1.0 release with active development planned:

  • Jurisdiction preset table (US states, EU defaults)
  • Optional document-level verification helpers
  • Stricter input parsing modes

Author

Coldbricks — coldbricks@gmail.com

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.1.022 Jul 20260

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
coldbricks/agecheck

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 21:22 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:e4e749065e73d71c4bc4bfb24014f7c6aaf71f2523f92d110d6c1f2c03186e92