cellflow
Cell+Flow protocol as a pure Python library. Zero MCP dependency — no
server to start, no MCP host required. cellflow-mcp is the MCP
transport skin on top of this library (SPEC §10: transport-agnostic —
protocol capability = library; MCP is just one skin).
pip install cellflow
from cellflow import CellFlow
cf = CellFlow(storage_path="./my_data") # local SQLite, no server
cell = cf.cell_register(schema_type="agent.v1", genome={"name": "my agent"})
cf.flow_capture(topic="test", content="hello")
print(cf.calculate_if(cell["cell_id"])) # IF: earned trust, 0-100
Layout (mirrors the protocol)
| Module | What lives there |
|---|---|
cellflow.core |
cell_register / cell_get / export / import / lifecycle |
cellflow.flow |
flow_capture / flow_recall / flow_list / flow_delete |
cellflow.history |
hash-chain verify_history |
cellflow.trust |
calculate_if / karma (three hard gates + four weights) |
cellflow.discover |
discover_agents (exploration quota) / dht_announce |
cellflow.divide |
divide_create / divide_parallel / backflow_experience |
cellflow.comms |
send_flow / pull_inbox (endpoint-direct + DHT relay) |
cellflow.identity |
Ed25519 identity_create / identity_verify |
cellflow.task_market |
publish_task / accept_task / deliver_task |
cellflow.audit .penalty .witness |
anti-cheat machinery |
cellflow.shadow |
shadow Cells (passive infection + claim) |
cellflow.email_bridge .protocol_bridge |
email / A2A / MCP / HTTP → Flow |
cellflow.storage |
SQLite backend (injectable — see below) |
Deeper internals stay importable at cellflow.modules.* (e.g.
cellflow.modules.karma) — same modules, one physical copy.
Injectable storage (P2)
Default is local SQLite. Pass any object implementing the Storage
duck-type (read / write / append / delete / search / upsert):
cf = CellFlow(storage=MyCustomStorage())
Or migrate existing SPEC-shaped data losslessly:
cf.cell_import({"cells": [...], "flows": [...]}) # SPEC §1/§2 field layout
Relationship to cellflow-mcp
cellflow-mcp depends on this package and only adds the 56 @mcp.tool()
pass-throughs, the CLI, and the HTTP facade. All protocol behaviour —
IF/Karma math, hash chains, discovery ranking, bridges — lives here and is
identical through every transport.
MIT License · Python 3.10+ · SPEC is the authoritative source.
Metadata
Release files for cellflow 0.8.0
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 |
|---|---|---|---|---|
| cellflow-0.8.0.tar.gz | 122.9 kB | Without provenance | Details for cellflow-0.8.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cellflow-0.8.0-py3-none-any.whl | Python 3 | none | any | Details for cellflow-0.8.0-py3-none-any.whl |
Total release size: 272.3 kB
Release files / cellflow-0.8.0.tar.gz
| Download URL | cellflow-0.8.0.tar.gz |
|---|---|
| Size | 122.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2feb0b5e92e0ffecde3447e27a224ae93195877f4df716bce34eb06e9348711a
|
|
BLAKE2b-256 checksum How to use checksums |
0104191bd4b6d8dbc8b11dc13588fffaa60802eafefb909cbfd770bb54594016
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|
Release files / cellflow-0.8.0-py3-none-any.whl
| Download URL | cellflow-0.8.0-py3-none-any.whl |
|---|---|
| Size | 149.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b0a22d762a897e43ca11765e5a2e69239836068f44fe5bb20172d9577027be4a
|
|
BLAKE2b-256 checksum How to use checksums |
5036be30c909eb41c4091019648238947c9202d0b3fe2e81b20500bb02e36f98
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.9.6
|
Security for cellflow 0.8.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.