pythagoras 0.23.2__py3-none-any.whl → 0.23.4__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.
@@ -152,6 +152,7 @@ class AutonomousFn(SafeFn):
152
152
  """
153
153
  super()._invalidate_cache()
154
154
  if hasattr(self, "_fixed_kwargs_cached"):
155
- assert (hasattr(self, "_fixed_kwargs_packed")
156
- , "Premature cache invalidation: fixed_kwargs_packed is missing.")
155
+ if not hasattr(self, "_fixed_kwargs_packed"):
156
+ raise AttributeError("Premature cache invalidation: "
157
+ "fixed_kwargs_packed is missing.")
157
158
  del self._fixed_kwargs_cached
@@ -222,10 +222,12 @@ class ProtectedFn(AutonomousFn):
222
222
  """
223
223
  super()._invalidate_cache()
224
224
  if hasattr(self, "_post_validators_cached"):
225
- assert (hasattr(self, "_post_validators_addrs")
226
- , "Premature cache invalidation: _post_validators_addrs is missing.")
225
+ if not hasattr(self, "_post_validators_addrs"):
226
+ raise AttributeError("Premature cache invalidation: "
227
+ "_post_validators_addrs is missing.")
227
228
  del self._post_validators_cached
228
229
  if hasattr(self, "_pre_validators_cached"):
229
- assert (hasattr(self, "_pre_validators_addrs")
230
- , "Premature cache invalidation: _pre_validators_addrs is missing.")
230
+ if not hasattr(self, "_pre_validators_addrs"):
231
+ raise AttributeError("Premature cache invalidation: "
232
+ "_pre_validators_addrs is missing.")
231
233
  del self._pre_validators_cached
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: pythagoras
3
- Version: 0.23.2
3
+ Version: 0.23.4
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
@@ -26,6 +26,7 @@ Requires-Dist: jsonpickle
26
26
  Requires-Dist: psutil
27
27
  Requires-Dist: autopep8
28
28
  Requires-Dist: deepdiff
29
+ Requires-Dist: numpy
29
30
  Requires-Dist: pytest
30
31
  Requires-Dist: boto3
31
32
  Requires-Dist: moto
@@ -70,7 +71,7 @@ with intelligent data and code change tracking;
70
71
  * simple and budget-friendly orchestration backend.
71
72
 
72
73
  Pythagoras excels at optimizing complex, long-running,
73
- resource-demanding computations. It’s not the optimal choice for real-time,
74
+ resource-demanding computations. It’s not the best choice for real-time,
74
75
  latency-sensitive workflows.
75
76
 
76
77
  ## Usage
@@ -82,6 +83,9 @@ that were previously out of reach.
82
83
  * `Introduction to Pythagoras` notebook:
83
84
  https://colab.research.google.com/drive/117rAtaWxjfSubzGx0shgqNjONY3E5jgd
84
85
 
86
+
87
+ **!!! BOOKMARK THIS PAGE AND COME BACK LATER, WE WILL PUBLISH MORE TUTORIALS SOON !!!**
88
+
85
89
  ## How to get it?
86
90
 
87
91
  The source code is hosted on GitHub at: https://github.com/pythagoras-dev/pythagoras
@@ -102,6 +106,7 @@ pip install pythagoras
102
106
  ## Dependencies
103
107
 
104
108
  * [persidict](https://pypi.org/project/persidict)
109
+ * [parameterizable](https://pypi.org/project/parameterizable/)
105
110
  * [jsonpickle](https://jsonpickle.github.io)
106
111
  * [joblib](https://joblib.readthedocs.io)
107
112
  * [lz4](https://python-lz4.readthedocs.io)
@@ -116,10 +121,9 @@ pip install pythagoras
116
121
  * [jsonpickle](https://jsonpickle.github.io)
117
122
  * [scikit-learn](https://scikit-learn.org)
118
123
  * [autopep8](https://pypi.org/project/autopep8)
119
- * [pytorch](https://pytorch.org)
120
- * [tensorflow](https://www.tensorflow.org)
121
- * [keras](https://keras.io)
122
124
  * [deepdiff](https://zepworks.com/deepdiff/current/)
125
+ * [nvidia-ml-p](https://pypi.org/project/nvidia-ml-py/)
126
+ * [uv](https://docs.astral.sh/uv/)
123
127
 
124
128
  ## Key Contacts
125
129
 
@@ -29,7 +29,7 @@ pythagoras/_050_safe_code_portals/safe_decorator.py,sha256=653b08326b5bdde180592
29
29
  pythagoras/_050_safe_code_portals/safe_portal_core_classes.py,sha256=0f414a7a6f280cddb9a9b55dbb86f7039fcc4e558147d1c1a2704df640de9ecf,2026
30
30
  pythagoras/_060_autonomous_code_portals/__init__.py,sha256=7308e1db007167f22096e0c59701784a4ecc5d5fb776ae016a50dc3b6d100285,1747
31
31
  pythagoras/_060_autonomous_code_portals/autonomous_decorators.py,sha256=762597d378d96889dce798c0837f75651061f92b797b12512c36624bb76a62f8,2895
32
- pythagoras/_060_autonomous_code_portals/autonomous_portal_core_classes.py,sha256=89ccd81b5583f263ccde98b73b12ab0d5eeaf19ee31d2c3bad186155f4dc44f8,5968
32
+ pythagoras/_060_autonomous_code_portals/autonomous_portal_core_classes.py,sha256=d07623edf1383bc8b82eae49f6c7b19e3512edc79a05f391133c05a2e02f6739,6027
33
33
  pythagoras/_060_autonomous_code_portals/names_usage_analyzer.py,sha256=9aaaf3010c37b46c4f617b0c03c1347e1848a49a29bd116bce47353154ac3d74,7474
34
34
  pythagoras/_070_protected_code_portals/__init__.py,sha256=4ef19c25acf6d10aac9aff26da903876e06d167fc274229f9126ce485a094bc9,989
35
35
  pythagoras/_070_protected_code_portals/basic_pre_validators.py,sha256=1d63cc3464c602a022e26b74a255c9539ecdb00437c48bb50a41e1e5e443f8f6,1595
@@ -37,7 +37,7 @@ pythagoras/_070_protected_code_portals/fn_arg_names_checker.py,sha256=e858ce5099
37
37
  pythagoras/_070_protected_code_portals/list_flattener.py,sha256=9a54b512ad9dc201db348e7908f5ca5f36d171ae3da433511d38023a6ba8d4b5,331
38
38
  pythagoras/_070_protected_code_portals/package_manager.py,sha256=4111d71886adcf1e8d28f3c2d3a08c8a352601297f9ab3f08a4541586ed9d376,1965
39
39
  pythagoras/_070_protected_code_portals/protected_decorators.py,sha256=956ed45870004246d77d6e364015b3a0d936bd8b919dfa9a56c97d69713a9b80,1627
40
- pythagoras/_070_protected_code_portals/protected_portal_core_classes.py,sha256=a1c4451fa648e05da0376e8ccf27e0e731cfb1d8ea707b33a4ca1f313622de94,9308
40
+ pythagoras/_070_protected_code_portals/protected_portal_core_classes.py,sha256=8bd5e15a4d863aa13a14d04f115c37ddec345964c41ae8666b49d200221f5b64,9426
41
41
  pythagoras/_070_protected_code_portals/system_utils.py,sha256=878a22110140c852b3aaf774cb0c0023458360a4ae221fef89ff3a5d02176301,2360
42
42
  pythagoras/_070_protected_code_portals/validation_succesful_const.py,sha256=602cd3598dd43a71421eb547f1e80f411e30df616deb26912a741a2898d06754,300
43
43
  pythagoras/_070_protected_code_portals/validator_fn_classes.py,sha256=4afa4bf0629f68e4b1623003272ffd7111ac9cbb739e81fde601049d19b84269,3232
@@ -60,6 +60,6 @@ pythagoras/_900_project_stats_collector/__init__.py,sha256=11a82df8184f3ed046829
60
60
  pythagoras/_900_project_stats_collector/project_analyzer.py,sha256=ba1c9c14a8d421712961c6589da937ca7e0916172197ea19ef0b7ab291718686,3574
61
61
  pythagoras/__init__.py,sha256=4cc3ed25d4a2fd64a10a9267b1555d3b8f1672fb3bf0631b522e601dcd5e30bc,1233
62
62
  pythagoras/core/__init__.py,sha256=11c3616471c79550d69a0d3b3b49a45b90087919b82477db5de99c8ebc6ba5c0,298
63
- pythagoras-0.23.2.dist-info/WHEEL,sha256=607c46fee47e440c91332c738096ff0f5e54ca3b0818ee85462dd5172a38e793,79
64
- pythagoras-0.23.2.dist-info/METADATA,sha256=139d93a0da6a9c26e7eebe95e3edaddc7bf28650dd059c6db14667c166958e80,4617
65
- pythagoras-0.23.2.dist-info/RECORD,,
63
+ pythagoras-0.23.4.dist-info/WHEEL,sha256=607c46fee47e440c91332c738096ff0f5e54ca3b0818ee85462dd5172a38e793,79
64
+ pythagoras-0.23.4.dist-info/METADATA,sha256=239e1067d35f8999e354efd4248d0b3fdd2b44c366d06732092684e0e96799a7,4775
65
+ pythagoras-0.23.4.dist-info/RECORD,,