benmoran56 / esper

An ECS (Entity Component System) for Python
MIT License
537 stars 67 forks source link

I know ECS is largely used for games, but can this specific library also work for database backed CRUD web apps? #52

Closed simkimsia closed 3 years ago

benmoran56 commented 3 years ago

Hi,

I've never heard of anyone using it in that way, but you certainly could. Most of the queries are based around getting all entities (ids) that have specific components, but there are also queries to get components via the entity id.

The only thing it doesn't have included is any data persistence. Most games don't need to save the entire world state to disk, so it's left up to users to pick out and save whatever they need. If you do need persistence, then you would need to handle that yourself.

benmoran56 commented 3 years ago

Going to close this for now, but feel free to open a new ticket if you have any follow up questions.

YAMLcase commented 11 months ago

@simkimsia I too am looking to tinker with ECS pattern for non-game applications. How has your experimentation gone?