punyecs documentation¶

punyecs is a tiny Entity Component System (ECS) inspired by tiny-ecs for Python. punyecs operates directly on class attributes as opposed to creating components along with querying mechanisms for fine grain control over which objects are operated on by systems similar to how tiny-ecs works on Lua tables.

Contents¶

  • Usage
    • What is it? (And an Example)
    • Fine Grained Control: Querying
    • An Alternative: Exclude Based on a Value
    • An Extension: Exclude Based on Attribute Predicates
    • Excluding Based on Attributes
  • API
    • punyecs Package
      • Functions
        • query
          • query()
        • requirements
          • requirements()
      • Classes
        • Query
          • Query
            • Query.and_attr
            • Query.exclude_attr
            • Query.exclude_attr_funcs
            • Query.exclude_attr_vals
            • Query.exclude_objs
        • World
          • World
            • World.groups
            • World.add()
            • World.entity_satisfies_query()
            • World.push_group()
            • World.update()

punyecs

Navigation

  • Usage
  • API

Related Topics

  • Documentation overview
    • Next: Usage
©2026, Christopher Sumnicht. | Powered by Sphinx 9.1.0 & Alabaster 1.0.0 | Page source