Temporal validity — Valid, Grace, Expired lifecycle with refresh and decay
Project description
plato-temporal-validity
Temporal validity — Valid, Grace, Expired lifecycle with refresh and decay.
Part of the PLATO framework — deterministic AI knowledge management through tile-based architecture.
Installation
pip install plato-temporal-validity
Usage
from plato_temporal_validity import TemporalValidity
tv = TemporalValidity.fresh(ttl_days=7)
print(tv.state) # TemporalState.VALID
print(tv.decay_factor) # 1.0 (full score)
print(tv.is_valid()) # True
# After 8 days:
print(tv.state) # TemporalState.GRACE
print(tv.decay_factor) # 0.5-1.0 (degraded)
# Refresh
tv.refresh() # resets the window
print(tv.state) # TemporalState.VALID again
Lifecycle
VALID (1.0x score) → GRACE (0.5-1.0x decay) → EXPIRED (0.0x)
↑
refresh() ← max 3 extensions
Zero external dependencies. Compatible with Python 3.8+.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file plato_temporal_validity-0.1.0.tar.gz.
File metadata
- Download URL: plato_temporal_validity-0.1.0.tar.gz
- Upload date:
- Size: 3.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c9045d87ffc271a69072127b71ba6c584ff9f3152d3ed648584c77c319b27a0e
|
|
| MD5 |
70d5c5df4ab86ccddd62f0064b6a0772
|
|
| BLAKE2b-256 |
bdd93ef7dff0080c5e99c39860879ef28588603bd6efb02d8d144b16a7708506
|
File details
Details for the file plato_temporal_validity-0.1.0-py3-none-any.whl.
File metadata
- Download URL: plato_temporal_validity-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
619aaaa0b02957da6b00003c57497bda113f486aa387fb837da749228fa1529e
|
|
| MD5 |
0407c99b2dd5060d0d91cadcc479f526
|
|
| BLAKE2b-256 |
275a8875af956d76d11c2aca9ed0cc3fab4e07a2ab6a05f6f3a7aece82e39e11
|