Dependency cascade — propagate tile updates and invalidations downstream
Project description
plato-tile-cascade
Dependency cascade — propagate tile updates and invalidations downstream.
Part of the PLATO framework — deterministic AI knowledge management through tile-based architecture.
Installation
pip install plato-tile-cascade
Usage
from plato_tile_cascade import TileCascade, CascadeAction
c = TileCascade(max_depth=10)
c.add_dependency("b", "a") # b depends on a
c.add_dependency("c", "b") # c depends on b
# Update a — propagates to b and c
events = c.update_tile("a")
print(len(events)) # 3 (a, b, c)
# Invalidate a — cascades downstream
events = c.invalidate_tile("a")
print([e.action for e in events]) # [INVALIDATE, INVALIDATE, INVALIDATE]
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_tile_cascade-0.1.0.tar.gz.
File metadata
- Download URL: plato_tile_cascade-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 |
7dcc90f8fe75c4dd88976e0a54c756ac5e5e939dc69f4e38a07f0bbd708a3c0f
|
|
| MD5 |
6b439bc13ceb8e35abcd84adf21b3c10
|
|
| BLAKE2b-256 |
518e4ce887b10826244bb8eb670094b2449140a50bd1abfa8e8b52be5f12092e
|
File details
Details for the file plato_tile_cascade-0.1.0-py3-none-any.whl.
File metadata
- Download URL: plato_tile_cascade-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.5 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 |
cb95e9908ce69a2aa3a1a1db1e5cc051b1ac27de88251a307c5429558f38fd6c
|
|
| MD5 |
72463c9c88af06103bc71fee690c1a15
|
|
| BLAKE2b-256 |
20b5013c8e96b6d6152f480d8b9449be5bf6d3069a73d69f8c9cabdc14381c99
|