orionis 0.240.0__py3-none-any.whl → 0.241.0__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.
- orionis/framework.py +1 -1
- orionis/luminate/support/introspection/instances/contracts/reflection_instance.py +10 -5
- {orionis-0.240.0.dist-info → orionis-0.241.0.dist-info}/METADATA +1 -1
- {orionis-0.240.0.dist-info → orionis-0.241.0.dist-info}/RECORD +9 -9
- tests/support/inspection/test_reflect_instance.py +1 -1
- {orionis-0.240.0.dist-info → orionis-0.241.0.dist-info}/LICENCE +0 -0
- {orionis-0.240.0.dist-info → orionis-0.241.0.dist-info}/WHEEL +0 -0
- {orionis-0.240.0.dist-info → orionis-0.241.0.dist-info}/entry_points.txt +0 -0
- {orionis-0.240.0.dist-info → orionis-0.241.0.dist-info}/top_level.txt +0 -0
orionis/framework.py
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
from abc import ABC, abstractmethod
|
2
2
|
import inspect
|
3
3
|
from typing import Any, Callable, Dict, List, Optional, Tuple, Type
|
4
|
+
from orionis.luminate.support.introspection.dependencies.entities.class_dependencies import ClassDependency
|
5
|
+
from orionis.luminate.support.introspection.dependencies.entities.method_dependencies import MethodDependency
|
6
|
+
from orionis.luminate.support.introspection.instances.entities.class_attributes import ClassAttributes
|
7
|
+
from orionis.luminate.support.introspection.instances.entities.class_parsed import ClassParsed
|
8
|
+
from orionis.luminate.support.introspection.instances.entities.class_property import ClassProperty
|
4
9
|
|
5
10
|
class IReflectionInstance(ABC):
|
6
11
|
"""
|
@@ -18,7 +23,7 @@ class IReflectionInstance(ABC):
|
|
18
23
|
"""
|
19
24
|
|
20
25
|
@abstractmethod
|
21
|
-
def parse(self):
|
26
|
+
def parse(self) -> ClassParsed:
|
22
27
|
"""
|
23
28
|
Parse the instance into a structured representation.
|
24
29
|
|
@@ -75,7 +80,7 @@ class IReflectionInstance(ABC):
|
|
75
80
|
pass
|
76
81
|
|
77
82
|
@abstractmethod
|
78
|
-
def getAllAttributes(self):
|
83
|
+
def getAllAttributes(self) -> ClassAttributes:
|
79
84
|
"""
|
80
85
|
Get all attributes of the instance.
|
81
86
|
|
@@ -288,7 +293,7 @@ class IReflectionInstance(ABC):
|
|
288
293
|
pass
|
289
294
|
|
290
295
|
@abstractmethod
|
291
|
-
def getAllProperties(self) -> Dict[str,
|
296
|
+
def getAllProperties(self) -> Dict[str, ClassProperty]:
|
292
297
|
"""
|
293
298
|
Get all properties of the instance.
|
294
299
|
|
@@ -611,7 +616,7 @@ class IReflectionInstance(ABC):
|
|
611
616
|
pass
|
612
617
|
|
613
618
|
@abstractmethod
|
614
|
-
def getConstructorDependencies(self):
|
619
|
+
def getConstructorDependencies(self) -> ClassDependency:
|
615
620
|
"""
|
616
621
|
Get the resolved and unresolved dependencies from the constructor of the instance's class.
|
617
622
|
|
@@ -625,7 +630,7 @@ class IReflectionInstance(ABC):
|
|
625
630
|
pass
|
626
631
|
|
627
632
|
@abstractmethod
|
628
|
-
def getMethodDependencies(self, method_name: str):
|
633
|
+
def getMethodDependencies(self, method_name: str) -> MethodDependency:
|
629
634
|
"""
|
630
635
|
Get the resolved and unresolved dependencies from a method of the instance's class.
|
631
636
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
orionis/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
2
|
orionis/console.py,sha256=4gYWxf0fWYgJ4RKwARvnTPh06FL3GJ6SAZ7R2NzOICw,1342
|
3
|
-
orionis/framework.py,sha256=
|
3
|
+
orionis/framework.py,sha256=tOhU1eGdh3TxJ162efN-J9CpuTCFpJjZtIUKffOM6JM,1458
|
4
4
|
orionis/installer/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
5
5
|
orionis/installer/manager.py,sha256=Li4TVziRXWfum02xNG4JHwbnLk-u8xzHjdqKz-D894k,2755
|
6
6
|
orionis/installer/output.py,sha256=7O9qa2xtXMB_4ZvVi-Klneom9YazwygAd_4uYAoxhbU,8548
|
@@ -193,7 +193,7 @@ orionis/luminate/support/introspection/helpers/functions.py,sha256=JC2_t732LqcJn
|
|
193
193
|
orionis/luminate/support/introspection/instances/__init__.py,sha256=R6dZ6yPk-4m2IaW74ceM4-Sba52aeAryfmIK4pAVWpc,144
|
194
194
|
orionis/luminate/support/introspection/instances/reflection_instance.py,sha256=Kr9KXI6-XS5do8zldVi039S3iRb9eYHXUiYtLeexXQk,24482
|
195
195
|
orionis/luminate/support/introspection/instances/contracts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
196
|
-
orionis/luminate/support/introspection/instances/contracts/reflection_instance.py,sha256=
|
196
|
+
orionis/luminate/support/introspection/instances/contracts/reflection_instance.py,sha256=uXHbvwFUhAyXopY2ONa_BDthBYR1Hw23vSQ10OOJ2NE,17146
|
197
197
|
orionis/luminate/support/introspection/instances/entities/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
198
198
|
orionis/luminate/support/introspection/instances/entities/class_attributes.py,sha256=eQSiqCE_3ai_1FJF7VCJlLVmX3X7lEwD7bsoomd5z80,296
|
199
199
|
orionis/luminate/support/introspection/instances/entities/class_method.py,sha256=KHxd5mBCNnbtq6RhNrAk5Wu1VrblJzd629rBXMzBVZ8,473
|
@@ -252,7 +252,7 @@ tests/support/environment/test_env.py,sha256=fcMyvGnDnP2qamhG7yDRN9MyUDjeYN-oSml
|
|
252
252
|
tests/support/inspection/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
253
253
|
tests/support/inspection/test_reflect_abstract.py,sha256=0qjK1vzDu6jt_F16esoxxMVvYF7s-ThC0oYE_oK7UgA,10590
|
254
254
|
tests/support/inspection/test_reflect_dependencies.py,sha256=frROd9NDbzwmEpb7TEOpikshFJKbPN5NvJ62ZWUm11E,3686
|
255
|
-
tests/support/inspection/test_reflect_instance.py,sha256=
|
255
|
+
tests/support/inspection/test_reflect_instance.py,sha256=z24MP-6a58NkWXGWlreR4hvIrsdBfDgf3HI1Owq2FmU,14096
|
256
256
|
tests/support/inspection/test_reflection_concrete.py,sha256=OXUG4EDW0Xa8c7TWeUuGdwRc3eQ4hoP67ZGbevg8BdU,6778
|
257
257
|
tests/support/inspection/test_reflection_concrete_with_abstract.py,sha256=7QPHwZZOpBaRTlpiXWIQ4DPYQBlnD1-XxNMtjEfMPu4,4673
|
258
258
|
tests/support/inspection/test_reflection_instance_with_abstract.py,sha256=GmY2W9S84uFCBIRsEjAAVhWbqWR7ZgOPD-AN8sAmhSM,4082
|
@@ -273,9 +273,9 @@ tests/support/patterns/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3
|
|
273
273
|
tests/support/patterns/test_singleton.py,sha256=I0Cawq0C5mV5v2I1mLmxJeXw9Vt3B1iq1RgLePsG30I,624
|
274
274
|
tests/support/standard/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
275
275
|
tests/support/standard/test_std.py,sha256=g_iU9Pa6W9XDnxwdLB_NAmD60547VAReXe_Vhyrhf4M,2032
|
276
|
-
orionis-0.
|
277
|
-
orionis-0.
|
278
|
-
orionis-0.
|
279
|
-
orionis-0.
|
280
|
-
orionis-0.
|
281
|
-
orionis-0.
|
276
|
+
orionis-0.241.0.dist-info/LICENCE,sha256=-_4cF2EBKuYVS_SQpy1uapq0oJPUU1vl_RUWSy2jJTo,1111
|
277
|
+
orionis-0.241.0.dist-info/METADATA,sha256=J-3ZQ2CFJd5Nk96hutyrlyJuGQ3eLdTwbaAwLgsqC2A,3003
|
278
|
+
orionis-0.241.0.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
279
|
+
orionis-0.241.0.dist-info/entry_points.txt,sha256=a_e0faeSqyUCVZd0MqljQ2oaHHdlsz6g9sU_bMqi5zQ,49
|
280
|
+
orionis-0.241.0.dist-info/top_level.txt,sha256=2bdoHgyGZhOtLAXS6Om8OCTmL24dUMC_L1quMe_ETbk,14
|
281
|
+
orionis-0.241.0.dist-info/RECORD,,
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import asyncio
|
2
2
|
from orionis.luminate.support.introspection import Reflection
|
3
|
-
from orionis.luminate.support.introspection.
|
3
|
+
from orionis.luminate.support.introspection.instances import ReflectionInstance
|
4
4
|
from orionis.luminate.test import TestCase
|
5
5
|
from tests.support.inspection.fakes.fake_reflect_instance import BaseFakeClass, FakeClass
|
6
6
|
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|