Skip to main content

Introduction

ECS stands for Entity Component System, and it is a programming paradigm that differs from the well known OO.

During my research I stumbled over this article and after reading part 2 and 3, I decided to implement an ECS myself, well aware that esper is a solid and long existing implementation, but I wanted to see how to implement it myself.

I’m not trying to sell you an ECS by explaining the problems of multiple inheritance in game programming. There are articles out there that do this in much detail. If you’re here, you’re already interested in the concept, so the tutorial might be a good starting point. It will create a small demo with bouncing sprites using pygame-ce. But tinyecs is platform agnostic, you can use it with whatever library you like.

Installation

tinyecs is available on pip and can be installed by:

pip install tinyecs

The project is maintained and hosted on github, where you also can find the wheels for a local install, or install it directly from the cloned repo.

git clone https://github.com/dickerdackel/tinyecs
cd tinyecs
python3 -m venv --prompt tinyecs .venv
.venv/bin/activate
# or .venv/Scripts/activate.bat on windows
pip install .

Documentation

The project home and main documentation is on Read the Docs.

Support / Contributing

Issues can be opened on github issues

License

This software is provided under the MIT license.

See LICENSE file for details.

Metadata

Release files for tinyecs 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tinyecs 0.5.0
File Size Uploaded Provenance Actions
tinyecs-0.5.0.tar.gz 21.2 kB Without provenance Details for tinyecs-0.5.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for tinyecs 0.5.0
File Interpreter ABI Platform Actions
tinyecs-0.5.0-py3-none-any.whl Python 3 none any Details for tinyecs-0.5.0-py3-none-any.whl

Total release size: 38.5 kB

Release files / tinyecs-0.5.0.tar.gz

Download URL tinyecs-0.5.0.tar.gz
Size 21.2 kB
Tags Source
SHA-256 checksum
How to use checksums
bd0b3682fc884abdf42570591b6801135ac43a34c02bc36b97d63e26b9bd11c4
BLAKE2b-256 checksum
How to use checksums
a7e0eb7a39bd97a3dcb7dd973e9e9d466e1f9b4c429b44c5e69da3ba0b023044
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.0

Release files / tinyecs-0.5.0-py3-none-any.whl

Download URL tinyecs-0.5.0-py3-none-any.whl
Size 17.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0a61d35d22d47782e8ecbf4afaf361d28e07d8c20ec77445076d33934fa7a232
BLAKE2b-256 checksum
How to use checksums
07fcd087781c436f176d457e49af7e4005fd6743b3f3f73d8c645423a66078df
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.0

Security for tinyecs 0.5.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page