|
Last change
on this file since 0b4a5e6 was d6e75be, checked in by Enrico Schwass <ennoausberlin@…>, 3 months ago |
|
initial but without working tests
|
-
Property mode
set to
100644
|
|
File size:
830 bytes
|
| Line | |
|---|
| 1 | # flexoentity
|
|---|
| 2 |
|
|---|
| 3 | **flexoentity** is the foundational Python library of the *Flex-O* ecosystem.
|
|---|
| 4 |
|
|---|
| 5 | It provides:
|
|---|
| 6 | - `FlexOID`: a deterministic, state-aware, and versioned identifier system
|
|---|
| 7 | - `FlexoEntity`: a base class for reproducible, lifecycle-tracked domain entities
|
|---|
| 8 |
|
|---|
| 9 | Together, these components ensure traceability, immutability, and auditability
|
|---|
| 10 | across the Flex-O-Grader, Flex-O-Vault, and Flex-O-Drill projects.
|
|---|
| 11 |
|
|---|
| 12 | ### Example
|
|---|
| 13 |
|
|---|
| 14 | ```python
|
|---|
| 15 | from flexoentity import FlexOID, FlexoEntity
|
|---|
| 16 |
|
|---|
| 17 | question = FlexoEntity(
|
|---|
| 18 | domain="AF",
|
|---|
| 19 | etype="Q",
|
|---|
| 20 | text="What is Ohm’s law?",
|
|---|
| 21 | state="A"
|
|---|
| 22 | )
|
|---|
| 23 | print(question.flexo_id)
|
|---|
| 24 |
|
|---|
| 25 | Features
|
|---|
| 26 | • BLAKE2s hashing (fast, stdlib, deterministic)
|
|---|
| 27 | • Canonical seed generation
|
|---|
| 28 | • Lifecycle state encoding (@001A)
|
|---|
| 29 | • UTC-based timestamps
|
|---|
| 30 | • Collision disambiguation
|
|---|
| 31 |
|
|---|
| 32 | Licensed under the MIT License.
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.