whatap-python 1.8.1__tar.gz → 1.8.2__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.
Potentially problematic release.
This version of whatap-python might be problematic. Click here for more details.
- {whatap_python-1.8.1 → whatap_python-1.8.2}/PKG-INFO +1 -1
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/__init__.py +27 -14
- whatap_python-1.8.2/whatap/build.py +4 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap_python.egg-info/PKG-INFO +1 -1
- whatap_python-1.8.1/whatap/build.py +0 -4
- {whatap_python-1.8.1 → whatap_python-1.8.2}/README.md +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/setup.cfg +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/setup.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/LICENSE +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/README.rst +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/__main__.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/agent/darwin/amd64/whatap_python +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/agent/darwin/arm64/whatap_python +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/agent/linux/amd64/whatap_python +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/agent/linux/arm64/whatap_python +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/bootstrap/__init__.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/bootstrap/sitecustomize.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/conf/__init__.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/conf/configuration.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/conf/configure.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/conf/license.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/control/__init__.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/counter/__init__.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/counter/counter_manager.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/counter/tasks/__init__.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/counter/tasks/openfiledescriptor.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/io/__init__.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/io/data_inputx.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/io/data_outputx.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/net/__init__.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/net/async_sender.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/net/packet_enum.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/net/packet_type_enum.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/net/param_def.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/net/stackhelper.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/net/udp_session.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/net/udp_thread.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/pack/__init__.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/pack/logSinkPack.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/pack/pack.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/pack/pack_enum.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/pack/tagCountPack.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/scripts/__init__.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/trace/__init__.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/trace/mod/__init__.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/trace/mod/amqp_kombu.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/trace/mod/amqp_pika.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/trace/mod/application_bottle.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/trace/mod/application_celery.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/trace/mod/application_cherrypy.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/trace/mod/application_django.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/trace/mod/application_django_asgi.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/trace/mod/application_django_py3.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/trace/mod/application_fastapi.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/trace/mod/application_flask.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/trace/mod/application_frappe.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/trace/mod/application_graphql.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/trace/mod/application_nameko.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/trace/mod/application_starlette.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/trace/mod/application_tornado.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/trace/mod/application_wsgi.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/trace/mod/database_cxoracle.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/trace/mod/database_mongo.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/trace/mod/database_mysql.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/trace/mod/database_postgresql.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/trace/mod/database_redis.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/trace/mod/database_toolkit.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/trace/mod/email_smtp.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/trace/mod/httpc_django.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/trace/mod/httpc_httplib.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/trace/mod/httpc_requests.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/trace/mod/httpc_urllib3.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/trace/mod/logging.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/trace/mod/plugin.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/trace/simple_trace_context.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/trace/trace_context.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/trace/trace_context_manager.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/trace/trace_import.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/trace/trace_module_definition.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/util/__init__.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/util/bit_util.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/util/cardinality/__init__.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/util/cardinality/hyperloglog.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/util/cardinality/murmurhash.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/util/cardinality/registerset.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/util/compare_util.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/util/date_util.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/util/debug_util.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/util/escape_literal_sql.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/util/hash_util.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/util/hexa32.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/util/int_set.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/util/ip_util.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/util/keygen.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/util/linked_list.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/util/linked_map.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/util/metering_util.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/util/request_double_queue.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/util/request_queue.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/util/string_util.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/util/throttle_util.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/util/userid_util.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/value/__init__.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/value/blob_value.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/value/boolean_value.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/value/decimal_value.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/value/double_summary.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/value/double_value.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/value/float_array.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/value/float_value.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/value/int_array.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/value/ip4_value.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/value/list_value.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/value/long_array.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/value/long_summary.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/value/map_value.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/value/null_value.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/value/number_value.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/value/summary_value.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/value/text_array.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/value/text_hash_value.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/value/text_value.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/value/value.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/value/value_enum.py +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap/whatap.conf +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap_python.egg-info/SOURCES.txt +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap_python.egg-info/dependency_links.txt +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap_python.egg-info/entry_points.txt +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap_python.egg-info/not-zip-safe +0 -0
- {whatap_python-1.8.1 → whatap_python-1.8.2}/whatap_python.egg-info/top_level.txt +0 -0
|
@@ -8,7 +8,6 @@ from whatap import build
|
|
|
8
8
|
from whatap.util.date_util import DateUtil
|
|
9
9
|
import threading
|
|
10
10
|
import builtins
|
|
11
|
-
import configparser
|
|
12
11
|
|
|
13
12
|
__version__ = build.version
|
|
14
13
|
|
|
@@ -49,19 +48,33 @@ LOG_FILE_NAME = 'whatap-hook.log'
|
|
|
49
48
|
|
|
50
49
|
isFrappeCommands = "get-frappe-commands" in sys.argv if hasattr(sys, "argv") else False
|
|
51
50
|
|
|
52
|
-
|
|
51
|
+
def read_ignore_whatap_stdout():
|
|
52
|
+
ignore_whatap_stdout = 'false'
|
|
53
|
+
home = os.environ.get('WHATAP_HOME', '.')
|
|
54
|
+
whatap_config = os.path.join(home, 'whatap.conf')
|
|
55
|
+
try:
|
|
56
|
+
with open(whatap_config) as f:
|
|
57
|
+
for raw in f:
|
|
58
|
+
line = raw.strip()
|
|
59
|
+
if not line or line.startswith('#'):
|
|
60
|
+
continue
|
|
61
|
+
if line.startswith('ignore_whatap_stdout'):
|
|
62
|
+
parts = line.split('=', 1)
|
|
63
|
+
if len(parts) == 2:
|
|
64
|
+
ignore_whatap_stdout = parts[1].strip()
|
|
65
|
+
break
|
|
66
|
+
return ignore_whatap_stdout
|
|
53
67
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
print('WHATAP : WHATAP.CONF READ ERROR')
|
|
68
|
+
except FileNotFoundError:
|
|
69
|
+
return ignore_whatap_stdout
|
|
70
|
+
|
|
71
|
+
except Exception as e:
|
|
72
|
+
print(f'WHATAP: config parse error ({e!r})')
|
|
73
|
+
return ignore_whatap_stdout
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
ignore_whatap_stdout = read_ignore_whatap_stdout()
|
|
65
78
|
|
|
66
79
|
|
|
67
80
|
|
|
@@ -70,7 +83,7 @@ original_print = builtins.print
|
|
|
70
83
|
def print_option(func):
|
|
71
84
|
def wrapper(*args, **kwargs):
|
|
72
85
|
|
|
73
|
-
if(
|
|
86
|
+
if(ignore_whatap_stdout == 'false'):
|
|
74
87
|
result = func(*args, **kwargs)
|
|
75
88
|
else:
|
|
76
89
|
result = None
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|