root namespace for additional tinyecs compsys packages.
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-14 14:26:15 +01:00
docs ...again links 2026-11-14 14:26:15 +01:00
src Support star imports to access all systems and components from the tinyecs.compsys namespace 2026-11-14 12:03:51 +01:00
.gitignore Initial checkin, b0rken 2026-08-29 14:59:36 +02:00
.ignore Initial commit 2026-08-17 18:53:28 +00:00
.readthedocs.yaml Using best practices approach for importing, doc generation fixes 2026-11-10 16:25:44 +01:00
AI-policy.rst No code changes, only Updated AI policy file 2026-11-11 09:56:35 +01:00
Changelog.md v0.0.4 2026-11-14 12:08:59 +01:00
LICENSE Updated copyright year 2026-11-09 20:01:17 +01:00
MANIFEST.in Initial commit 2026-08-17 18:53:28 +00:00
pyproject.toml v0.0.4 2026-11-14 12:08:59 +01:00
README.md doc audit 2026-11-10 22:17:23 +01:00
README.rst doc audit 2026-11-10 22:17:23 +01:00
setuprj Initial commit 2026-08-17 18:53:28 +00:00

tinyecs-compsys

This is the namespace to contain all other tinyecs-compsys-XXXX packages.

Synopsis

import tinyecs.compsys as cs

cs.register()

Usage

This package provides the namespace and a starting point for all tinyecs-compsys-<CATEGORY> packages.

Importing this package and calling its register function will import all immediate subpackages and have those inject their component IDs into the Comp enum.

Note:

The Comp contains symbols to use as component IDs in tinyecs. While every hashable is a valid component ID, and it's completely fine to just use strings for small projects, using the provided enum has the benefit of finding typing errors much easier. It's recommended to make use of that.

This package makes use of aenum, an advanced and extendable implementation of python enums, written by the same author that also maintains the official python version.

If you create your own components and systems, you can add those to Comp as well:

from aenum import extend_enum

extend_enum(cs.Comp, 'YOUR_COMPONENT')
...

Installation

It's up to you, if you install the currently provided compsys packages from tinyecs by using

pip install tinyecs[base]

or include them by adding specific dependencies:

pip install tinyecs
pip install tinyecs-compsys
pip install tinyecs-compsys-base

Support / Contributing

Issues can be opened on github issues

License

This software is provided under the MIT license.

See LICENSE file for details.