pythagoras 0.24.7__py3-none-any.whl → 0.24.8__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.
@@ -39,6 +39,9 @@ class LoggingFn(StorableFn):
39
39
  exceptions, and custom events. It also supports an excessive_logging mode
40
40
  that enables storing rich per-call artifacts.
41
41
 
42
+ A logging function can only be called with keyword arguments.
43
+ It can't be called with positional arguments.
44
+
42
45
  Attributes:
43
46
  _auxiliary_config_params_at_init (dict): Internal configuration store
44
47
  inherited from StorableFn. Includes the 'excessive_logging' flag
@@ -23,6 +23,9 @@ Autonomous functions can have nested functions and classes.
23
23
  Only ordinary functions can be autonomous. Asynchronous functions, closures,
24
24
  class methods, and lambda functions cannot be autonomous.
25
25
 
26
+ An autonomous function can only be called with keyword arguments.
27
+ It can't be called with positional arguments.
28
+
26
29
  Autonomous functions support partial application of arguments:
27
30
  the process of pre-filling some arguments of a function,
28
31
  producing a new autonomous function that takes the remaining arguments.
@@ -4,6 +4,10 @@ A pure function is a protected function that has no side effects and
4
4
  always returns the same result if it is called multiple times
5
5
  with the same arguments.
6
6
 
7
+ A pure function is an autonomous function, which means that it doesn't
8
+ depend on external imports or definitions. It also means it can only be called
9
+ with keyword arguments; positional arguments are not allowed.
10
+
7
11
  This subpackage defines a decorator which is used to inform Pythagoras that
8
12
  a function is intended to be pure: @pure().
9
13
 
@@ -17,7 +21,7 @@ changes in the source code of the function. If the source code of a pure
17
21
  function changes, the function is executed again on the next call.
18
22
  However, the previously cached results are still available
19
23
  for the old version of the function. Only changes in the function's
20
- source code are tracked.
24
+ source code are tracked, but not in the packages it is using.
21
25
  """
22
26
 
23
27
  from .pure_core_classes import *
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: pythagoras
3
- Version: 0.24.7
3
+ Version: 0.24.8
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
@@ -19,7 +19,7 @@ pythagoras/_040_logging_code_portals/exception_processing_tracking.py,sha256=DH1
19
19
  pythagoras/_040_logging_code_portals/execution_environment_summary.py,sha256=-0ynNibGfRh3J1Sq-N9j7eN1FlGvetEBiW0L4K_qJ30,3813
20
20
  pythagoras/_040_logging_code_portals/kw_args.py,sha256=j3Iao80gTBjPx6dk1Azd9D8pcdQ3QdfpkQtQq-4ATV0,4954
21
21
  pythagoras/_040_logging_code_portals/logging_decorator.py,sha256=-BGduV2U5SJ40qW8afRCUMrzYv5Pf_CgB4HlSEGDmlA,1766
22
- pythagoras/_040_logging_code_portals/logging_portal_core_classes.py,sha256=R--DuvPGKzEB4ojWrmmuVU2SezUBVrSXrmdFjnrf72g,34977
22
+ pythagoras/_040_logging_code_portals/logging_portal_core_classes.py,sha256=PPtYlI9PB9N3A8WrC5HrLD7MijofZWqUpaQgbwOqEN4,35094
23
23
  pythagoras/_040_logging_code_portals/notebook_checker.py,sha256=qO7zfMC20hM4tSxlqB7gy6WI4imWX4Xl7ojSwgeVu0A,871
24
24
  pythagoras/_040_logging_code_portals/output_capturer.py,sha256=ohCp6qqxL7IuJGfnFuCIgj5Oc4HmC8c7uZGE_uzWkZk,4216
25
25
  pythagoras/_040_logging_code_portals/uncaught_exceptions.py,sha256=vQrY1mOYdAeKaCmCCY1MUy4xoXurQkfwQuDA43giPl0,4564
@@ -27,7 +27,7 @@ pythagoras/_050_safe_code_portals/__init__.py,sha256=YR-V6W2WZ17SjqmTyY2xdY16xTV
27
27
  pythagoras/_050_safe_code_portals/safe_decorator.py,sha256=AYvX7-km2reRMZ55ndO_2IS2SfHbnpyFv79AVwGg7Po,1681
28
28
  pythagoras/_050_safe_code_portals/safe_portal_core_classes.py,sha256=naY4R91N5bcCq8C_-YeBqhrr6UG8zkEQ5t8C3O8ytOw,5673
29
29
  pythagoras/_060_autonomous_code_portals/__init__.py,sha256=hnv_dxxRx8c7IDf1QgVYHfYoeVAz8oD9K0oWI_o9N20,1704
30
- pythagoras/_060_autonomous_code_portals/autonomous_decorators.py,sha256=Y5zKrCK7ROY3_0RAIz6yf47Udsr0m3Co1f1isdybBcQ,4042
30
+ pythagoras/_060_autonomous_code_portals/autonomous_decorators.py,sha256=RFNHplYQR9L2w7YxDu7A2nqpvkReAF9cEU-76neXkNQ,4155
31
31
  pythagoras/_060_autonomous_code_portals/autonomous_portal_core_classes.py,sha256=Nj4TPML94eS0WThoOfaqZhlPJu6RttvDg69VT86WPlg,9881
32
32
  pythagoras/_060_autonomous_code_portals/names_usage_analyzer.py,sha256=arfAuFBY4Dx9Zmf0b3x-axrd35QY2Kg_2jHJC8ek3p8,11977
33
33
  pythagoras/_070_protected_code_portals/__init__.py,sha256=TvGcJaz20Qqsmv8m2pA4duBtFn_CdCKfkSbOSFoJS8k,989
@@ -39,7 +39,7 @@ pythagoras/_070_protected_code_portals/protected_decorators.py,sha256=BrVcFiMHR4
39
39
  pythagoras/_070_protected_code_portals/protected_portal_core_classes.py,sha256=nclgUd02KySQ1ffFSvLWMbonGcbq0SpJy2x3jLw5sAU,23419
40
40
  pythagoras/_070_protected_code_portals/system_utils.py,sha256=Uv111FaO33xAA9wZ2iwtW8Gf-FXJBP2ld1sMBmvsHdo,5124
41
41
  pythagoras/_070_protected_code_portals/validation_succesful_const.py,sha256=DrM-Mf6dDLFJ7AmfzntD39Z23YMFfF6am78XU54AlnM,577
42
- pythagoras/_080_pure_code_portals/__init__.py,sha256=OI7836lLHT51SYdFfmWp4GdGRgcAkpLiAj-Zj_g2Gxo,1052
42
+ pythagoras/_080_pure_code_portals/__init__.py,sha256=m9fC8hK4ve5VOJJKywAbUcyZJ9v5KiovI0O-HsXZHCg,1302
43
43
  pythagoras/_080_pure_code_portals/pure_core_classes.py,sha256=GniCEvJtEwYsqIxtz0QVh8wcgTHoisVuBKkIJKkz144,26381
44
44
  pythagoras/_080_pure_code_portals/pure_decorator.py,sha256=rmvtw_RpTbLjPTfy_2rdjfNSvV735hzTV_9q3drQKew,4036
45
45
  pythagoras/_080_pure_code_portals/recursion_pre_validator.py,sha256=qrVBK0U6YM08tQ4rsTlKNkGbqmF3Wj2yGrnWLCAP7BY,3461
@@ -59,6 +59,6 @@ pythagoras/_900_project_stats_collector/__init__.py,sha256=Eagt-BhPPtBGgpMywx2lk
59
59
  pythagoras/_900_project_stats_collector/project_analyzer.py,sha256=uhycFKjUIXEpYcZYnak3yn4JFhchl-oZ7wt6spFxhoY,3574
60
60
  pythagoras/__init__.py,sha256=TMPtJdSi_WShCpJnsVVdO48Wcvs78GMbUi5gHc1eMLw,1233
61
61
  pythagoras/core/__init__.py,sha256=yfamQZNt_7FL7vfxSoCTZq2ZL6rupp6qzcp9CHhTj3E,2674
62
- pythagoras-0.24.7.dist-info/WHEEL,sha256=X16MKk8bp2DRsAuyteHJ-9qOjzmnY0x1aj0P1ftqqWA,78
63
- pythagoras-0.24.7.dist-info/METADATA,sha256=7Vyfi5r-mo09_YTa7SKy11w9RyU_-38LXJggrJH7Dwg,7467
64
- pythagoras-0.24.7.dist-info/RECORD,,
62
+ pythagoras-0.24.8.dist-info/WHEEL,sha256=X16MKk8bp2DRsAuyteHJ-9qOjzmnY0x1aj0P1ftqqWA,78
63
+ pythagoras-0.24.8.dist-info/METADATA,sha256=yrcNe2LC_-vrLl3BsyPGTyPOJPjmjBMByp2JqDjXpZ4,7467
64
+ pythagoras-0.24.8.dist-info/RECORD,,