tinyecs-compsys 0.0.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,27 @@
1
+ from importlib import import_module
2
+ from importlib.resources import files
3
+
4
+ from aenum import StrEnum, auto
5
+
6
+
7
+ class Comp(StrEnum):
8
+ NONE = auto()
9
+
10
+
11
+ class Prop(StrEnum):
12
+ NONE = auto()
13
+
14
+
15
+ def register():
16
+ """Register all tinyecs-compsy submodules.
17
+
18
+ Use this at the beginning of your project to import all submodules into the ``tinyecs.compsys`` namespace.
19
+ Registered modules will inject their components into ``tinyecs.compsys.Comp``.
20
+ """
21
+
22
+ BLACKLIST = ['__pycache__', '__init__.py']
23
+ HOME = files()
24
+
25
+ for sub in [_.name for _ in HOME.iterdir() if _.name not in BLACKLIST]:
26
+ print(f'Importing {sub}')
27
+ import_module(f'{__name__}.{sub}')
@@ -0,0 +1,68 @@
1
+ Metadata-Version: 2.4
2
+ Name: tinyecs-compsys
3
+ Version: 0.0.1
4
+ Summary: Compsys root for tinyecs
5
+ Author-email: Michael Lamertz <michael.lamertz@gmail.com>
6
+ License-Expression: MIT
7
+ Project-URL: homepage, https://forgejo.indieandmore.photography/dickerdackel/tinyecs-compsys
8
+ Project-URL: bugtracker, https://forgejo.indieandmore.photography/dickerdackel/tinyecs-compsys/issues
9
+ Classifier: Development Status :: 3 - Alpha
10
+ Classifier: Intended Audience :: Developers
11
+ Classifier: Topic :: Games/Entertainment
12
+ Classifier: Topic :: Software Development :: Libraries :: pygame
13
+ Description-Content-Type: text/x-rst
14
+ License-File: LICENSE
15
+ Requires-Dist: aenum
16
+ Requires-Dist: tinyecs>=0.5.0
17
+ Dynamic: license-file
18
+
19
+ tinyecs-compsys
20
+ ===============
21
+
22
+ This is the namespace to contain all other ``tinyecs-compsys-XXXX`` packages.
23
+
24
+ Synopsis
25
+ --------
26
+
27
+ .. code:: python
28
+
29
+ import tinyecs.compsys as cs
30
+
31
+ Usage
32
+ -----
33
+
34
+ Besides finding and registering sub modules, this package has no direct functionality.
35
+ Calling the ``register`` function will import all submodules, which will in
36
+ turn inject all their components into the ``Comp`` ``aenum``.
37
+
38
+ Installation
39
+ ------------
40
+
41
+ It's up to you, if you install the currently provided `compsys` packages from
42
+ `tinyecs` by using
43
+
44
+ .. code:: console
45
+
46
+ pip install tinyecs[all]
47
+
48
+ or include them all by adding specific dependencies:
49
+
50
+ .. code:: console
51
+
52
+ pip install tinyecs
53
+ pip install tinyecs-compsys
54
+ pip install tinyecs-compsys-base
55
+
56
+ Support / Contributing
57
+ ----------------------
58
+
59
+ Issues can be opened on `github issues`_
60
+
61
+ .. _github issues: https://forgejo.indieandmore.photography/dickerdackel/tinyecs-compsys/issues
62
+
63
+ License
64
+ -------
65
+
66
+ This software is provided under the MIT license.
67
+
68
+ See LICENSE file for details.
@@ -0,0 +1,6 @@
1
+ tinyecs/compsys/__init__.py,sha256=j0m4Ckx3JsMt6fCShTM6xqRb735asoNZeDbcG85GNkM,678
2
+ tinyecs_compsys-0.0.1.dist-info/licenses/LICENSE,sha256=wRH1Eyo6NtnpsXZUkuby3zCyPB5BT-XCrv3pVTZfbz0,1072
3
+ tinyecs_compsys-0.0.1.dist-info/METADATA,sha256=QCxBN_9hHOpyTcc99a53SqwPm3W6P6vDX2QTYEq1aqg,1738
4
+ tinyecs_compsys-0.0.1.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
5
+ tinyecs_compsys-0.0.1.dist-info/top_level.txt,sha256=lMaXjtnpZvawjp5Re5jZOY_Yki_mB1QkM_PTRUig0O4,8
6
+ tinyecs_compsys-0.0.1.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (84.2.1)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Michael Lamertz
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1 @@
1
+ tinyecs