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

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.1
File Size Uploaded Provenance Actions
tinyecs-0.5.1.tar.gz 21.1 kB Without provenance Details for tinyecs-0.5.1.tar.gz

Built distribution (wheel)

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

Total release size: 38.5 kB

Release files / tinyecs-0.5.1.tar.gz

Download URL tinyecs-0.5.1.tar.gz
Size 21.1 kB
Tags Source
SHA-256 checksum
How to use checksums
e18dbcc727e5bff594b050b47691bf6983aa6885e32b4eaafce20d8cbf304a87
BLAKE2b-256 checksum
How to use checksums
903a284c7661c7646a76625dc50e2e120c33cfe470c587a8f147dd9ffe3ebe4e
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.1-py3-none-any.whl

Download URL tinyecs-0.5.1-py3-none-any.whl
Size 17.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fd4f90ef9a3af0af4ef9d3e96e61073cb1dead8d70f6455b1aa3077a7e628922
BLAKE2b-256 checksum
How to use checksums
628bbe6dc8fc072ab6a5b537eb7eda77ae3f117fb0f62fe058c54b145d257741
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.1

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