pythagoras 0.20.1__py3-none-any.whl → 0.20.3__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.
- pythagoras/_020_ordinary_code_portals/code_normalizer.py +4 -2
- pythagoras/_020_ordinary_code_portals/ordinary_portal_core_classes.py +1 -1
- pythagoras/_060_autonomous_code_portals/autonomous_portal_core_classes.py +1 -1
- pythagoras/_060_autonomous_code_portals/names_usage_analyzer.py +1 -2
- pythagoras/_070_protected_code_portals/RAM_guards.py +2 -2
- pythagoras/_100_top_level_API/default_local_portal.py +2 -2
- pythagoras/_800_signatures_and_converters/hash_signatures.py +1 -2
- pythagoras/_800_signatures_and_converters/node_signatures.py +1 -1
- pythagoras/_800_signatures_and_converters/random_signatures.py +1 -2
- {pythagoras-0.20.1.dist-info → pythagoras-0.20.3.dist-info}/METADATA +1 -1
- {pythagoras-0.20.1.dist-info → pythagoras-0.20.3.dist-info}/RECORD +12 -12
- {pythagoras-0.20.1.dist-info → pythagoras-0.20.3.dist-info}/WHEEL +0 -0
@@ -1,4 +1,6 @@
|
|
1
|
-
|
1
|
+
import sys
|
2
|
+
|
3
|
+
from .._010_basic_portals.exceptions import NonCompliantFunction
|
2
4
|
import ast
|
3
5
|
import inspect
|
4
6
|
from typing import Callable
|
@@ -7,8 +9,8 @@ import autopep8
|
|
7
9
|
from .function_processing import get_function_name_from_source
|
8
10
|
from .._010_basic_portals.long_infoname import get_long_infoname
|
9
11
|
from .function_processing import assert_ordinarity
|
10
|
-
from src import pythagoras as pth
|
11
12
|
|
13
|
+
import pythagoras as pth
|
12
14
|
|
13
15
|
def _get_normalized_function_source_impl(
|
14
16
|
a_func: Callable | str
|
@@ -227,7 +227,7 @@ class OrdinaryFn(PortalAwareClass):
|
|
227
227
|
|
228
228
|
def _available_names(self):
|
229
229
|
"""Returns a dictionary with the names, available inside the function."""
|
230
|
-
|
230
|
+
import pythagoras as pth
|
231
231
|
names= dict(globals())
|
232
232
|
names[self.name] = self
|
233
233
|
names["self"] = self
|
@@ -13,7 +13,7 @@ from .._060_autonomous_code_portals.names_usage_analyzer import (
|
|
13
13
|
from .._050_safe_code_portals.safe_portal_core_classes import (
|
14
14
|
SafeFn, SafeCodePortal)
|
15
15
|
|
16
|
-
|
16
|
+
import pythagoras as pth
|
17
17
|
|
18
18
|
|
19
19
|
class AutonomousCodePortal(SafeCodePortal):
|
@@ -1,8 +1,7 @@
|
|
1
1
|
import ast
|
2
2
|
from typing import Callable, Union
|
3
3
|
|
4
|
-
from
|
5
|
-
get_normalized_function_source)
|
4
|
+
from .._020_ordinary_code_portals import get_normalized_function_source
|
6
5
|
|
7
6
|
class NamesUsedInFunction:
|
8
7
|
def __init__(self):
|
@@ -1,12 +1,12 @@
|
|
1
1
|
from .._060_autonomous_code_portals import AutonomousFn, autonomous
|
2
|
-
from
|
2
|
+
from .OK_const import OK
|
3
3
|
|
4
4
|
|
5
5
|
def free_ram_bytes(packed_kwargs, fn_addr, required_memory):
|
6
6
|
import psutil
|
7
7
|
mem_info = psutil.virtual_memory()
|
8
8
|
if mem_info.available >= required_memory:
|
9
|
-
return
|
9
|
+
return OK
|
10
10
|
|
11
11
|
|
12
12
|
def RAM_K(limit:int) -> AutonomousFn:
|
@@ -1,5 +1,5 @@
|
|
1
|
-
from
|
2
|
-
from
|
1
|
+
from .._090_swarming_portals import SwarmingPortal
|
2
|
+
from .._010_basic_portals import get_default_portal_base_dir
|
3
3
|
|
4
4
|
|
5
5
|
def instantiate_default_local_portal():
|
@@ -6,10 +6,10 @@ pythagoras/_010_basic_portals/not_picklable_class.py,sha256=6c9374e4e54c7b7532b6
|
|
6
6
|
pythagoras/_010_basic_portals/portal_tester.py,sha256=cefdbf60bfc7697934ef8fd653303ac5295014884af780351baf84d859ec6de0,1817
|
7
7
|
pythagoras/_010_basic_portals/post_init_metaclass.py,sha256=6dbe6856e4e46627bc0ae64d4220274b1147d4d2a74f6440f2454f8a93485c7e,583
|
8
8
|
pythagoras/_020_ordinary_code_portals/__init__.py,sha256=a77912a9a4188f4c65864f41c29b45800d5449d4db7c790007943d307f80348d,1295
|
9
|
-
pythagoras/_020_ordinary_code_portals/code_normalizer.py,sha256=
|
9
|
+
pythagoras/_020_ordinary_code_portals/code_normalizer.py,sha256=2e2e4273add19a526273756ec8d8d0f33ea8aa0ef2cd15e0ce8c4c2b0d15f928,4869
|
10
10
|
pythagoras/_020_ordinary_code_portals/function_processing.py,sha256=ae5841d1da5a533b6fe92336c2551d6947444dc576a55508098b9f56b40245c7,3623
|
11
11
|
pythagoras/_020_ordinary_code_portals/ordinary_decorator.py,sha256=078c2e6e194ffab6bc8477b15b72198ccb34b57a935813ba2318ccf2d5c01a28,898
|
12
|
-
pythagoras/_020_ordinary_code_portals/ordinary_portal_core_classes.py,sha256=
|
12
|
+
pythagoras/_020_ordinary_code_portals/ordinary_portal_core_classes.py,sha256=bfe25e1911c9859c369a6dfeea8c8126c2b04058ad7b711994a99532e5c11b54,9182
|
13
13
|
pythagoras/_030_data_portals/__init__.py,sha256=8edbde910ded4fa56091492d7f8443d0980adedcab25f4b9308cfed05074c7f2,1237
|
14
14
|
pythagoras/_030_data_portals/data_portal_core_classes.py,sha256=50bcbd71705be6287573ba7b2f12a1523bc97976608537d71da31befe27196aa,18492
|
15
15
|
pythagoras/_030_data_portals/ready_and_get.py,sha256=d87d16a6747239f4ed6c30c2be95eab9ae58bc5b2742f0fd924fd2a3ace71382,1571
|
@@ -28,11 +28,11 @@ pythagoras/_050_safe_code_portals/safe_decorator.py,sha256=085bb05724d02a3ff4f51
|
|
28
28
|
pythagoras/_050_safe_code_portals/safe_portal_core_classes.py,sha256=517b5252c55433681433fceec6a2141486b0bc453797119bedf2fc37e408ae30,1678
|
29
29
|
pythagoras/_060_autonomous_code_portals/__init__.py,sha256=6c19fffb24a93aef9587f0abe9ef24732ef5971c94e9a0fa2c36f4d7a3664e35,2232
|
30
30
|
pythagoras/_060_autonomous_code_portals/autonomous_decorators.py,sha256=c315b37cbc30e3929f18e29bda409aad39b6d5d840dcdb8b70c737817d346af6,3947
|
31
|
-
pythagoras/_060_autonomous_code_portals/autonomous_portal_core_classes.py,sha256=
|
32
|
-
pythagoras/_060_autonomous_code_portals/names_usage_analyzer.py,sha256=
|
31
|
+
pythagoras/_060_autonomous_code_portals/autonomous_portal_core_classes.py,sha256=f0ba893c6bbc9a5557ff9f5d204a5c8e88ff499d2e8edb51daab4302bae7ea14,4406
|
32
|
+
pythagoras/_060_autonomous_code_portals/names_usage_analyzer.py,sha256=1e0e84854ac630b204878fecde48a16739fd2663709fcee2ec0a8844f4fd4f13,7470
|
33
33
|
pythagoras/_070_protected_code_portals/GPU_guards.py,sha256=75a11da44c802486bc6f65640aa48a730f0f684c5c07a42ba3cd1735eb3fb070,2
|
34
34
|
pythagoras/_070_protected_code_portals/OK_const.py,sha256=17ea314496f44b422f9936585c3bb3749c960bc779b4f74962ec04e3fa4d2494,186
|
35
|
-
pythagoras/_070_protected_code_portals/RAM_guards.py,sha256=
|
35
|
+
pythagoras/_070_protected_code_portals/RAM_guards.py,sha256=cd439db72375ad0c2c624d0fb7edf8d49dd2396a284929e0bfdfd42970ed4b28,837
|
36
36
|
pythagoras/_070_protected_code_portals/__init__.py,sha256=1e1a4ccccede6cd416d172967fb766ba91bbafddff078187799f044ed71677b3,195
|
37
37
|
pythagoras/_070_protected_code_portals/fn_arg_names_checker.py,sha256=2000ba3cab7d5828eba5b096358249c3ed460f7b82d41aaabcad945fd5e48a74,1215
|
38
38
|
pythagoras/_070_protected_code_portals/list_flattener.py,sha256=9a54b512ad9dc201db348e7908f5ca5f36d171ae3da433511d38023a6ba8d4b5,331
|
@@ -48,18 +48,18 @@ pythagoras/_090_swarming_portals/output_suppressor.py,sha256=83e6cc9bcc62a226bab
|
|
48
48
|
pythagoras/_090_swarming_portals/swarming_portals.py,sha256=4534cb2849f6bad88b27622210e89cf73aaccb163d6db625d2ea4403440ecd44,10745
|
49
49
|
pythagoras/_090_swarming_portals/system_utils.py,sha256=d125a0b705b9f8477712179c49441daaf2cd2b0b0d4494b6ac977b2df87b50b5,1370
|
50
50
|
pythagoras/_100_top_level_API/__init__.py,sha256=edac726311978503953fe4c37c475c7d616708236880f393b63894b9ab6251e5,95
|
51
|
-
pythagoras/_100_top_level_API/default_local_portal.py,sha256=
|
51
|
+
pythagoras/_100_top_level_API/default_local_portal.py,sha256=cfbe20499fed2f038b507b44fb58bb4cb6ea2fbe2fe93a3ab5ad7f3ac655005f,215
|
52
52
|
pythagoras/_100_top_level_API/top_level_API.py,sha256=e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855,0
|
53
53
|
pythagoras/_800_signatures_and_converters/__init__.py,sha256=d9420254db0c62903fe5419612cef536f219ec319e81b7efc3e783a113aac93b,167
|
54
54
|
pythagoras/_800_signatures_and_converters/base_16_32_convertors.py,sha256=66356d2a38e33203201d484cfb543da8b6160832a1965aaaf73e1880a2f4a828,1236
|
55
55
|
pythagoras/_800_signatures_and_converters/current_date_gmt_str.py,sha256=2beac61f2ad112cc8175832aeef5abbf715d01a71ea56429bce7d3fe6ad9a8d3,268
|
56
|
-
pythagoras/_800_signatures_and_converters/hash_signatures.py,sha256=
|
57
|
-
pythagoras/_800_signatures_and_converters/node_signatures.py,sha256=
|
58
|
-
pythagoras/_800_signatures_and_converters/random_signatures.py,sha256=
|
56
|
+
pythagoras/_800_signatures_and_converters/hash_signatures.py,sha256=02c5080ff67bc9e174e899a4f2428015722ec6817484dd0ec0e4b54f99eeeff9,989
|
57
|
+
pythagoras/_800_signatures_and_converters/node_signatures.py,sha256=2de43f2cc4c3d62f56240fc26fc70668fde809a65f023502fb773ccafae3224b,557
|
58
|
+
pythagoras/_800_signatures_and_converters/random_signatures.py,sha256=c174f28c04ccf08c0c5eadaf1e1a00aba4fec88ec370def64afcadd39123141a,323
|
59
59
|
pythagoras/_900_project_stats_collector/__init__.py,sha256=e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855,0
|
60
60
|
pythagoras/_900_project_stats_collector/project_analyzer.py,sha256=d06e9d7b516cb7424ef777e70abe9d5220e09b0b19476326b8974b4dc3917f89,3506
|
61
61
|
pythagoras/__init__.py,sha256=94303c01a7bde4078fdbd90c0b142807a023fa352c473c3a544a2180b7254ae9,1062
|
62
62
|
pythagoras/core/__init__.py,sha256=26640880921763e8801b74da28fccf1cd47ac0ba0d40ee8fcaf7d748410406bf,189
|
63
|
-
pythagoras-0.20.
|
64
|
-
pythagoras-0.20.
|
65
|
-
pythagoras-0.20.
|
63
|
+
pythagoras-0.20.3.dist-info/WHEEL,sha256=7de84e261f5edc1201bd668234a371ec3eb94db037d1f75c0139430c1319ab31,79
|
64
|
+
pythagoras-0.20.3.dist-info/METADATA,sha256=16ba3e6e4cb7a927c474c6189796e6f264dd180ed3413014a002a34272fedc33,4177
|
65
|
+
pythagoras-0.20.3.dist-info/RECORD,,
|
File without changes
|