pythagoras 0.10.11__tar.gz → 0.10.12__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.10.11/pythagoras.egg-info → pythagoras-0.10.12}/PKG-INFO +1 -1
- pythagoras-0.10.12/pythagoras/_06_swarming/output_suppressor.py +23 -0
- {pythagoras-0.10.11 → pythagoras-0.10.12/pythagoras.egg-info}/PKG-INFO +1 -1
- {pythagoras-0.10.11 → pythagoras-0.10.12}/setup.py +1 -1
- pythagoras-0.10.11/pythagoras/_06_swarming/output_suppressor.py +0 -16
- {pythagoras-0.10.11 → pythagoras-0.10.12}/LICENSE +0 -0
- {pythagoras-0.10.11 → pythagoras-0.10.12}/README.md +0 -0
- {pythagoras-0.10.11 → pythagoras-0.10.12}/pyproject.toml +0 -0
- {pythagoras-0.10.11 → pythagoras-0.10.12}/pythagoras/_01_foundational_objects/__init__.py +0 -0
- {pythagoras-0.10.11 → pythagoras-0.10.12}/pythagoras/_01_foundational_objects/base_16_32_convertors.py +0 -0
- {pythagoras-0.10.11 → pythagoras-0.10.12}/pythagoras/_01_foundational_objects/hash_addresses.py +0 -0
- {pythagoras-0.10.11 → pythagoras-0.10.12}/pythagoras/_01_foundational_objects/hash_and_random_signatures.py +0 -0
- {pythagoras-0.10.11 → pythagoras-0.10.12}/pythagoras/_01_foundational_objects/multipersidict.py +0 -0
- {pythagoras-0.10.11 → pythagoras-0.10.12}/pythagoras/_01_foundational_objects/value_addresses.py +0 -0
- {pythagoras-0.10.11 → pythagoras-0.10.12}/pythagoras/_02_ordinary_functions/__init__.py +0 -0
- {pythagoras-0.10.11 → pythagoras-0.10.12}/pythagoras/_02_ordinary_functions/assert_ordinarity.py +0 -0
- {pythagoras-0.10.11 → pythagoras-0.10.12}/pythagoras/_02_ordinary_functions/check_n_positional_args.py +0 -0
- {pythagoras-0.10.11 → pythagoras-0.10.12}/pythagoras/_02_ordinary_functions/code_normalizer.py +0 -0
- {pythagoras-0.10.11 → pythagoras-0.10.12}/pythagoras/_02_ordinary_functions/code_normalizer_implementation.py +0 -0
- {pythagoras-0.10.11 → pythagoras-0.10.12}/pythagoras/_02_ordinary_functions/function_name.py +0 -0
- {pythagoras-0.10.11 → pythagoras-0.10.12}/pythagoras/_02_ordinary_functions/ordinary_decorator.py +0 -0
- {pythagoras-0.10.11 → pythagoras-0.10.12}/pythagoras/_02_ordinary_functions/ordinary_funcs.py +0 -0
- {pythagoras-0.10.11 → pythagoras-0.10.12}/pythagoras/_03_autonomous_functions/__init__.py +0 -0
- {pythagoras-0.10.11 → pythagoras-0.10.12}/pythagoras/_03_autonomous_functions/autonomicity_checks.py +0 -0
- {pythagoras-0.10.11 → pythagoras-0.10.12}/pythagoras/_03_autonomous_functions/autonomous_decorators.py +0 -0
- {pythagoras-0.10.11 → pythagoras-0.10.12}/pythagoras/_03_autonomous_functions/autonomous_funcs.py +0 -0
- {pythagoras-0.10.11 → pythagoras-0.10.12}/pythagoras/_03_autonomous_functions/call_graph_explorer.py +0 -0
- {pythagoras-0.10.11 → pythagoras-0.10.12}/pythagoras/_03_autonomous_functions/default_island_singleton.py +0 -0
- {pythagoras-0.10.11 → pythagoras-0.10.12}/pythagoras/_03_autonomous_functions/names_usage_analyzer.py +0 -0
- {pythagoras-0.10.11 → pythagoras-0.10.12}/pythagoras/_03_autonomous_functions/pth_available_names_retriever.py +0 -0
- {pythagoras-0.10.11 → pythagoras-0.10.12}/pythagoras/_04_idempotent_functions/__init__.py +0 -0
- {pythagoras-0.10.11 → pythagoras-0.10.12}/pythagoras/_04_idempotent_functions/astkeywords_dict_convertors.py +0 -0
- {pythagoras-0.10.11 → pythagoras-0.10.12}/pythagoras/_04_idempotent_functions/idempotency_checks.py +0 -0
- {pythagoras-0.10.11 → pythagoras-0.10.12}/pythagoras/_04_idempotent_functions/idempotent_decorator.py +0 -0
- {pythagoras-0.10.11 → pythagoras-0.10.12}/pythagoras/_04_idempotent_functions/idempotent_func_address_context.py +0 -0
- {pythagoras-0.10.11 → pythagoras-0.10.12}/pythagoras/_04_idempotent_functions/kw_args.py +0 -0
- {pythagoras-0.10.11 → pythagoras-0.10.12}/pythagoras/_04_idempotent_functions/output_capturer.py +0 -0
- {pythagoras-0.10.11 → pythagoras-0.10.12}/pythagoras/_04_idempotent_functions/process_augmented_func_src.py +0 -0
- {pythagoras-0.10.11 → pythagoras-0.10.12}/pythagoras/_05_events_and_exceptions/__init__.py +0 -0
- {pythagoras-0.10.11 → pythagoras-0.10.12}/pythagoras/_05_events_and_exceptions/current_date_gmt_str.py +0 -0
- {pythagoras-0.10.11 → pythagoras-0.10.12}/pythagoras/_05_events_and_exceptions/event_posters.py +0 -0
- {pythagoras-0.10.11 → pythagoras-0.10.12}/pythagoras/_05_events_and_exceptions/execution_environment_summary.py +0 -0
- {pythagoras-0.10.11 → pythagoras-0.10.12}/pythagoras/_05_events_and_exceptions/find_in_callstack.py +0 -0
- {pythagoras-0.10.11 → pythagoras-0.10.12}/pythagoras/_05_events_and_exceptions/global_event_loggers.py +0 -0
- {pythagoras-0.10.11 → pythagoras-0.10.12}/pythagoras/_05_events_and_exceptions/notebook_checker.py +0 -0
- {pythagoras-0.10.11 → pythagoras-0.10.12}/pythagoras/_05_events_and_exceptions/type_retrievers.py +0 -0
- {pythagoras-0.10.11 → pythagoras-0.10.12}/pythagoras/_05_events_and_exceptions/uncaught_exception_handlers.py +0 -0
- {pythagoras-0.10.11 → pythagoras-0.10.12}/pythagoras/_06_swarming/__init__.py +0 -0
- {pythagoras-0.10.11 → pythagoras-0.10.12}/pythagoras/_06_swarming/background_worker.py +0 -0
- {pythagoras-0.10.11 → pythagoras-0.10.12}/pythagoras/_07_mission_control/__init__.py +0 -0
- {pythagoras-0.10.11 → pythagoras-0.10.12}/pythagoras/_07_mission_control/global_state_management.py +0 -0
- {pythagoras-0.10.11 → pythagoras-0.10.12}/pythagoras/_07_mission_control/summary.py +0 -0
- {pythagoras-0.10.11 → pythagoras-0.10.12}/pythagoras/_99_misc_utils/__init__.py +0 -0
- {pythagoras-0.10.11 → pythagoras-0.10.12}/pythagoras/_99_misc_utils/id_examiner.py +0 -0
- {pythagoras-0.10.11 → pythagoras-0.10.12}/pythagoras/_99_misc_utils/long_infoname.py +0 -0
- {pythagoras-0.10.11 → pythagoras-0.10.12}/pythagoras/_99_misc_utils/package_manager.py +0 -0
- {pythagoras-0.10.11 → pythagoras-0.10.12}/pythagoras/__init__.py +0 -0
- {pythagoras-0.10.11 → pythagoras-0.10.12}/pythagoras.egg-info/SOURCES.txt +0 -0
- {pythagoras-0.10.11 → pythagoras-0.10.12}/pythagoras.egg-info/dependency_links.txt +0 -0
- {pythagoras-0.10.11 → pythagoras-0.10.12}/pythagoras.egg-info/requires.txt +0 -0
- {pythagoras-0.10.11 → pythagoras-0.10.12}/pythagoras.egg-info/top_level.txt +0 -0
- {pythagoras-0.10.11 → pythagoras-0.10.12}/setup.cfg +0 -0
@@ -0,0 +1,23 @@
|
|
1
|
+
import os
|
2
|
+
import sys
|
3
|
+
|
4
|
+
|
5
|
+
class OutputSuppressor:
|
6
|
+
"""A context manager that suppresses stdout and stderr output."""
|
7
|
+
def __init__(self):
|
8
|
+
pass
|
9
|
+
|
10
|
+
def __enter__(self):
|
11
|
+
"""Redirect stdout and stderr to os.devnull."""
|
12
|
+
self.old_stdout = sys.stdout
|
13
|
+
self.old_stderr = sys.stderr
|
14
|
+
self.devnull = open(os.devnull, 'w')
|
15
|
+
sys.stdout = self.devnull
|
16
|
+
sys.stderr = self.devnull
|
17
|
+
return self
|
18
|
+
|
19
|
+
def __exit__(self, exc_type, exc_val, exc_tb):
|
20
|
+
sys.stdout = self.old_stdout
|
21
|
+
sys.stderr = self.old_stderr
|
22
|
+
if self.devnull:
|
23
|
+
self.devnull.close()
|
@@ -1,16 +0,0 @@
|
|
1
|
-
import os
|
2
|
-
import sys
|
3
|
-
|
4
|
-
|
5
|
-
class OutputSuppressor:
|
6
|
-
def __init__(self):
|
7
|
-
self.old_stdout = sys.stdout
|
8
|
-
self.old_stderr = sys.stderr
|
9
|
-
|
10
|
-
def __enter__(self):
|
11
|
-
sys.stdout = open(os.devnull, 'w')
|
12
|
-
sys.stderr = open(os.devnull, 'w')
|
13
|
-
|
14
|
-
def __exit__(self, exc_type, exc_val, exc_tb):
|
15
|
-
sys.stdout = self.old_stdout
|
16
|
-
sys.stderr = self.old_stderr
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{pythagoras-0.10.11 → pythagoras-0.10.12}/pythagoras/_01_foundational_objects/hash_addresses.py
RENAMED
File without changes
|
File without changes
|
{pythagoras-0.10.11 → pythagoras-0.10.12}/pythagoras/_01_foundational_objects/multipersidict.py
RENAMED
File without changes
|
{pythagoras-0.10.11 → pythagoras-0.10.12}/pythagoras/_01_foundational_objects/value_addresses.py
RENAMED
File without changes
|
File without changes
|
{pythagoras-0.10.11 → pythagoras-0.10.12}/pythagoras/_02_ordinary_functions/assert_ordinarity.py
RENAMED
File without changes
|
File without changes
|
{pythagoras-0.10.11 → pythagoras-0.10.12}/pythagoras/_02_ordinary_functions/code_normalizer.py
RENAMED
File without changes
|
File without changes
|
{pythagoras-0.10.11 → pythagoras-0.10.12}/pythagoras/_02_ordinary_functions/function_name.py
RENAMED
File without changes
|
{pythagoras-0.10.11 → pythagoras-0.10.12}/pythagoras/_02_ordinary_functions/ordinary_decorator.py
RENAMED
File without changes
|
{pythagoras-0.10.11 → pythagoras-0.10.12}/pythagoras/_02_ordinary_functions/ordinary_funcs.py
RENAMED
File without changes
|
File without changes
|
{pythagoras-0.10.11 → pythagoras-0.10.12}/pythagoras/_03_autonomous_functions/autonomicity_checks.py
RENAMED
File without changes
|
File without changes
|
{pythagoras-0.10.11 → pythagoras-0.10.12}/pythagoras/_03_autonomous_functions/autonomous_funcs.py
RENAMED
File without changes
|
{pythagoras-0.10.11 → pythagoras-0.10.12}/pythagoras/_03_autonomous_functions/call_graph_explorer.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{pythagoras-0.10.11 → pythagoras-0.10.12}/pythagoras/_04_idempotent_functions/idempotency_checks.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{pythagoras-0.10.11 → pythagoras-0.10.12}/pythagoras/_04_idempotent_functions/output_capturer.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{pythagoras-0.10.11 → pythagoras-0.10.12}/pythagoras/_05_events_and_exceptions/event_posters.py
RENAMED
File without changes
|
File without changes
|
{pythagoras-0.10.11 → pythagoras-0.10.12}/pythagoras/_05_events_and_exceptions/find_in_callstack.py
RENAMED
File without changes
|
File without changes
|
{pythagoras-0.10.11 → pythagoras-0.10.12}/pythagoras/_05_events_and_exceptions/notebook_checker.py
RENAMED
File without changes
|
{pythagoras-0.10.11 → pythagoras-0.10.12}/pythagoras/_05_events_and_exceptions/type_retrievers.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{pythagoras-0.10.11 → pythagoras-0.10.12}/pythagoras/_07_mission_control/global_state_management.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
|