KEG is a small, typed, archetype-based ECS framework designed for game developers using Python. It provides a clean architectural pattern for organizing game logic through entity-component-system design without the overhead of heavy game engines.
Key Features:
No external dependencies required
Ordinary Python dataclasses as components—no base class inheritance needed
Column-oriented query design for efficient hot loops
Strong type hints for queries (up to 16 component types)
Automatic deferred structural changes for stability during queries
Includes example with Kivy showing a bouncing-balls simulation
The framework is ideal for developers building Python games who want a lightweight, well-typed tool for managing game entities and logic without the complexity of larger engines.