pythagoras 0.53.2__py3-none-any.whl → 0.53.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.
@@ -20,4 +20,5 @@ from .current_date_gmt_str import *
20
20
  from .hash_signature import *
21
21
  from .node_signature import *
22
22
  from .random_signature import *
23
- from .long_infoname import *
23
+ from .long_infoname import *
24
+ from .reimported_objects import *
@@ -0,0 +1,4 @@
1
+ from mixinforge import install_package as install_package
2
+ from mixinforge import uninstall_package as uninstall_package
3
+ from mixinforge import is_package_installed as is_package_installed
4
+ from mixinforge import is_valid_env_name as is_valid_env_name
@@ -28,6 +28,4 @@ from .protected_portal_core_classes import *
28
28
  from .protected_decorators import *
29
29
  from .system_resources_info_getters import *
30
30
  from .basic_pre_validators import *
31
- from mixinforge import install_package as install_package
32
- from mixinforge import uninstall_package as uninstall_package
33
- from mixinforge import is_package_installed as is_package_installed
31
+
@@ -24,6 +24,7 @@ from typing import TYPE_CHECKING
24
24
 
25
25
  from .._350_protected_code_portals import SimplePreValidatorFn
26
26
  from .validation_succesful_const import ValidationSuccessFlag
27
+ from .._110_supporting_utilities import is_valid_env_name
27
28
 
28
29
  # The validator functions below use `pth` and `self` which are injected into
29
30
  # their global namespace at runtime by the portal framework (see module docstring).
@@ -207,9 +208,9 @@ def required_environment_variables(*names) -> list[SimplePreValidatorFn]:
207
208
  raise TypeError("All environment variable names must be strings")
208
209
  if len(name)==0:
209
210
  raise ValueError("Environment variable name cannot be empty")
210
- if not all(c.isalnum() or c == '_' for c in name):
211
+ if not is_valid_env_name(name):
211
212
  raise ValueError(f"Environment variable name '{name}' "
212
- f"can only contain letters, numbers, and underscores")
213
+ "is not a valid environment variable name.")
213
214
 
214
215
  validators = []
215
216
  for name in names:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pythagoras
3
- Version: 0.53.2
3
+ Version: 0.53.3
4
4
  Summary: Planet-scale distributed computing in Python.
5
5
  Project-URL: Homepage, https://github.com/pythagoras-dev/pythagoras
6
6
  Author-email: "Volodymyr (Vlad) Pavlov" <vlpavlov@ieee.org>
@@ -310,11 +310,11 @@ pip install pythagoras
310
310
  <!-- MIXINFORGE_STATS_START -->
311
311
  | Metric | Main code | Unit Tests | Total |
312
312
  |--------|-----------|------------|-------|
313
- | Lines Of Code (LOC) | 11174 | 16041 | 27215 |
314
- | Source Lines Of Code (SLOC) | 4411 | 9770 | 14181 |
313
+ | Lines Of Code (LOC) | 11178 | 16041 | 27219 |
314
+ | Source Lines Of Code (SLOC) | 4414 | 9770 | 14184 |
315
315
  | Classes | 53 | 48 | 101 |
316
316
  | Functions / Methods | 471 | 1285 | 1756 |
317
- | Files | 61 | 224 | 285 |
317
+ | Files | 62 | 224 | 286 |
318
318
  <!-- MIXINFORGE_STATS_END -->
319
319
 
320
320
  ## Contributing
@@ -1,7 +1,7 @@
1
1
  pythagoras/__init__.py,sha256=iZZTV16MKWUpOA9ZZ1tcJcEJz9x9RMuboKSAv93gZLw,1335
2
2
  pythagoras/_version_info.py,sha256=2Ri_s5aKA09m3lqtgQfQWfkatU5rZHdai-vp-phHFlQ,204
3
3
  pythagoras/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
- pythagoras/_110_supporting_utilities/__init__.py,sha256=v7UqoepIdvL-9dH10XmK_OoM12NbYu5CEsU1I24wgpU,1031
4
+ pythagoras/_110_supporting_utilities/__init__.py,sha256=QgKILgPpI3EeDOBNdhnXdAFB6gp0_arUgTyZ5-OZndU,1065
5
5
  pythagoras/_110_supporting_utilities/base_16_32_converters.py,sha256=nB4yqy0quyivgcPGBIv4DWUOcUWKIitZw_62iCWJKjo,2849
6
6
  pythagoras/_110_supporting_utilities/constants_for_signatures_and_converters.py,sha256=lgub23NNV1GWXLMFRyWuOFvilTMijq1teqUaS2hWUMo,1722
7
7
  pythagoras/_110_supporting_utilities/current_date_gmt_str.py,sha256=5KpshqajfSGDiCufJiyx1UCbkQeiFJogF94OmVe82tw,1167
@@ -9,6 +9,7 @@ pythagoras/_110_supporting_utilities/hash_signature.py,sha256=pTxWaUYw51axAWVs2j
9
9
  pythagoras/_110_supporting_utilities/long_infoname.py,sha256=117W8-hJV5Gs3Zbb1bbS4k39ftZkp6zJY38hoqteuLE,2653
10
10
  pythagoras/_110_supporting_utilities/node_signature.py,sha256=Ca4omy8dQw8ByU9qoW8dXxRIrhcmvvIQW9LbpgT2A5A,11715
11
11
  pythagoras/_110_supporting_utilities/random_signature.py,sha256=HHIWneMhVeITWLgQDtkreOll0WnpinNUc0RtKr7YuUg,1029
12
+ pythagoras/_110_supporting_utilities/reimported_objects.py,sha256=_-l4ff4FIpA8yY1TWu-CmVmPDhgnYW2soZJ7JgCIujE,249
12
13
  pythagoras/_210_basic_portals/__init__.py,sha256=YC29xKeHRY15maoLId8t2ip7snAJekEEWtRTT1xW-zw,972
13
14
  pythagoras/_210_basic_portals/basic_portal_accessors.py,sha256=__0UaTvDh0bPJ3lf5p3Kz6W3DATeZ2jeaBWJF9SbCs8,3727
14
15
  pythagoras/_210_basic_portals/basic_portal_core_classes.py,sha256=s81i6B1xndaNlzeKOyTuUkWmSWa1oYnAwUs-K5WRhmw,35202
@@ -41,8 +42,8 @@ pythagoras/_340_autonomous_code_portals/__init__.py,sha256=mD7whwIl0xKbjYUOdW_vG
41
42
  pythagoras/_340_autonomous_code_portals/autonomous_decorators.py,sha256=XHm1IImrYfUorsmYZqy_fTPqikQ_J9_PPIclhJtemKw,5056
42
43
  pythagoras/_340_autonomous_code_portals/autonomous_portal_core_classes.py,sha256=tT8WUr98__irTDKerK8bE38R5OuWVFdWQp1PanTfQHM,15062
43
44
  pythagoras/_340_autonomous_code_portals/names_usage_analyzer.py,sha256=xl4QNUnZCjH34_E7FTRBvtwjBo09FylYuUwYS14O2I0,26904
44
- pythagoras/_350_protected_code_portals/__init__.py,sha256=5KD8TeRk8lVij2YtEvS8uBWYl-kQPnUTHPqYvGEDcwo,1439
45
- pythagoras/_350_protected_code_portals/basic_pre_validators.py,sha256=bbVovCEcwUCR1DmtS1HB1U8JE7v8lsBC4r6n0nrigMI,7883
45
+ pythagoras/_350_protected_code_portals/__init__.py,sha256=lgFow8tin33OB5Sul_TUlMrS1WhvBx5Zhhy63JFw940,1252
46
+ pythagoras/_350_protected_code_portals/basic_pre_validators.py,sha256=z6xyzvNRRwWdnWz3mJSgShMIWujDu1dNKje7GUe4mss,7912
46
47
  pythagoras/_350_protected_code_portals/fn_arg_names_checker.py,sha256=dndnpXvy-10zM7M_epRZQp9OSZSKXQK158DCTzRbWWg,2056
47
48
  pythagoras/_350_protected_code_portals/protected_decorators.py,sha256=E9zZ5UL6LPkw8h2dfKcBYR_dd_72jaexWa1zZLxHJz8,4323
48
49
  pythagoras/_350_protected_code_portals/protected_portal_core_classes.py,sha256=_nOtMM_b-GOIkblnr1VcxY38kKJwskGG3m280oSmAZs,22782
@@ -60,7 +61,7 @@ pythagoras/_800_top_level_API/__init__.py,sha256=Jt6VWVCBygqnwl7_-s-jhdYp6masO_S
60
61
  pythagoras/_800_top_level_API/default_local_portal.py,sha256=SbsEJHT4dW2zcXS0cO7hU5XvW0U1J7EYGXDARdiScLw,378
61
62
  pythagoras/_800_top_level_API/top_level_API.py,sha256=bFB4Lm3O0670Lau0fmOjPs3bvtjI8Vj3I3HUblGEIHk,909
62
63
  pythagoras/core/__init__.py,sha256=9eWnFtzimskGXJipEdDINaR6Ua7RQTZdc3Iq6uejstg,2778
63
- pythagoras-0.53.2.dist-info/METADATA,sha256=7O3LG038tmH_GYupUpdQACLQUMPdZ4EgpAh5gZN6VnQ,13471
64
- pythagoras-0.53.2.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
65
- pythagoras-0.53.2.dist-info/licenses/LICENSE,sha256=8lgeIt2o6-RcT-R9bh0nQ-fvg9hVoqO4626xJqSSyGM,1114
66
- pythagoras-0.53.2.dist-info/RECORD,,
64
+ pythagoras-0.53.3.dist-info/METADATA,sha256=kyFC_ghOn6oM_jPRfzHgP6C_OdrjeDUCPoTxc8lO4sk,13471
65
+ pythagoras-0.53.3.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
66
+ pythagoras-0.53.3.dist-info/licenses/LICENSE,sha256=8lgeIt2o6-RcT-R9bh0nQ-fvg9hVoqO4626xJqSSyGM,1114
67
+ pythagoras-0.53.3.dist-info/RECORD,,