pythagoras 0.23.17__tar.gz → 0.23.18__tar.gz
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-0.23.17 → pythagoras-0.23.18}/PKG-INFO +5 -11
- {pythagoras-0.23.17 → pythagoras-0.23.18}/README.md +4 -10
- {pythagoras-0.23.17 → pythagoras-0.23.18}/pyproject.toml +1 -1
- {pythagoras-0.23.17 → pythagoras-0.23.18}/src/pythagoras/.DS_Store +0 -0
- {pythagoras-0.23.17 → pythagoras-0.23.18}/src/pythagoras/_010_basic_portals/__init__.py +0 -0
- {pythagoras-0.23.17 → pythagoras-0.23.18}/src/pythagoras/_010_basic_portals/basic_portal_core_classes.py +0 -0
- {pythagoras-0.23.17 → pythagoras-0.23.18}/src/pythagoras/_010_basic_portals/exceptions.py +0 -0
- {pythagoras-0.23.17 → pythagoras-0.23.18}/src/pythagoras/_010_basic_portals/long_infoname.py +0 -0
- {pythagoras-0.23.17 → pythagoras-0.23.18}/src/pythagoras/_010_basic_portals/not_picklable_class.py +0 -0
- {pythagoras-0.23.17 → pythagoras-0.23.18}/src/pythagoras/_010_basic_portals/portal_tester.py +0 -0
- {pythagoras-0.23.17 → pythagoras-0.23.18}/src/pythagoras/_010_basic_portals/post_init_metaclass.py +0 -0
- {pythagoras-0.23.17 → pythagoras-0.23.18}/src/pythagoras/_020_ordinary_code_portals/__init__.py +0 -0
- {pythagoras-0.23.17 → pythagoras-0.23.18}/src/pythagoras/_020_ordinary_code_portals/code_normalizer.py +0 -0
- {pythagoras-0.23.17 → pythagoras-0.23.18}/src/pythagoras/_020_ordinary_code_portals/function_processing.py +0 -0
- {pythagoras-0.23.17 → pythagoras-0.23.18}/src/pythagoras/_020_ordinary_code_portals/ordinary_decorator.py +0 -0
- {pythagoras-0.23.17 → pythagoras-0.23.18}/src/pythagoras/_020_ordinary_code_portals/ordinary_portal_core_classes.py +0 -0
- {pythagoras-0.23.17 → pythagoras-0.23.18}/src/pythagoras/_030_data_portals/__init__.py +0 -0
- {pythagoras-0.23.17 → pythagoras-0.23.18}/src/pythagoras/_030_data_portals/data_portal_core_classes.py +0 -0
- {pythagoras-0.23.17 → pythagoras-0.23.18}/src/pythagoras/_030_data_portals/ready_and_get.py +0 -0
- {pythagoras-0.23.17 → pythagoras-0.23.18}/src/pythagoras/_030_data_portals/storable_decorator.py +0 -0
- {pythagoras-0.23.17 → pythagoras-0.23.18}/src/pythagoras/_040_logging_code_portals/__init__.py +0 -0
- {pythagoras-0.23.17 → pythagoras-0.23.18}/src/pythagoras/_040_logging_code_portals/exception_processing_tracking.py +0 -0
- {pythagoras-0.23.17 → pythagoras-0.23.18}/src/pythagoras/_040_logging_code_portals/execution_environment_summary.py +0 -0
- {pythagoras-0.23.17 → pythagoras-0.23.18}/src/pythagoras/_040_logging_code_portals/kw_args.py +0 -0
- {pythagoras-0.23.17 → pythagoras-0.23.18}/src/pythagoras/_040_logging_code_portals/logging_decorator.py +0 -0
- {pythagoras-0.23.17 → pythagoras-0.23.18}/src/pythagoras/_040_logging_code_portals/logging_portal_core_classes.py +0 -0
- {pythagoras-0.23.17 → pythagoras-0.23.18}/src/pythagoras/_040_logging_code_portals/notebook_checker.py +0 -0
- {pythagoras-0.23.17 → pythagoras-0.23.18}/src/pythagoras/_040_logging_code_portals/output_capturer.py +0 -0
- {pythagoras-0.23.17 → pythagoras-0.23.18}/src/pythagoras/_040_logging_code_portals/uncaught_exceptions.py +0 -0
- {pythagoras-0.23.17 → pythagoras-0.23.18}/src/pythagoras/_050_safe_code_portals/__init__.py +0 -0
- {pythagoras-0.23.17 → pythagoras-0.23.18}/src/pythagoras/_050_safe_code_portals/safe_decorator.py +0 -0
- {pythagoras-0.23.17 → pythagoras-0.23.18}/src/pythagoras/_050_safe_code_portals/safe_portal_core_classes.py +0 -0
- {pythagoras-0.23.17 → pythagoras-0.23.18}/src/pythagoras/_060_autonomous_code_portals/__init__.py +0 -0
- {pythagoras-0.23.17 → pythagoras-0.23.18}/src/pythagoras/_060_autonomous_code_portals/autonomous_decorators.py +0 -0
- {pythagoras-0.23.17 → pythagoras-0.23.18}/src/pythagoras/_060_autonomous_code_portals/autonomous_portal_core_classes.py +0 -0
- {pythagoras-0.23.17 → pythagoras-0.23.18}/src/pythagoras/_060_autonomous_code_portals/names_usage_analyzer.py +0 -0
- {pythagoras-0.23.17 → pythagoras-0.23.18}/src/pythagoras/_070_protected_code_portals/__init__.py +0 -0
- {pythagoras-0.23.17 → pythagoras-0.23.18}/src/pythagoras/_070_protected_code_portals/basic_pre_validators.py +0 -0
- {pythagoras-0.23.17 → pythagoras-0.23.18}/src/pythagoras/_070_protected_code_portals/fn_arg_names_checker.py +0 -0
- {pythagoras-0.23.17 → pythagoras-0.23.18}/src/pythagoras/_070_protected_code_portals/list_flattener.py +0 -0
- {pythagoras-0.23.17 → pythagoras-0.23.18}/src/pythagoras/_070_protected_code_portals/package_manager.py +0 -0
- {pythagoras-0.23.17 → pythagoras-0.23.18}/src/pythagoras/_070_protected_code_portals/protected_decorators.py +0 -0
- {pythagoras-0.23.17 → pythagoras-0.23.18}/src/pythagoras/_070_protected_code_portals/protected_portal_core_classes.py +0 -0
- {pythagoras-0.23.17 → pythagoras-0.23.18}/src/pythagoras/_070_protected_code_portals/system_utils.py +0 -0
- {pythagoras-0.23.17 → pythagoras-0.23.18}/src/pythagoras/_070_protected_code_portals/validation_succesful_const.py +0 -0
- {pythagoras-0.23.17 → pythagoras-0.23.18}/src/pythagoras/_080_pure_code_portals/__init__.py +0 -0
- {pythagoras-0.23.17 → pythagoras-0.23.18}/src/pythagoras/_080_pure_code_portals/pure_core_classes.py +0 -0
- {pythagoras-0.23.17 → pythagoras-0.23.18}/src/pythagoras/_080_pure_code_portals/pure_decorator.py +0 -0
- {pythagoras-0.23.17 → pythagoras-0.23.18}/src/pythagoras/_080_pure_code_portals/recursion_pre_validator.py +0 -0
- {pythagoras-0.23.17 → pythagoras-0.23.18}/src/pythagoras/_090_swarming_portals/__init__.py +0 -0
- {pythagoras-0.23.17 → pythagoras-0.23.18}/src/pythagoras/_090_swarming_portals/output_suppressor.py +0 -0
- {pythagoras-0.23.17 → pythagoras-0.23.18}/src/pythagoras/_090_swarming_portals/swarming_portals.py +0 -0
- {pythagoras-0.23.17 → pythagoras-0.23.18}/src/pythagoras/_100_top_level_API/__init__.py +0 -0
- {pythagoras-0.23.17 → pythagoras-0.23.18}/src/pythagoras/_100_top_level_API/default_local_portal.py +0 -0
- {pythagoras-0.23.17 → pythagoras-0.23.18}/src/pythagoras/_100_top_level_API/top_level_API.py +0 -0
- {pythagoras-0.23.17 → pythagoras-0.23.18}/src/pythagoras/_800_signatures_and_converters/__init__.py +0 -0
- {pythagoras-0.23.17 → pythagoras-0.23.18}/src/pythagoras/_800_signatures_and_converters/base_16_32_convertors.py +0 -0
- {pythagoras-0.23.17 → pythagoras-0.23.18}/src/pythagoras/_800_signatures_and_converters/current_date_gmt_str.py +0 -0
- {pythagoras-0.23.17 → pythagoras-0.23.18}/src/pythagoras/_800_signatures_and_converters/hash_signatures.py +0 -0
- {pythagoras-0.23.17 → pythagoras-0.23.18}/src/pythagoras/_800_signatures_and_converters/node_signature.py +0 -0
- {pythagoras-0.23.17 → pythagoras-0.23.18}/src/pythagoras/_800_signatures_and_converters/random_signatures.py +0 -0
- {pythagoras-0.23.17 → pythagoras-0.23.18}/src/pythagoras/_900_project_stats_collector/__init__.py +0 -0
- {pythagoras-0.23.17 → pythagoras-0.23.18}/src/pythagoras/_900_project_stats_collector/project_analyzer.py +0 -0
- {pythagoras-0.23.17 → pythagoras-0.23.18}/src/pythagoras/__init__.py +0 -0
- {pythagoras-0.23.17 → pythagoras-0.23.18}/src/pythagoras/core/__init__.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: pythagoras
|
|
3
|
-
Version: 0.23.
|
|
3
|
+
Version: 0.23.18
|
|
4
4
|
Summary: Planet-scale distributed computing in Python.
|
|
5
5
|
Keywords: cloud,ML,AI,serverless,distributed,parallel,machine-learning,deep-learning,pythagoras
|
|
6
6
|
Author: Volodymyr (Vlad) Pavlov
|
|
@@ -113,15 +113,13 @@ Decorating a function:
|
|
|
113
113
|
@pure()
|
|
114
114
|
def my_long_running_function(a:float, b:float) -> float:
|
|
115
115
|
from time import sleep # imports must be placed inside a pure function
|
|
116
|
-
|
|
117
|
-
sleep(1)
|
|
118
|
-
print("waiting....")
|
|
116
|
+
sleep(5)
|
|
119
117
|
return a+10*b
|
|
120
118
|
```
|
|
121
119
|
|
|
122
120
|
Using a decorated function synchronously:
|
|
123
121
|
```python
|
|
124
|
-
result = my_long_running_function(a=1, b=2)
|
|
122
|
+
result = my_long_running_function(a=1, b=2) # only named arguments are allowed
|
|
125
123
|
```
|
|
126
124
|
|
|
127
125
|
Using a decorated function asynchronously:
|
|
@@ -139,11 +137,7 @@ Pre-conditions for executing a function:
|
|
|
139
137
|
unused_cpu(cores=10)])
|
|
140
138
|
def my_long_running_function(a:float, b:float) -> float:
|
|
141
139
|
from time import sleep
|
|
142
|
-
|
|
143
|
-
sleep(1)
|
|
144
|
-
print(
|
|
145
|
-
"waiting...."
|
|
146
|
-
)
|
|
140
|
+
sleep(5)
|
|
147
141
|
return a+10*b
|
|
148
142
|
```
|
|
149
143
|
|
|
@@ -154,7 +148,7 @@ def factorial(n:int)->int:
|
|
|
154
148
|
if n == 1:
|
|
155
149
|
return 1
|
|
156
150
|
else:
|
|
157
|
-
return n*factorial(n=n-1)
|
|
151
|
+
return n*factorial(n=n-1) # only named arguments are allowed
|
|
158
152
|
```
|
|
159
153
|
|
|
160
154
|
Partial function application:
|
|
@@ -61,15 +61,13 @@ Decorating a function:
|
|
|
61
61
|
@pure()
|
|
62
62
|
def my_long_running_function(a:float, b:float) -> float:
|
|
63
63
|
from time import sleep # imports must be placed inside a pure function
|
|
64
|
-
|
|
65
|
-
sleep(1)
|
|
66
|
-
print("waiting....")
|
|
64
|
+
sleep(5)
|
|
67
65
|
return a+10*b
|
|
68
66
|
```
|
|
69
67
|
|
|
70
68
|
Using a decorated function synchronously:
|
|
71
69
|
```python
|
|
72
|
-
result = my_long_running_function(a=1, b=2)
|
|
70
|
+
result = my_long_running_function(a=1, b=2) # only named arguments are allowed
|
|
73
71
|
```
|
|
74
72
|
|
|
75
73
|
Using a decorated function asynchronously:
|
|
@@ -87,11 +85,7 @@ Pre-conditions for executing a function:
|
|
|
87
85
|
unused_cpu(cores=10)])
|
|
88
86
|
def my_long_running_function(a:float, b:float) -> float:
|
|
89
87
|
from time import sleep
|
|
90
|
-
|
|
91
|
-
sleep(1)
|
|
92
|
-
print(
|
|
93
|
-
"waiting...."
|
|
94
|
-
)
|
|
88
|
+
sleep(5)
|
|
95
89
|
return a+10*b
|
|
96
90
|
```
|
|
97
91
|
|
|
@@ -102,7 +96,7 @@ def factorial(n:int)->int:
|
|
|
102
96
|
if n == 1:
|
|
103
97
|
return 1
|
|
104
98
|
else:
|
|
105
|
-
return n*factorial(n=n-1)
|
|
99
|
+
return n*factorial(n=n-1) # only named arguments are allowed
|
|
106
100
|
```
|
|
107
101
|
|
|
108
102
|
Partial function application:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pythagoras-0.23.17 → pythagoras-0.23.18}/src/pythagoras/_010_basic_portals/long_infoname.py
RENAMED
|
File without changes
|
{pythagoras-0.23.17 → pythagoras-0.23.18}/src/pythagoras/_010_basic_portals/not_picklable_class.py
RENAMED
|
File without changes
|
{pythagoras-0.23.17 → pythagoras-0.23.18}/src/pythagoras/_010_basic_portals/portal_tester.py
RENAMED
|
File without changes
|
{pythagoras-0.23.17 → pythagoras-0.23.18}/src/pythagoras/_010_basic_portals/post_init_metaclass.py
RENAMED
|
File without changes
|
{pythagoras-0.23.17 → pythagoras-0.23.18}/src/pythagoras/_020_ordinary_code_portals/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pythagoras-0.23.17 → pythagoras-0.23.18}/src/pythagoras/_030_data_portals/storable_decorator.py
RENAMED
|
File without changes
|
{pythagoras-0.23.17 → pythagoras-0.23.18}/src/pythagoras/_040_logging_code_portals/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pythagoras-0.23.17 → pythagoras-0.23.18}/src/pythagoras/_040_logging_code_portals/kw_args.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pythagoras-0.23.17 → pythagoras-0.23.18}/src/pythagoras/_050_safe_code_portals/safe_decorator.py
RENAMED
|
File without changes
|
|
File without changes
|
{pythagoras-0.23.17 → pythagoras-0.23.18}/src/pythagoras/_060_autonomous_code_portals/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pythagoras-0.23.17 → pythagoras-0.23.18}/src/pythagoras/_070_protected_code_portals/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pythagoras-0.23.17 → pythagoras-0.23.18}/src/pythagoras/_070_protected_code_portals/system_utils.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pythagoras-0.23.17 → pythagoras-0.23.18}/src/pythagoras/_080_pure_code_portals/pure_core_classes.py
RENAMED
|
File without changes
|
{pythagoras-0.23.17 → pythagoras-0.23.18}/src/pythagoras/_080_pure_code_portals/pure_decorator.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pythagoras-0.23.17 → pythagoras-0.23.18}/src/pythagoras/_090_swarming_portals/output_suppressor.py
RENAMED
|
File without changes
|
{pythagoras-0.23.17 → pythagoras-0.23.18}/src/pythagoras/_090_swarming_portals/swarming_portals.py
RENAMED
|
File without changes
|
|
File without changes
|
{pythagoras-0.23.17 → pythagoras-0.23.18}/src/pythagoras/_100_top_level_API/default_local_portal.py
RENAMED
|
File without changes
|
{pythagoras-0.23.17 → pythagoras-0.23.18}/src/pythagoras/_100_top_level_API/top_level_API.py
RENAMED
|
File without changes
|
{pythagoras-0.23.17 → pythagoras-0.23.18}/src/pythagoras/_800_signatures_and_converters/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pythagoras-0.23.17 → pythagoras-0.23.18}/src/pythagoras/_900_project_stats_collector/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|