archetype-smol
archetype-smol is a deliberately small, synchronous, in-memory DataFrame ECS
for learning the core Archetype model. It is a separate engine, not a
compatibility layer for archetype-ecs.
uv add archetype-smol
from daft import col
from archetype.smol import Component, Processor, World
class Position(Component):
x: float = 0.0
class Move(Processor):
components = (Position,)
def process(self, df, *, tick):
return df.with_column("position__x", col("position__x") + 1)
world = World(processors=[Move()])
entity_id = world.spawn(Position(x=2))
world.step()
assert world.query(Position).to_pylist() == [
{"entity_id": entity_id, "tick": 1, "is_active": True, "position__x": 3.0}
]
Smol keeps only the teaching loop: typed Components, priority-ordered DataFrame Processors, immediate in-memory entity mutation, atomic steps, and queryable snapshots. It intentionally has no storage providers, commands, Activities, hooks, runtime host, API, CLI, or world-library extension system.
Component fields must resolve to None, bool, int, float, str,
bytes, or nested lists of those scalar values. Smol rejects mappings,
tuples, enums, nested models, and other values whose Python identity is erased
by DataFrame materialization. Encode structured teaching state as a JSON string
in a _json field; use archetype-ecs when typed structured storage is part of
the exercise.
Metadata
Release files for archetype-smol 0.6.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| archetype_smol-0.6.3.tar.gz | 17.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| archetype_smol-0.6.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 31.1 kB
Release files / archetype_smol-0.6.3.tar.gz
| Download URL | archetype_smol-0.6.3.tar.gz |
|---|---|
| Size | 17.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
586ed4df907ca52a1b17bc8774fde18a17b02336bd73ce7d3b50a7c631c45f2b
|
|
BLAKE2b-256 checksum How to use checksums |
47279b5803de2483e3fd9adaa5d474721acc0f9a68f1d2a7e71b007972543d54
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
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 Aug 22, 2026.
Transparency logRelease files / archetype_smol-0.6.3-py3-none-any.whl
| Download URL | archetype_smol-0.6.3-py3-none-any.whl |
|---|---|
| Size | 13.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f9b63cb63b0bb440873174ab28635e2bf158ac5272d01db5ad28e254fafe8138
|
|
BLAKE2b-256 checksum How to use checksums |
8c38494db68cc294c36ac7c7c8b797dd2bf8285dc2633f15819f697722e31d90
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
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 Aug 22, 2026.
Transparency log