UniversalFunctions 0.1.1__tar.gz → 1.0.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.
- {universalfunctions-0.1.1/UniversalFunctions.egg-info → universalfunctions-1.0.0}/PKG-INFO +1 -1
- {universalfunctions-0.1.1 → universalfunctions-1.0.0}/UF/HelperFunctions.py +10 -1
- universalfunctions-1.0.0/UF/__init__.py +74 -0
- {universalfunctions-0.1.1 → universalfunctions-1.0.0/UniversalFunctions.egg-info}/PKG-INFO +1 -1
- {universalfunctions-0.1.1 → universalfunctions-1.0.0}/pyproject.toml +1 -1
- universalfunctions-0.1.1/UF/__init__.py +0 -19
- {universalfunctions-0.1.1 → universalfunctions-1.0.0}/LICENSE +0 -0
- {universalfunctions-0.1.1 → universalfunctions-1.0.0}/README.md +0 -0
- {universalfunctions-0.1.1 → universalfunctions-1.0.0}/UF/ClassToDict.py +0 -0
- {universalfunctions-0.1.1 → universalfunctions-1.0.0}/UF/DecoratorArchive.py +0 -0
- {universalfunctions-0.1.1 → universalfunctions-1.0.0}/UF/GetVariable.py +0 -0
- {universalfunctions-0.1.1 → universalfunctions-1.0.0}/UF/StringCheck.py +0 -0
- {universalfunctions-0.1.1 → universalfunctions-1.0.0}/UF/Validators/QuantumFuncValidators.py +0 -0
- {universalfunctions-0.1.1 → universalfunctions-1.0.0}/UF/Validators/QuantumValidators.py +0 -0
- {universalfunctions-0.1.1 → universalfunctions-1.0.0}/UF/Validators/ValidationClasses.py +0 -0
- {universalfunctions-0.1.1 → universalfunctions-1.0.0}/UF/Validators/__init__.py +0 -0
- {universalfunctions-0.1.1 → universalfunctions-1.0.0}/UniversalFunctions.egg-info/SOURCES.txt +0 -0
- {universalfunctions-0.1.1 → universalfunctions-1.0.0}/UniversalFunctions.egg-info/dependency_links.txt +0 -0
- {universalfunctions-0.1.1 → universalfunctions-1.0.0}/UniversalFunctions.egg-info/top_level.txt +0 -0
- {universalfunctions-0.1.1 → universalfunctions-1.0.0}/setup.cfg +0 -0
- {universalfunctions-0.1.1 → universalfunctions-1.0.0}/tests/__init__.py +0 -0
- {universalfunctions-0.1.1 → universalfunctions-1.0.0}/tests/test_ClassToDict.py +0 -0
|
@@ -11,7 +11,7 @@ range_f -> acts like the conventional range function except for that this takes
|
|
|
11
11
|
|
|
12
12
|
from typing import Any, Annotated
|
|
13
13
|
from collections.abc import Generator
|
|
14
|
-
from math import sqrt, sin, radians, cos
|
|
14
|
+
from math import sqrt, sin, radians, cos, asin, degrees
|
|
15
15
|
from .GetVariable import get_num
|
|
16
16
|
from .DecoratorArchive import cls_deco_superposition
|
|
17
17
|
from .ClassToDict import classes_to_dict
|
|
@@ -107,6 +107,15 @@ def cosine(angle: Real) -> Real:
|
|
|
107
107
|
"""
|
|
108
108
|
return cos(radians(angle))
|
|
109
109
|
|
|
110
|
+
@qtm_validation_decorator
|
|
111
|
+
def asine(angle: Real) -> Real:
|
|
112
|
+
"""
|
|
113
|
+
Calculates the asine of a given angle
|
|
114
|
+
:param angle: real value
|
|
115
|
+
:return: asine value
|
|
116
|
+
"""
|
|
117
|
+
return degrees(asin(angle))
|
|
118
|
+
|
|
110
119
|
@qtm_validation_decorator
|
|
111
120
|
def range_f(start: Real, stop: Real, step: Annotated[Real, Positive()]) -> Generator[Real,Any,None]:
|
|
112
121
|
"""
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Welcome to the bridge between the Quantum Dimension and Python
|
|
3
|
+
|
|
4
|
+
Here you will be able to explore the lower floors of the upper software!
|
|
5
|
+
|
|
6
|
+
Nevertheless, be aware, even though you may use the reusable functions as much as you want,
|
|
7
|
+
not only do you have to credit the author, but also make sure you DO NOT change anything unless you
|
|
8
|
+
have become an official contributor.
|
|
9
|
+
|
|
10
|
+
__________ Quantum Dimension __________
|
|
11
|
+
|
|
12
|
+
Quantum Turtle Mechanics: an extremely specialized sector where the author decided to implement
|
|
13
|
+
functions such as qtm_validation_decorator. This is a decorator which one can apply to a function to
|
|
14
|
+
make sure the Wave Function of each entered variable collapses into one.
|
|
15
|
+
|
|
16
|
+
Classical Turtle Mechanics: also a specialized sector, where the functions are closer to 'normal' Python
|
|
17
|
+
functions. These are still extremely important to the rest of the main package and must therefore
|
|
18
|
+
not be changed!
|
|
19
|
+
"""
|
|
20
|
+
|
|
21
|
+
from .ClassToDict import classes_to_dict
|
|
22
|
+
from .DecoratorArchive import deco_superposition, cls_deco_superposition
|
|
23
|
+
from .GetVariable import get_num
|
|
24
|
+
from .HelperFunctions import (
|
|
25
|
+
helper,
|
|
26
|
+
HelperFunctions,
|
|
27
|
+
sine,
|
|
28
|
+
cosine,
|
|
29
|
+
asine,
|
|
30
|
+
range_f,
|
|
31
|
+
)
|
|
32
|
+
from .StringCheck import get_str
|
|
33
|
+
from .Validators.ValidationClasses import (
|
|
34
|
+
TypeValidate,
|
|
35
|
+
Positive,
|
|
36
|
+
int_validate,
|
|
37
|
+
str_validate,
|
|
38
|
+
real_validate,
|
|
39
|
+
LessThan,
|
|
40
|
+
LessOrEqual,
|
|
41
|
+
GreaterThan,
|
|
42
|
+
GreaterOrEqual,
|
|
43
|
+
TupleValidate,
|
|
44
|
+
)
|
|
45
|
+
from .Validators.QuantumFuncValidators import qtm_validation_decorator, qtm_func_validator
|
|
46
|
+
from .Validators.QuantumValidators import qtm_constr_validator, qtm_lt_validator
|
|
47
|
+
|
|
48
|
+
__all__ = [
|
|
49
|
+
"classes_to_dict",
|
|
50
|
+
"deco_superposition",
|
|
51
|
+
"cls_deco_superposition",
|
|
52
|
+
"get_num",
|
|
53
|
+
"helper",
|
|
54
|
+
"HelperFunctions",
|
|
55
|
+
"sine",
|
|
56
|
+
"cosine",
|
|
57
|
+
"asine",
|
|
58
|
+
"range_f",
|
|
59
|
+
"get_str",
|
|
60
|
+
"TypeValidate",
|
|
61
|
+
"Positive",
|
|
62
|
+
"int_validate",
|
|
63
|
+
"str_validate",
|
|
64
|
+
"real_validate",
|
|
65
|
+
"LessThan",
|
|
66
|
+
"LessOrEqual",
|
|
67
|
+
"GreaterThan",
|
|
68
|
+
"GreaterOrEqual",
|
|
69
|
+
"TupleValidate",
|
|
70
|
+
"qtm_validation_decorator",
|
|
71
|
+
"qtm_func_validator",
|
|
72
|
+
"qtm_constr_validator",
|
|
73
|
+
"qtm_lt_validator"
|
|
74
|
+
]
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "UniversalFunctions"
|
|
7
|
-
version = "0.
|
|
7
|
+
version = "1.0.0"
|
|
8
8
|
description = "A Python utility library providing foundational functions, validators, and infrastructure."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.14"
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"""
|
|
2
|
-
Welcome to the bridge between the Quantum Dimension and Python
|
|
3
|
-
|
|
4
|
-
Here you will be able to explore the lower floors of the upper software!
|
|
5
|
-
|
|
6
|
-
Nevertheless, be aware, even though you may use the reusable functions as much as you want,
|
|
7
|
-
not only do you have to credit the author, but also make sure you DO NOT change anything unless you
|
|
8
|
-
have become an official contributor.
|
|
9
|
-
|
|
10
|
-
__________ Quantum Dimension __________
|
|
11
|
-
|
|
12
|
-
Quantum Turtle Mechanics: an extremely specialized sector where the author decided to implement
|
|
13
|
-
functions such as qtm_validation_decorator. This is a decorator which one can apply to a function to
|
|
14
|
-
make sure the Wave Function of each entered variable collapses into one.
|
|
15
|
-
|
|
16
|
-
Classical Turtle Mechanics: also a specialized sector, where the functions are closer to 'normal' Python
|
|
17
|
-
functions. These are still extremely important to the rest of the main package and must therefore
|
|
18
|
-
not be changed!
|
|
19
|
-
"""
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{universalfunctions-0.1.1 → universalfunctions-1.0.0}/UF/Validators/QuantumFuncValidators.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{universalfunctions-0.1.1 → universalfunctions-1.0.0}/UniversalFunctions.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{universalfunctions-0.1.1 → universalfunctions-1.0.0}/UniversalFunctions.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|