pythagoras 0.20.1__tar.gz → 0.20.3__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.
Files changed (66) hide show
  1. {pythagoras-0.20.1 → pythagoras-0.20.3}/PKG-INFO +1 -1
  2. {pythagoras-0.20.1 → pythagoras-0.20.3}/pyproject.toml +1 -1
  3. {pythagoras-0.20.1 → pythagoras-0.20.3}/src/pythagoras/_020_ordinary_code_portals/code_normalizer.py +4 -2
  4. {pythagoras-0.20.1 → pythagoras-0.20.3}/src/pythagoras/_020_ordinary_code_portals/ordinary_portal_core_classes.py +1 -1
  5. {pythagoras-0.20.1 → pythagoras-0.20.3}/src/pythagoras/_060_autonomous_code_portals/autonomous_portal_core_classes.py +1 -1
  6. {pythagoras-0.20.1 → pythagoras-0.20.3}/src/pythagoras/_060_autonomous_code_portals/names_usage_analyzer.py +1 -2
  7. {pythagoras-0.20.1 → pythagoras-0.20.3}/src/pythagoras/_070_protected_code_portals/RAM_guards.py +2 -2
  8. pythagoras-0.20.3/src/pythagoras/_100_top_level_API/default_local_portal.py +6 -0
  9. {pythagoras-0.20.1 → pythagoras-0.20.3}/src/pythagoras/_800_signatures_and_converters/hash_signatures.py +1 -2
  10. {pythagoras-0.20.1 → pythagoras-0.20.3}/src/pythagoras/_800_signatures_and_converters/node_signatures.py +1 -1
  11. {pythagoras-0.20.1 → pythagoras-0.20.3}/src/pythagoras/_800_signatures_and_converters/random_signatures.py +1 -2
  12. pythagoras-0.20.1/src/pythagoras/_100_top_level_API/default_local_portal.py +0 -6
  13. {pythagoras-0.20.1 → pythagoras-0.20.3}/README.md +0 -0
  14. {pythagoras-0.20.1 → pythagoras-0.20.3}/src/pythagoras/_010_basic_portals/__init__.py +0 -0
  15. {pythagoras-0.20.1 → pythagoras-0.20.3}/src/pythagoras/_010_basic_portals/basic_portal_core_classes.py +0 -0
  16. {pythagoras-0.20.1 → pythagoras-0.20.3}/src/pythagoras/_010_basic_portals/exceptions.py +0 -0
  17. {pythagoras-0.20.1 → pythagoras-0.20.3}/src/pythagoras/_010_basic_portals/long_infoname.py +0 -0
  18. {pythagoras-0.20.1 → pythagoras-0.20.3}/src/pythagoras/_010_basic_portals/not_picklable_class.py +0 -0
  19. {pythagoras-0.20.1 → pythagoras-0.20.3}/src/pythagoras/_010_basic_portals/portal_tester.py +0 -0
  20. {pythagoras-0.20.1 → pythagoras-0.20.3}/src/pythagoras/_010_basic_portals/post_init_metaclass.py +0 -0
  21. {pythagoras-0.20.1 → pythagoras-0.20.3}/src/pythagoras/_020_ordinary_code_portals/__init__.py +0 -0
  22. {pythagoras-0.20.1 → pythagoras-0.20.3}/src/pythagoras/_020_ordinary_code_portals/function_processing.py +0 -0
  23. {pythagoras-0.20.1 → pythagoras-0.20.3}/src/pythagoras/_020_ordinary_code_portals/ordinary_decorator.py +0 -0
  24. {pythagoras-0.20.1 → pythagoras-0.20.3}/src/pythagoras/_030_data_portals/__init__.py +0 -0
  25. {pythagoras-0.20.1 → pythagoras-0.20.3}/src/pythagoras/_030_data_portals/data_portal_core_classes.py +0 -0
  26. {pythagoras-0.20.1 → pythagoras-0.20.3}/src/pythagoras/_030_data_portals/ready_and_get.py +0 -0
  27. {pythagoras-0.20.1 → pythagoras-0.20.3}/src/pythagoras/_030_data_portals/storable_decorator.py +0 -0
  28. {pythagoras-0.20.1 → pythagoras-0.20.3}/src/pythagoras/_040_logging_code_portals/__init__.py +0 -0
  29. {pythagoras-0.20.1 → pythagoras-0.20.3}/src/pythagoras/_040_logging_code_portals/exception_processing_tracking.py +0 -0
  30. {pythagoras-0.20.1 → pythagoras-0.20.3}/src/pythagoras/_040_logging_code_portals/execution_environment_summary.py +0 -0
  31. {pythagoras-0.20.1 → pythagoras-0.20.3}/src/pythagoras/_040_logging_code_portals/kw_args.py +0 -0
  32. {pythagoras-0.20.1 → pythagoras-0.20.3}/src/pythagoras/_040_logging_code_portals/logging_decorator.py +0 -0
  33. {pythagoras-0.20.1 → pythagoras-0.20.3}/src/pythagoras/_040_logging_code_portals/logging_portal_core_classes.py +0 -0
  34. {pythagoras-0.20.1 → pythagoras-0.20.3}/src/pythagoras/_040_logging_code_portals/notebook_checker.py +0 -0
  35. {pythagoras-0.20.1 → pythagoras-0.20.3}/src/pythagoras/_040_logging_code_portals/output_capturer.py +0 -0
  36. {pythagoras-0.20.1 → pythagoras-0.20.3}/src/pythagoras/_040_logging_code_portals/uncaught_exceptions.py +0 -0
  37. {pythagoras-0.20.1 → pythagoras-0.20.3}/src/pythagoras/_050_safe_code_portals/__init__.py +0 -0
  38. {pythagoras-0.20.1 → pythagoras-0.20.3}/src/pythagoras/_050_safe_code_portals/safe_decorator.py +0 -0
  39. {pythagoras-0.20.1 → pythagoras-0.20.3}/src/pythagoras/_050_safe_code_portals/safe_portal_core_classes.py +0 -0
  40. {pythagoras-0.20.1 → pythagoras-0.20.3}/src/pythagoras/_060_autonomous_code_portals/__init__.py +0 -0
  41. {pythagoras-0.20.1 → pythagoras-0.20.3}/src/pythagoras/_060_autonomous_code_portals/autonomous_decorators.py +0 -0
  42. {pythagoras-0.20.1 → pythagoras-0.20.3}/src/pythagoras/_070_protected_code_portals/GPU_guards.py +0 -0
  43. {pythagoras-0.20.1 → pythagoras-0.20.3}/src/pythagoras/_070_protected_code_portals/OK_const.py +0 -0
  44. {pythagoras-0.20.1 → pythagoras-0.20.3}/src/pythagoras/_070_protected_code_portals/__init__.py +0 -0
  45. {pythagoras-0.20.1 → pythagoras-0.20.3}/src/pythagoras/_070_protected_code_portals/fn_arg_names_checker.py +0 -0
  46. {pythagoras-0.20.1 → pythagoras-0.20.3}/src/pythagoras/_070_protected_code_portals/list_flattener.py +0 -0
  47. {pythagoras-0.20.1 → pythagoras-0.20.3}/src/pythagoras/_070_protected_code_portals/package_manager.py +0 -0
  48. {pythagoras-0.20.1 → pythagoras-0.20.3}/src/pythagoras/_070_protected_code_portals/protected_decorators.py +0 -0
  49. {pythagoras-0.20.1 → pythagoras-0.20.3}/src/pythagoras/_070_protected_code_portals/protected_portal_core_classes.py +0 -0
  50. {pythagoras-0.20.1 → pythagoras-0.20.3}/src/pythagoras/_070_protected_code_portals/python_packages_guards.py +0 -0
  51. {pythagoras-0.20.1 → pythagoras-0.20.3}/src/pythagoras/_080_pure_code_portals/__init__.py +0 -0
  52. {pythagoras-0.20.1 → pythagoras-0.20.3}/src/pythagoras/_080_pure_code_portals/pure_core_classes.py +0 -0
  53. {pythagoras-0.20.1 → pythagoras-0.20.3}/src/pythagoras/_080_pure_code_portals/pure_decorator.py +0 -0
  54. {pythagoras-0.20.1 → pythagoras-0.20.3}/src/pythagoras/_090_swarming_portals/__init__.py +0 -0
  55. {pythagoras-0.20.1 → pythagoras-0.20.3}/src/pythagoras/_090_swarming_portals/output_suppressor.py +0 -0
  56. {pythagoras-0.20.1 → pythagoras-0.20.3}/src/pythagoras/_090_swarming_portals/swarming_portals.py +0 -0
  57. {pythagoras-0.20.1 → pythagoras-0.20.3}/src/pythagoras/_090_swarming_portals/system_utils.py +0 -0
  58. {pythagoras-0.20.1 → pythagoras-0.20.3}/src/pythagoras/_100_top_level_API/__init__.py +0 -0
  59. {pythagoras-0.20.1 → pythagoras-0.20.3}/src/pythagoras/_100_top_level_API/top_level_API.py +0 -0
  60. {pythagoras-0.20.1 → pythagoras-0.20.3}/src/pythagoras/_800_signatures_and_converters/__init__.py +0 -0
  61. {pythagoras-0.20.1 → pythagoras-0.20.3}/src/pythagoras/_800_signatures_and_converters/base_16_32_convertors.py +0 -0
  62. {pythagoras-0.20.1 → pythagoras-0.20.3}/src/pythagoras/_800_signatures_and_converters/current_date_gmt_str.py +0 -0
  63. {pythagoras-0.20.1 → pythagoras-0.20.3}/src/pythagoras/_900_project_stats_collector/__init__.py +0 -0
  64. {pythagoras-0.20.1 → pythagoras-0.20.3}/src/pythagoras/_900_project_stats_collector/project_analyzer.py +0 -0
  65. {pythagoras-0.20.1 → pythagoras-0.20.3}/src/pythagoras/__init__.py +0 -0
  66. {pythagoras-0.20.1 → pythagoras-0.20.3}/src/pythagoras/core/__init__.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: pythagoras
3
- Version: 0.20.1
3
+ Version: 0.20.3
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
@@ -4,7 +4,7 @@ build-backend = "uv_build"
4
4
 
5
5
  [project]
6
6
  name = "pythagoras"
7
- version = "0.20.1"
7
+ version = "0.20.3"
8
8
  authors = [
9
9
  {name = "Volodymyr (Vlad) Pavlov", email = "vlpavlov@ieee.org"},
10
10
  ]
@@ -1,4 +1,6 @@
1
- from src.pythagoras._010_basic_portals.exceptions import NonCompliantFunction
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
- from ... import pythagoras as pth
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
- from ... import pythagoras as pth
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 src.pythagoras._020_ordinary_code_portals import (
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 ... import pythagoras as pth
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 pth.OK
9
+ return OK
10
10
 
11
11
 
12
12
  def RAM_K(limit:int) -> AutonomousFn:
@@ -0,0 +1,6 @@
1
+ from .._090_swarming_portals import SwarmingPortal
2
+ from .._010_basic_portals import get_default_portal_base_dir
3
+
4
+
5
+ def instantiate_default_local_portal():
6
+ SwarmingPortal(root_dict = get_default_portal_base_dir())
@@ -3,8 +3,7 @@ from typing import Any
3
3
 
4
4
  import joblib.hashing
5
5
 
6
- from src.pythagoras._800_signatures_and_converters.base_16_32_convertors import (
7
- convert_base16_to_base32)
6
+ from .base_16_32_convertors import convert_base16_to_base32
8
7
 
9
8
 
10
9
  hash_type: str = "sha256"
@@ -1,6 +1,6 @@
1
1
  import uuid, platform, getpass
2
2
 
3
- from src.pythagoras._800_signatures_and_converters.hash_signatures import get_hash_signature
3
+ from .hash_signatures import get_hash_signature
4
4
 
5
5
 
6
6
  def get_node_signature() -> str:
@@ -1,7 +1,6 @@
1
1
  import uuid
2
2
 
3
- from src.pythagoras._800_signatures_and_converters.base_16_32_convertors import (
4
- convert_int_to_base32)
3
+ from .base_16_32_convertors import convert_int_to_base32
5
4
 
6
5
  max_signature_length: int = 22
7
6
 
@@ -1,6 +0,0 @@
1
- from src.pythagoras._090_swarming_portals import SwarmingPortal
2
- from src.pythagoras._010_basic_portals import get_default_portal_base_dir
3
-
4
-
5
- def instantiate_default_local_portal():
6
- SwarmingPortal(root_dict = get_default_portal_base_dir())
File without changes