pythagoras 0.8.4__tar.gz → 0.8.6__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.8.4/pythagoras.egg-info → pythagoras-0.8.6}/PKG-INFO +1 -1
- {pythagoras-0.8.4 → pythagoras-0.8.6}/pythagoras/_03_autonomous_functions/autonomous_funcs.py +13 -2
- {pythagoras-0.8.4 → pythagoras-0.8.6}/pythagoras/_05_mission_control/global_state_management.py +5 -4
- {pythagoras-0.8.4 → pythagoras-0.8.6/pythagoras.egg-info}/PKG-INFO +1 -1
- {pythagoras-0.8.4 → pythagoras-0.8.6}/setup.py +1 -1
- {pythagoras-0.8.4 → pythagoras-0.8.6}/LICENSE +0 -0
- {pythagoras-0.8.4 → pythagoras-0.8.6}/README.md +0 -0
- {pythagoras-0.8.4 → pythagoras-0.8.6}/pyproject.toml +0 -0
- {pythagoras-0.8.4 → pythagoras-0.8.6}/pythagoras/NEW_exception_logging.py +0 -0
- {pythagoras-0.8.4 → pythagoras-0.8.6}/pythagoras/OLD__main__.py +0 -0
- {pythagoras-0.8.4 → pythagoras-0.8.6}/pythagoras/OLD_p_cloud.py +0 -0
- {pythagoras-0.8.4 → pythagoras-0.8.6}/pythagoras/OLD_utils.py +0 -0
- {pythagoras-0.8.4 → pythagoras-0.8.6}/pythagoras/_01_foundational_objects/__init__.py +0 -0
- {pythagoras-0.8.4 → pythagoras-0.8.6}/pythagoras/_01_foundational_objects/hash_addresses.py +0 -0
- {pythagoras-0.8.4 → pythagoras-0.8.6}/pythagoras/_01_foundational_objects/hash_signature.py +0 -0
- {pythagoras-0.8.4 → pythagoras-0.8.6}/pythagoras/_01_foundational_objects/value_addresses.py +0 -0
- {pythagoras-0.8.4 → pythagoras-0.8.6}/pythagoras/_02_ordinary_functions/__init__.py +0 -0
- {pythagoras-0.8.4 → pythagoras-0.8.6}/pythagoras/_02_ordinary_functions/assert_ordinarity.py +0 -0
- {pythagoras-0.8.4 → pythagoras-0.8.6}/pythagoras/_02_ordinary_functions/check_n_positional_args.py +0 -0
- {pythagoras-0.8.4 → pythagoras-0.8.6}/pythagoras/_02_ordinary_functions/code_normalizer.py +0 -0
- {pythagoras-0.8.4 → pythagoras-0.8.6}/pythagoras/_02_ordinary_functions/code_normalizer_implementation.py +0 -0
- {pythagoras-0.8.4 → pythagoras-0.8.6}/pythagoras/_02_ordinary_functions/ordinary_decorator.py +0 -0
- {pythagoras-0.8.4 → pythagoras-0.8.6}/pythagoras/_02_ordinary_functions/ordinary_funcs.py +0 -0
- {pythagoras-0.8.4 → pythagoras-0.8.6}/pythagoras/_03_autonomous_functions/__init__.py +0 -0
- {pythagoras-0.8.4 → pythagoras-0.8.6}/pythagoras/_03_autonomous_functions/autonomicity_checks.py +0 -0
- {pythagoras-0.8.4 → pythagoras-0.8.6}/pythagoras/_03_autonomous_functions/autonomous_decorators.py +0 -0
- {pythagoras-0.8.4 → pythagoras-0.8.6}/pythagoras/_03_autonomous_functions/call_graph_explorer.py +0 -0
- {pythagoras-0.8.4 → pythagoras-0.8.6}/pythagoras/_03_autonomous_functions/default_island_singleton.py +0 -0
- {pythagoras-0.8.4 → pythagoras-0.8.6}/pythagoras/_03_autonomous_functions/names_usage_analyzer.py +0 -0
- {pythagoras-0.8.4 → pythagoras-0.8.6}/pythagoras/_04_idempotent_functions/__init__.py +0 -0
- {pythagoras-0.8.4 → pythagoras-0.8.6}/pythagoras/_04_idempotent_functions/astkeywords_dict_convertors.py +0 -0
- {pythagoras-0.8.4 → pythagoras-0.8.6}/pythagoras/_04_idempotent_functions/idempotency_checks.py +0 -0
- {pythagoras-0.8.4 → pythagoras-0.8.6}/pythagoras/_04_idempotent_functions/idempotent_decorator.py +0 -0
- {pythagoras-0.8.4 → pythagoras-0.8.6}/pythagoras/_04_idempotent_functions/idempotent_func_and_address.py +0 -0
- {pythagoras-0.8.4 → pythagoras-0.8.6}/pythagoras/_04_idempotent_functions/kw_args.py +0 -0
- {pythagoras-0.8.4 → pythagoras-0.8.6}/pythagoras/_04_idempotent_functions/process_augmented_func_src.py +0 -0
- {pythagoras-0.8.4 → pythagoras-0.8.6}/pythagoras/_05_mission_control/__events_and_exceptions_OLD__.py +0 -0
- {pythagoras-0.8.4 → pythagoras-0.8.6}/pythagoras/_05_mission_control/__init__.py +0 -0
- {pythagoras-0.8.4 → pythagoras-0.8.6}/pythagoras/_05_mission_control/events_and_exceptions_core.py +0 -0
- {pythagoras-0.8.4 → pythagoras-0.8.6}/pythagoras/_05_mission_control/summary.py +0 -0
- {pythagoras-0.8.4 → pythagoras-0.8.6}/pythagoras/_99_misc_utils/__init__.py +0 -0
- {pythagoras-0.8.4 → pythagoras-0.8.6}/pythagoras/_99_misc_utils/base_16_32_convertors.py +0 -0
- {pythagoras-0.8.4 → pythagoras-0.8.6}/pythagoras/_99_misc_utils/context_builder.py +0 -0
- {pythagoras-0.8.4 → pythagoras-0.8.6}/pythagoras/_99_misc_utils/current_date_gmt_str.py +0 -0
- {pythagoras-0.8.4 → pythagoras-0.8.6}/pythagoras/_99_misc_utils/find_in_callstack.py +0 -0
- {pythagoras-0.8.4 → pythagoras-0.8.6}/pythagoras/_99_misc_utils/function_name.py +0 -0
- {pythagoras-0.8.4 → pythagoras-0.8.6}/pythagoras/_99_misc_utils/id_examiner.py +0 -0
- {pythagoras-0.8.4 → pythagoras-0.8.6}/pythagoras/_99_misc_utils/isinstance_txt.py +0 -0
- {pythagoras-0.8.4 → pythagoras-0.8.6}/pythagoras/_99_misc_utils/long_infoname.py +0 -0
- {pythagoras-0.8.4 → pythagoras-0.8.6}/pythagoras/_99_misc_utils/notebook_checker.py +0 -0
- {pythagoras-0.8.4 → pythagoras-0.8.6}/pythagoras/_99_misc_utils/output_capturer.py +0 -0
- {pythagoras-0.8.4 → pythagoras-0.8.6}/pythagoras/_99_misc_utils/package_manager.py +0 -0
- {pythagoras-0.8.4 → pythagoras-0.8.6}/pythagoras/_99_misc_utils/random_safe_str_creator.py +0 -0
- {pythagoras-0.8.4 → pythagoras-0.8.6}/pythagoras/________OLD________/NEW_hash_address.py +0 -0
- {pythagoras-0.8.4 → pythagoras-0.8.6}/pythagoras/________OLD________/OLD_dependency_discovery.py +0 -0
- {pythagoras-0.8.4 → pythagoras-0.8.6}/pythagoras/________OLD________/OLD_environmental.py +0 -0
- {pythagoras-0.8.4 → pythagoras-0.8.6}/pythagoras/________OLD________/OLD_package_dependencies.py +0 -0
- {pythagoras-0.8.4 → pythagoras-0.8.6}/pythagoras/________OLD________/OLD_persidicts.py +0 -0
- {pythagoras-0.8.4 → pythagoras-0.8.6}/pythagoras/________OLD________/OLD_persiout.py +0 -0
- {pythagoras-0.8.4 → pythagoras-0.8.6}/pythagoras/________OLD________/OLD_persistent_dicts.py +0 -0
- {pythagoras-0.8.4 → pythagoras-0.8.6}/pythagoras/________OLD________/__init__.py +0 -0
- {pythagoras-0.8.4 → pythagoras-0.8.6}/pythagoras/________OLD________/test_package_dependencies.py +0 -0
- {pythagoras-0.8.4 → pythagoras-0.8.6}/pythagoras/__init__.py +0 -0
- {pythagoras-0.8.4 → pythagoras-0.8.6}/pythagoras/__main__.py +0 -0
- {pythagoras-0.8.4 → pythagoras-0.8.6}/pythagoras.egg-info/SOURCES.txt +0 -0
- {pythagoras-0.8.4 → pythagoras-0.8.6}/pythagoras.egg-info/dependency_links.txt +0 -0
- {pythagoras-0.8.4 → pythagoras-0.8.6}/pythagoras.egg-info/requires.txt +0 -0
- {pythagoras-0.8.4 → pythagoras-0.8.6}/pythagoras.egg-info/top_level.txt +0 -0
- {pythagoras-0.8.4 → pythagoras-0.8.6}/setup.cfg +0 -0
{pythagoras-0.8.4 → pythagoras-0.8.6}/pythagoras/_03_autonomous_functions/autonomous_funcs.py
RENAMED
@@ -274,9 +274,8 @@ class EventPoster:
|
|
274
274
|
prefix = caller_prefix + self.label
|
275
275
|
logger = EventLogger(event_log=pth.event_log
|
276
276
|
, prefix=prefix, save_context=False)
|
277
|
-
logger.log_event(**event_args)
|
278
|
-
if not self.silent:
|
279
277
|
|
278
|
+
if not self.silent:
|
280
279
|
print(30*"~")
|
281
280
|
print(f"Event '{self.label}' "
|
282
281
|
+ f"inside an {caller_type} '{caller_name}':")
|
@@ -284,5 +283,17 @@ class EventPoster:
|
|
284
283
|
print(f" {key} = {value}")
|
285
284
|
print()
|
286
285
|
|
286
|
+
label_arg_name = "event_label"
|
287
|
+
while label_arg_name in event_args:
|
288
|
+
label_arg_name += "_"
|
289
|
+
event_args[label_arg_name] = self.label
|
290
|
+
|
291
|
+
caller_arg_name = "caller_name"
|
292
|
+
while caller_arg_name in event_args:
|
293
|
+
caller_arg_name += "_"
|
294
|
+
event_args[caller_arg_name] = caller_name
|
295
|
+
|
296
|
+
logger.log_event(**event_args)
|
297
|
+
|
287
298
|
post_event: EventPosterFactory = EventPosterFactory(silent=True)
|
288
299
|
print_event: EventPosterFactory = EventPosterFactory(silent=False)
|
{pythagoras-0.8.4 → pythagoras-0.8.6}/pythagoras/_05_mission_control/global_state_management.py
RENAMED
@@ -8,6 +8,8 @@ from pythagoras._03_autonomous_functions.default_island_singleton import (
|
|
8
8
|
DefaultIslandType, DefaultIsland)
|
9
9
|
from pythagoras._05_mission_control.events_and_exceptions_core import (
|
10
10
|
register_exception_handlers, unregister_exception_handlers, pth_excepthook)
|
11
|
+
from pythagoras._99_misc_utils.notebook_checker import is_executed_in_notebook
|
12
|
+
|
11
13
|
|
12
14
|
def initialize(base_dir:str
|
13
15
|
, cloud_type:str = "local"
|
@@ -123,10 +125,9 @@ def is_correctly_initialized():
|
|
123
125
|
if not (pth.initialization_parameters["default_island_name"]
|
124
126
|
== pth.default_island_name):
|
125
127
|
return False
|
126
|
-
if
|
127
|
-
|
128
|
-
|
129
|
-
return False
|
128
|
+
if not is_executed_in_notebook():
|
129
|
+
if sys.excepthook != pth_excepthook:
|
130
|
+
return False
|
130
131
|
return True
|
131
132
|
|
132
133
|
def is_global_state_correct():
|
File without changes
|
File without changes
|
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.8.4 → pythagoras-0.8.6}/pythagoras/_01_foundational_objects/value_addresses.py
RENAMED
File without changes
|
File without changes
|
{pythagoras-0.8.4 → pythagoras-0.8.6}/pythagoras/_02_ordinary_functions/assert_ordinarity.py
RENAMED
File without changes
|
{pythagoras-0.8.4 → pythagoras-0.8.6}/pythagoras/_02_ordinary_functions/check_n_positional_args.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{pythagoras-0.8.4 → pythagoras-0.8.6}/pythagoras/_02_ordinary_functions/ordinary_decorator.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{pythagoras-0.8.4 → pythagoras-0.8.6}/pythagoras/_03_autonomous_functions/autonomicity_checks.py
RENAMED
File without changes
|
{pythagoras-0.8.4 → pythagoras-0.8.6}/pythagoras/_03_autonomous_functions/autonomous_decorators.py
RENAMED
File without changes
|
{pythagoras-0.8.4 → pythagoras-0.8.6}/pythagoras/_03_autonomous_functions/call_graph_explorer.py
RENAMED
File without changes
|
File without changes
|
{pythagoras-0.8.4 → pythagoras-0.8.6}/pythagoras/_03_autonomous_functions/names_usage_analyzer.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{pythagoras-0.8.4 → pythagoras-0.8.6}/pythagoras/_04_idempotent_functions/idempotency_checks.py
RENAMED
File without changes
|
{pythagoras-0.8.4 → pythagoras-0.8.6}/pythagoras/_04_idempotent_functions/idempotent_decorator.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{pythagoras-0.8.4 → pythagoras-0.8.6}/pythagoras/_05_mission_control/events_and_exceptions_core.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
|
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.8.4 → pythagoras-0.8.6}/pythagoras/________OLD________/OLD_dependency_discovery.py
RENAMED
File without changes
|
File without changes
|
{pythagoras-0.8.4 → pythagoras-0.8.6}/pythagoras/________OLD________/OLD_package_dependencies.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{pythagoras-0.8.4 → pythagoras-0.8.6}/pythagoras/________OLD________/OLD_persistent_dicts.py
RENAMED
File without changes
|
File without changes
|
{pythagoras-0.8.4 → pythagoras-0.8.6}/pythagoras/________OLD________/test_package_dependencies.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
|