vezor 0.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.
- vezor-0.1.0/PKG-INFO +69 -0
- vezor-0.1.0/README.md +43 -0
- vezor-0.1.0/setup.cfg +4 -0
- vezor-0.1.0/setup.py +25 -0
- vezor-0.1.0/vezor.egg-info/PKG-INFO +69 -0
- vezor-0.1.0/vezor.egg-info/SOURCES.txt +13 -0
- vezor-0.1.0/vezor.egg-info/dependency_links.txt +1 -0
- vezor-0.1.0/vezor.egg-info/top_level.txt +1 -0
- vezor-0.1.0/zar/__init__.py +23 -0
- vezor-0.1.0/zar/print.py +22 -0
- vezor-0.1.0/zar/sorting/__init__.py +9 -0
- vezor-0.1.0/zar/sorting/bubble_sort.py +7 -0
- vezor-0.1.0/zar/sorting/linear_search.py +5 -0
- vezor-0.1.0/zar/sorting/quick_sort.py +10 -0
- vezor-0.1.0/zar/write.py +31 -0
vezor-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: vezor
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: A collection of algorithm designs for easy application to assist mathematical problems.
|
|
5
|
+
Home-page: https://github.com/avezoor/vezor
|
|
6
|
+
Author: Izzar Suly Nashrudin
|
|
7
|
+
Author-email: Izzarsuly@proton.me
|
|
8
|
+
Classifier: Programming Language :: Python :: 3
|
|
9
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
10
|
+
Classifier: Operating System :: OS Independent
|
|
11
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
12
|
+
Classifier: Operating System :: MacOS :: MacOS X
|
|
13
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
14
|
+
Classifier: Operating System :: Unix
|
|
15
|
+
Classifier: Framework :: Jupyter
|
|
16
|
+
Requires-Python: >=3.12
|
|
17
|
+
Description-Content-Type: text/markdown
|
|
18
|
+
Dynamic: author
|
|
19
|
+
Dynamic: author-email
|
|
20
|
+
Dynamic: classifier
|
|
21
|
+
Dynamic: description
|
|
22
|
+
Dynamic: description-content-type
|
|
23
|
+
Dynamic: home-page
|
|
24
|
+
Dynamic: requires-python
|
|
25
|
+
Dynamic: summary
|
|
26
|
+
|
|
27
|
+
# Vezor Package
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
 [](https://github.com/avezoor/vezor/blob/main/LICENSE)
|
|
31
|
+
 [](mailto:izzarsuly@proton.me) [](https://github.com/avezoor/vezor) [](https://github.com/avezoor)
|
|
32
|
+
|
|
33
|
+
## Information
|
|
34
|
+
|
|
35
|
+
  
|
|
36
|
+
|
|
37
|
+
## Documentation
|
|
38
|
+
|
|
39
|
+
[](https://vezor.vercel.app/)
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
## Description
|
|
43
|
+
**Vezor** is a Python package designed to enhance computational accuracy and usability across various mathematical domains. It provides an efficient and well-structured implementation for mathematical computations, making it easier for users to perform complex calculations with minimal effort.
|
|
44
|
+
|
|
45
|
+
## Installation
|
|
46
|
+
Install **vezor** using pip:
|
|
47
|
+
|
|
48
|
+
```sh
|
|
49
|
+
pip install vezor
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## Supported Platforms
|
|
53
|
+
**vezor** is compatible with the following platforms:
|
|
54
|
+
|
|
55
|
+

|
|
56
|
+
|
|
57
|
+
Additionally, it supports execution in environments such as:
|
|
58
|
+
|
|
59
|
+

|
|
60
|
+
|
|
61
|
+
---
|
|
62
|
+
## Features
|
|
63
|
+
- Tool prints algorithm and writes algorithm code from class calls
|
|
64
|
+
---
|
|
65
|
+
## Contribution
|
|
66
|
+
Thanks to all contributors! ❤️
|
|
67
|
+
|
|
68
|
+
[](https://github.com/avezoor/vezor/graphs/contributors)
|
|
69
|
+
|
vezor-0.1.0/README.md
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# Vezor Package
|
|
2
|
+
---
|
|
3
|
+
|
|
4
|
+
 [](https://github.com/avezoor/vezor/blob/main/LICENSE)
|
|
5
|
+
 [](mailto:izzarsuly@proton.me) [](https://github.com/avezoor/vezor) [](https://github.com/avezoor)
|
|
6
|
+
|
|
7
|
+
## Information
|
|
8
|
+
|
|
9
|
+
  
|
|
10
|
+
|
|
11
|
+
## Documentation
|
|
12
|
+
|
|
13
|
+
[](https://vezor.vercel.app/)
|
|
14
|
+
|
|
15
|
+
---
|
|
16
|
+
## Description
|
|
17
|
+
**Vezor** is a Python package designed to enhance computational accuracy and usability across various mathematical domains. It provides an efficient and well-structured implementation for mathematical computations, making it easier for users to perform complex calculations with minimal effort.
|
|
18
|
+
|
|
19
|
+
## Installation
|
|
20
|
+
Install **vezor** using pip:
|
|
21
|
+
|
|
22
|
+
```sh
|
|
23
|
+
pip install vezor
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
## Supported Platforms
|
|
27
|
+
**vezor** is compatible with the following platforms:
|
|
28
|
+
|
|
29
|
+

|
|
30
|
+
|
|
31
|
+
Additionally, it supports execution in environments such as:
|
|
32
|
+
|
|
33
|
+

|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
## Features
|
|
37
|
+
- Tool prints algorithm and writes algorithm code from class calls
|
|
38
|
+
---
|
|
39
|
+
## Contribution
|
|
40
|
+
Thanks to all contributors! ❤️
|
|
41
|
+
|
|
42
|
+
[](https://github.com/avezoor/vezor/graphs/contributors)
|
|
43
|
+
|
vezor-0.1.0/setup.cfg
ADDED
vezor-0.1.0/setup.py
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
from setuptools import setup, find_packages
|
|
2
|
+
|
|
3
|
+
setup(
|
|
4
|
+
name="vezor",
|
|
5
|
+
version="0.1.0",
|
|
6
|
+
packages=find_packages(),
|
|
7
|
+
install_requires=[],
|
|
8
|
+
author="Izzar Suly Nashrudin",
|
|
9
|
+
author_email="Izzarsuly@proton.me",
|
|
10
|
+
description="A collection of algorithm designs for easy application to assist mathematical problems.",
|
|
11
|
+
long_description=open("README.md", encoding="utf-8").read(),
|
|
12
|
+
long_description_content_type="text/markdown",
|
|
13
|
+
url="https://github.com/avezoor/vezor",
|
|
14
|
+
classifiers=[
|
|
15
|
+
"Programming Language :: Python :: 3",
|
|
16
|
+
"License :: OSI Approved :: MIT License",
|
|
17
|
+
"Operating System :: OS Independent",
|
|
18
|
+
"Operating System :: Microsoft :: Windows",
|
|
19
|
+
"Operating System :: MacOS :: MacOS X",
|
|
20
|
+
"Operating System :: POSIX :: Linux",
|
|
21
|
+
"Operating System :: Unix",
|
|
22
|
+
"Framework :: Jupyter"
|
|
23
|
+
],
|
|
24
|
+
python_requires='>=3.12',
|
|
25
|
+
)
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: vezor
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: A collection of algorithm designs for easy application to assist mathematical problems.
|
|
5
|
+
Home-page: https://github.com/avezoor/vezor
|
|
6
|
+
Author: Izzar Suly Nashrudin
|
|
7
|
+
Author-email: Izzarsuly@proton.me
|
|
8
|
+
Classifier: Programming Language :: Python :: 3
|
|
9
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
10
|
+
Classifier: Operating System :: OS Independent
|
|
11
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
12
|
+
Classifier: Operating System :: MacOS :: MacOS X
|
|
13
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
14
|
+
Classifier: Operating System :: Unix
|
|
15
|
+
Classifier: Framework :: Jupyter
|
|
16
|
+
Requires-Python: >=3.12
|
|
17
|
+
Description-Content-Type: text/markdown
|
|
18
|
+
Dynamic: author
|
|
19
|
+
Dynamic: author-email
|
|
20
|
+
Dynamic: classifier
|
|
21
|
+
Dynamic: description
|
|
22
|
+
Dynamic: description-content-type
|
|
23
|
+
Dynamic: home-page
|
|
24
|
+
Dynamic: requires-python
|
|
25
|
+
Dynamic: summary
|
|
26
|
+
|
|
27
|
+
# Vezor Package
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
 [](https://github.com/avezoor/vezor/blob/main/LICENSE)
|
|
31
|
+
 [](mailto:izzarsuly@proton.me) [](https://github.com/avezoor/vezor) [](https://github.com/avezoor)
|
|
32
|
+
|
|
33
|
+
## Information
|
|
34
|
+
|
|
35
|
+
  
|
|
36
|
+
|
|
37
|
+
## Documentation
|
|
38
|
+
|
|
39
|
+
[](https://vezor.vercel.app/)
|
|
40
|
+
|
|
41
|
+
---
|
|
42
|
+
## Description
|
|
43
|
+
**Vezor** is a Python package designed to enhance computational accuracy and usability across various mathematical domains. It provides an efficient and well-structured implementation for mathematical computations, making it easier for users to perform complex calculations with minimal effort.
|
|
44
|
+
|
|
45
|
+
## Installation
|
|
46
|
+
Install **vezor** using pip:
|
|
47
|
+
|
|
48
|
+
```sh
|
|
49
|
+
pip install vezor
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## Supported Platforms
|
|
53
|
+
**vezor** is compatible with the following platforms:
|
|
54
|
+
|
|
55
|
+

|
|
56
|
+
|
|
57
|
+
Additionally, it supports execution in environments such as:
|
|
58
|
+
|
|
59
|
+

|
|
60
|
+
|
|
61
|
+
---
|
|
62
|
+
## Features
|
|
63
|
+
- Tool prints algorithm and writes algorithm code from class calls
|
|
64
|
+
---
|
|
65
|
+
## Contribution
|
|
66
|
+
Thanks to all contributors! ❤️
|
|
67
|
+
|
|
68
|
+
[](https://github.com/avezoor/vezor/graphs/contributors)
|
|
69
|
+
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
README.md
|
|
2
|
+
setup.py
|
|
3
|
+
vezor.egg-info/PKG-INFO
|
|
4
|
+
vezor.egg-info/SOURCES.txt
|
|
5
|
+
vezor.egg-info/dependency_links.txt
|
|
6
|
+
vezor.egg-info/top_level.txt
|
|
7
|
+
zar/__init__.py
|
|
8
|
+
zar/print.py
|
|
9
|
+
zar/write.py
|
|
10
|
+
zar/sorting/__init__.py
|
|
11
|
+
zar/sorting/bubble_sort.py
|
|
12
|
+
zar/sorting/linear_search.py
|
|
13
|
+
zar/sorting/quick_sort.py
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
zar
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import importlib
|
|
2
|
+
|
|
3
|
+
modules = {
|
|
4
|
+
"print": ["algoPrint"],
|
|
5
|
+
"write": ["algoWrite"]
|
|
6
|
+
}
|
|
7
|
+
submodules = ["sorting"]
|
|
8
|
+
|
|
9
|
+
__all__ = []
|
|
10
|
+
__submodule__ = []
|
|
11
|
+
|
|
12
|
+
for module, symbols in modules.items():
|
|
13
|
+
imported_module = importlib.import_module(f".{module}", package=__name__)
|
|
14
|
+
globals()[module] = imported_module
|
|
15
|
+
|
|
16
|
+
for symbol in symbols:
|
|
17
|
+
globals()[symbol] = getattr(imported_module, symbol)
|
|
18
|
+
__all__.append(symbol)
|
|
19
|
+
|
|
20
|
+
for submodule in submodules:
|
|
21
|
+
imported_submodule = importlib.import_module(f".{submodule}", package=__name__)
|
|
22
|
+
globals()[submodule] = imported_submodule
|
|
23
|
+
__submodule__.append(submodule)
|
vezor-0.1.0/zar/print.py
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import inspect
|
|
2
|
+
import importlib
|
|
3
|
+
from . import __submodule__
|
|
4
|
+
|
|
5
|
+
def printFunctionCode(func_name):
|
|
6
|
+
for submodule in __submodule__:
|
|
7
|
+
try:
|
|
8
|
+
module = importlib.import_module(f"zar.{submodule}")
|
|
9
|
+
func = getattr(module, func_name, None)
|
|
10
|
+
if func and callable(func):
|
|
11
|
+
print(inspect.getsource(func))
|
|
12
|
+
return
|
|
13
|
+
except ModuleNotFoundError:
|
|
14
|
+
pass
|
|
15
|
+
|
|
16
|
+
print(f"Function '{func_name}' not found in vezor package.")
|
|
17
|
+
|
|
18
|
+
class Printer:
|
|
19
|
+
def __getattr__(self, name):
|
|
20
|
+
return lambda: printFunctionCode(name)
|
|
21
|
+
|
|
22
|
+
algoPrint = Printer()
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
def quick_sort(arr):
|
|
2
|
+
if len(arr) <= 1:
|
|
3
|
+
return arr
|
|
4
|
+
|
|
5
|
+
pivot = arr[len(arr) // 2]
|
|
6
|
+
left = [x for x in arr if x < pivot]
|
|
7
|
+
middle = [x for x in arr if x == pivot]
|
|
8
|
+
right = [x for x in arr if x > pivot]
|
|
9
|
+
|
|
10
|
+
return quick_sort(left) + middle + quick_sort(right)
|
vezor-0.1.0/zar/write.py
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import inspect
|
|
2
|
+
import importlib
|
|
3
|
+
from . import __submodule__
|
|
4
|
+
|
|
5
|
+
class CodeWriter:
|
|
6
|
+
def writeClassCode(self, class_name):
|
|
7
|
+
for submodule in __submodule__:
|
|
8
|
+
try:
|
|
9
|
+
module = importlib.import_module(f"zar.{submodule}")
|
|
10
|
+
cls = getattr(module, class_name, None)
|
|
11
|
+
if cls and inspect.isclass(cls):
|
|
12
|
+
code = inspect.getsource(cls)
|
|
13
|
+
file_path = inspect.getfile(module)
|
|
14
|
+
|
|
15
|
+
with open(file_path, "r+", encoding="utf-8") as file:
|
|
16
|
+
content = file.read()
|
|
17
|
+
if code not in content:
|
|
18
|
+
file.write(f"\n\n{code}")
|
|
19
|
+
print(f"{class_name} added to {file_path}")
|
|
20
|
+
else:
|
|
21
|
+
print(f"{class_name} already exists in {file_path}")
|
|
22
|
+
return
|
|
23
|
+
except ModuleNotFoundError:
|
|
24
|
+
pass
|
|
25
|
+
|
|
26
|
+
print(f"{class_name} not found in zar package.")
|
|
27
|
+
|
|
28
|
+
def __getattr__(self, name):
|
|
29
|
+
return lambda: self.writeClassCode(name)
|
|
30
|
+
|
|
31
|
+
algoWrite = CodeWriter()
|