FlakePL
FlakePL is a small Python library for modeling and exploring finite multi-agent systems with process semantics, epistemic logic, temporal properties, dynamic epistemic updates, and executable protocol transitions.
The current goal is deliberately modest: provide a clean, testable MVP library. A dedicated FlakePL programming language is a later stage and is not part of the current release.
MVP capabilities
- process algebra:
Nil,Prefix,Choice,Parallel - actions:
Tau,Send,Receive - executable system configurations and immutable agent state
- finite state-space exploration
- observations and epistemic relations
K,E,D,Cknowledge operators- boolean formulas
- temporal operators
X,F,G,U - public announcements and action-model product updates
- process-aware epistemic execution
- counterexample traces for temporal verification
Installation
python -m pip install flakepl
The public API is:
from flakepl import ...
The old flake namespace remains available temporarily for compatibility with the prototype.
Quick example
from flakepl import Agent, Configuration, GlobalState, explore, recv, send, stop
alice = Agent.create(
"alice",
send("channel", "secret") >> stop(),
)
bob = Agent.create(
"bob",
recv("channel", "value") >> stop(),
)
initial = Configuration(
state=GlobalState(),
agents=(alice, bob),
)
space = explore(initial)
print("states:", len(space.states))
print("transitions:", len(space.transitions))
Epistemic model
from flakepl import Atom, EpistemicModel, K, observe_local_state
model = EpistemicModel.from_state_space(
space,
observations={
"alice": observe_local_state(),
"bob": observe_local_state(),
},
)
# Evaluate a registered proposition with model.check(...).
See examples/ for complete runnable programs, including a two-phase-commit verification example.
Development
Run the full test suite:
python -m pytest -q
Compile all sources:
python -m compileall -q src tests
Project layout
src/flake/ implementation and legacy compatibility API
src/flakepl/ public FlakePL API
examples/ runnable MVP examples
tests/ unit, semantic, integration, and example tests
Status
FlakePL is alpha software. The MVP API is intentionally small and may evolve before 1.0.
License
The repository license will be added before the first public release.
Metadata
Release files for flakepl 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| flakepl-0.3.1.tar.gz | 40.0 kB | With provenance | Details for flakepl-0.3.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| flakepl-0.3.1-py3-none-any.whl | Python 3 | none | any | Details for flakepl-0.3.1-py3-none-any.whl |
Total release size: 77.2 kB
Release files / flakepl-0.3.1.tar.gz
| Download URL | flakepl-0.3.1.tar.gz |
|---|---|
| Size | 40.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
33afbf38494354d495eedadc01428aae26533d7e0004084b103a775d8c9152ca
|
|
BLAKE2b-256 checksum How to use checksums |
64c53d3e9eaf7539cce4fe9db4a87f7cd8ca399fff2e7ccedf5ef68139c2967b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 18, 2026.
Transparency logRelease files / flakepl-0.3.1-py3-none-any.whl
| Download URL | flakepl-0.3.1-py3-none-any.whl |
|---|---|
| Size | 37.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
132be7630dc187e4d31fe81fb78b075a55a9ce78140ce4a4dbb947f107150ceb
|
|
BLAKE2b-256 checksum How to use checksums |
506931cdb4413a6b2c46953c2178e5e6815a24203e080dfdb44a41e3ffb63347
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 18, 2026.
Transparency logSecurity for flakepl 0.3.1
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for flakepl-0.3.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 18, 2026.
Transparency logA 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.