No project description provided
Project description
- Documentation:
xecs is a Python library (written in Rust!) for a performant entity component system (ECS). You can use it to write simulations, games or any other high-performance piece of software.
If you are familiar with Bevy and NumPy – the API of xecs should be familiar to you.
The goals of xecs are as follows:
Fast: Operations are executed in parallel as much as possible and the library is written in Rust to be cache friendly and performant.
Simple: Data is defined with a dataclass-like syntax and systems are regular Python functions.
Typed: Types form an integral part of the API, making code clean but also easily verified with type checkers.
NumPy-friendly: Our data types can be used seamlessly with NumPy.
Python-friendly: User code is regular Python code, allowing full integration with the Python ecosystem. We avoid things like Numba which cause pain during debugging and limit use of pure Python libraries.
Code Preview
import xecs as xx
class Velocity(xx.Component):
value: xx.Vec2
def update_positions(query: xx.Query[tuple[xx.Transform2, Velocity]]) -> None:
(transform, velocity) = query.result()
transform.translation += velocity.value
Installation
pip install xecs
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Hashes for xecs-0.2.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e7d3437b2860eb722f2f9aa39de451672b2dd99392fa8d885e0def2b57f51b7d |
|
MD5 | b48227e99c03995ae8a81ea0aeaa55bf |
|
BLAKE2b-256 | e33aa26e46f34be630558faacdb9224e783d4320d9ff71c7cf4a2464771536a9 |
Hashes for xecs-0.2.0-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1d38b07edf977810e938c4fa5fec978aed7253a3ff65ef16f1161f43eccf6ac6 |
|
MD5 | bc6aee4ba130c3c2f705903f8cda7223 |
|
BLAKE2b-256 | 1342ee00bc4e706c831d34be4f31936ee13422a379292f36e35ab60583f7d3fd |
Hashes for xecs-0.2.0-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 87784b01021b3cce88a192c0f80bf13e393ce6ae387748b5f9fdd450d87ed800 |
|
MD5 | 8bcf587cb53f7f5dc17900c871d8b641 |
|
BLAKE2b-256 | c86b2b54f482e460eef8c74f73a7a083d5340839fa87877486b767e212a4cfc6 |
Hashes for xecs-0.2.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cfcc4ef52bf2b0abea43cf5509b4a5eccef08bc844eafa0852a62eafa8519848 |
|
MD5 | 7030305da8d7fe922e3af41ce68ad043 |
|
BLAKE2b-256 | 07718aebfd8e2ed6adecf578ec23a95f75fad3806594f03ad52da64bd6a8739c |
Hashes for xecs-0.2.0-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ac4055692e15b85b2acdb8701bd9861534bb4064dc1408dbbf0ef5060b9a4b9 |
|
MD5 | cb98131f6a9f95c4592b46433883d8d3 |
|
BLAKE2b-256 | acb1bf4dc20a71f5ef35e0d532591a10dd92fb225378d500d64bea92be91a982 |
Hashes for xecs-0.2.0-cp311-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1f62b6e14f0d1f51078c441c989327466cae04294d357bab7b6359e06585e825 |
|
MD5 | e3704f20f7be680d47a282fbfbd8343f |
|
BLAKE2b-256 | 7a5905262404b21df48a753a8c266b50330eb06473fe856209e97576a45fd84c |
Hashes for xecs-0.2.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e6611b5afbd679b16b29db6e90f10cf44efd279b7412d3ab326f9d98c059b7e |
|
MD5 | 3037ea727ff5f404f9509323b82c8eec |
|
BLAKE2b-256 | 2c3116ebc5dbaf902c8cfbe30d6cae4fef0bb2cdcfc024f6091d904a05191f60 |
Hashes for xecs-0.2.0-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 881598a43ff1b720dd57788b50a37e812b50709bb47da44e64fad6a7b1053b5c |
|
MD5 | 07d6477a6aa0b266d45692cee6c470c3 |
|
BLAKE2b-256 | deec80f2b5149e058781b8d38225f347607ef76c44ffc37c1d2d6729b01f7eae |
Hashes for xecs-0.2.0-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 93ad34b0a787941be24369c1d6b609d7a95edc666223a08756e0cac1f73566a4 |
|
MD5 | a27767b515b8e0e70acdad82bfdbc714 |
|
BLAKE2b-256 | 28341d7a423ad8f8d69ae0d4af9840725d98040e1389aea62c6ed22cb99f4327 |
Hashes for xecs-0.2.0-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ce5349d7c4e8426eb61ab0774ef0ae2d1fe87bdf8a8e6a9c102a1b4eda424ec |
|
MD5 | 483d5df0345d425d277b02c4dac9b9b7 |
|
BLAKE2b-256 | b860c4b72ea7220e02d162d4655dbc345bb823391bfa12ce73ef3cbcac5ec705 |
Hashes for xecs-0.2.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5210a56583a8c2bd38a6f5868f8be340b8185c229ff554e14ba22c399927d0d3 |
|
MD5 | 3ad226d1441e3c28d568ec27a2f1de72 |
|
BLAKE2b-256 | 565da58ac57b2e692b2191dd97a3c280925ce0c6406393a1c202ebf80c6e328e |
Hashes for xecs-0.2.0-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e8486a42e340795e645d5f1132c39a21e1bb70100b68e2fc4c7433d2d94aca8a |
|
MD5 | 4c1be9cc086a72a635dafe730af82b7e |
|
BLAKE2b-256 | 14dc43d16ced0bc4b122906625bd5d7caadf044c9371319d0f95fb82633752e7 |
Hashes for xecs-0.2.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 970d8fae7a578b27155ed5bccda20acae7dbd1ef70f98dad19df8162039d54ed |
|
MD5 | 638980c3acb485bb082916629499feb8 |
|
BLAKE2b-256 | bf61fc3634646667823c1a8056e0cb1b30213ae2eac84dc9ad817046268a6b21 |
Hashes for xecs-0.2.0-cp311-cp311-macosx_10_7_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 842bb09b02d268bb89a7c88f1d59677ff5dbd4ef1ad9360327a3be9f53cfcacf |
|
MD5 | f6fc541805c5a8d484740a54e04e1a2b |
|
BLAKE2b-256 | 046a97db7f5706c48cef792ded4e2e8d5f090a2929362d58ea86d13e8d679acf |