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.2

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.2
File Size Uploaded Provenance Actions
tinyecs-0.5.2.tar.gz 21.2 kB Without provenance Details for tinyecs-0.5.2.tar.gz

Built distribution (wheel)

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

Total release size: 38.6 kB

Release files / tinyecs-0.5.2.tar.gz

Download URL tinyecs-0.5.2.tar.gz
Size 21.2 kB
Tags Source
SHA-256 checksum
How to use checksums
300774f402147dca800d19969d57e714b87eee10c401f08da6993fed4b1d0550
BLAKE2b-256 checksum
How to use checksums
978bc63863ae7de876f08289a83e7c86bfcabda47d621c824d64879564b00024
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.2

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

Download URL tinyecs-0.5.2-py3-none-any.whl
Size 17.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e41e1096e9fdadad5f92c9d821c84251cfed69f8c4fd0445d75405dc3be03d0f
BLAKE2b-256 checksum
How to use checksums
6383315b9eff35d9406456fae31e2b9d2278ed92a531d0cc1379596b53c27cd4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.15.2

Security for tinyecs 0.5.2

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