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.
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 archetype_smol-0.6.3.tar.gz.
File metadata
- Download URL: archetype_smol-0.6.3.tar.gz
- Upload date:
- Size: 17.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
586ed4df907ca52a1b17bc8774fde18a17b02336bd73ce7d3b50a7c631c45f2b
|
|
| MD5 |
cc9a5efea72e4fa37b142a49b0e1e63d
|
|
| BLAKE2b-256 |
47279b5803de2483e3fd9adaa5d474721acc0f9a68f1d2a7e71b007972543d54
|
Provenance
The following attestation bundles were made for archetype_smol-0.6.3.tar.gz:
Publisher:
publish-archetype-smol.yml on VangelisTech/archetype
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
archetype_smol-0.6.3.tar.gz -
Subject digest:
586ed4df907ca52a1b17bc8774fde18a17b02336bd73ce7d3b50a7c631c45f2b - Sigstore transparency entry: 2565761862
- Sigstore integration time:
-
Permalink:
VangelisTech/archetype@97b570ebdd6dd64bc8958a76a3dab5fa2f4f6b00 -
Branch / Tag:
refs/tags/v0.6.3 - Owner: https://github.com/VangelisTech
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-archetype-smol.yml@97b570ebdd6dd64bc8958a76a3dab5fa2f4f6b00 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file archetype_smol-0.6.3-py3-none-any.whl.
File metadata
- Download URL: archetype_smol-0.6.3-py3-none-any.whl
- Upload date:
- Size: 13.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f9b63cb63b0bb440873174ab28635e2bf158ac5272d01db5ad28e254fafe8138
|
|
| MD5 |
4fca6797d0dca21ac93944625b9c9b5c
|
|
| BLAKE2b-256 |
8c38494db68cc294c36ac7c7c8b797dd2bf8285dc2633f15819f697722e31d90
|
Provenance
The following attestation bundles were made for archetype_smol-0.6.3-py3-none-any.whl:
Publisher:
publish-archetype-smol.yml on VangelisTech/archetype
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
archetype_smol-0.6.3-py3-none-any.whl -
Subject digest:
f9b63cb63b0bb440873174ab28635e2bf158ac5272d01db5ad28e254fafe8138 - Sigstore transparency entry: 2565763291
- Sigstore integration time:
-
Permalink:
VangelisTech/archetype@97b570ebdd6dd64bc8958a76a3dab5fa2f4f6b00 -
Branch / Tag:
refs/tags/v0.6.3 - Owner: https://github.com/VangelisTech
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-archetype-smol.yml@97b570ebdd6dd64bc8958a76a3dab5fa2f4f6b00 -
Trigger Event:
workflow_dispatch
-
Statement type: