{"id":16466438,"url":"https://github.com/lukasturcani/xecs","last_synced_at":"2025-03-21T06:32:04.939Z","repository":{"id":193924925,"uuid":"625516026","full_name":"lukasturcani/xecs","owner":"lukasturcani","description":"A Python library (written in Rust!) for a performant entity component system (ECS).","archived":false,"fork":false,"pushed_at":"2023-10-30T16:24:56.000Z","size":353,"stargazers_count":3,"open_issues_count":14,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-01T03:42:11.306Z","etag":null,"topics":["agent-based-modeling","agent-based-simulation","ecs","entity-component-system","game-development","game-engine","gamedev","python","rust","simulation","simulations"],"latest_commit_sha":null,"homepage":"https://xecs.readthedocs.io","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lukasturcani.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-04-09T11:03:40.000Z","updated_at":"2023-12-28T19:51:44.000Z","dependencies_parsed_at":"2023-10-11T10:57:00.575Z","dependency_job_id":null,"html_url":"https://github.com/lukasturcani/xecs","commit_stats":null,"previous_names":["lukasturcani/xecs"],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukasturcani%2Fxecs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukasturcani%2Fxecs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukasturcani%2Fxecs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukasturcani%2Fxecs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lukasturcani","download_url":"https://codeload.github.com/lukasturcani/xecs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244117640,"owners_count":20400743,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["agent-based-modeling","agent-based-simulation","ecs","entity-component-system","game-development","game-engine","gamedev","python","rust","simulation","simulations"],"created_at":"2024-10-11T11:43:45.453Z","updated_at":"2025-03-21T06:32:04.630Z","avatar_url":"https://github.com/lukasturcani.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"xecs\n====\n\n:Documentation: https://xecs.readthedocs.io\n\n``xecs`` is a Python library (written in Rust!) for a performant\nentity component system (ECS). You can use it to write simulations, games\nor any other high-performance piece of software.\n\nIf you are familiar with `Bevy \u003chttps://bevyengine.org/\u003e`_ and\n`NumPy \u003chttps://numpy.org/\u003e`_ -- the API of ``xecs`` should be\nfamiliar to you.\n\nThe goals of ``xecs`` are as follows:\n\n* **Fast**: Operations are executed in parallel as much as possible\n  and the library is written in Rust to be cache friendly and performant.\n* **Simple**: Data is defined with a dataclass-like syntax and systems are regular\n  Python functions.\n* **Typed**: Types form an integral part of the API, making code clean but\n  also easily verified with type checkers.\n* **NumPy-friendly**: Our data types can be used seamlessly with NumPy.\n* **Python-friendly**: User code is regular Python code, allowing\n  full integration with the Python ecosystem. We avoid things like Numba\n  which cause pain during debugging and limit use of pure Python libraries.\n\n\nCode Preview\n------------\n\n.. code-block:: python\n\n  import xecs as xx\n\n  class Velocity(xx.Component):\n      value: xx.Vec2\n\n  def update_positions(query: xx.Query[tuple[xx.Transform2, Velocity]]) -\u003e None:\n      (transform, velocity) = query.result()\n      transform.translation += velocity.value\n\nInstallation\n------------\n\n.. code-block:: bash\n\n  pip install xecs\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flukasturcani%2Fxecs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flukasturcani%2Fxecs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flukasturcani%2Fxecs/lists"}