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 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
+ ![PyPI](https://badge.fury.io/py/vezor.svg) [![License](https://img.shields.io/badge/License-MIT-green.svg?logo=open-source-initiative)](https://github.com/avezoor/vezor/blob/main/LICENSE)
31
+ ![Author](https://img.shields.io/badge/Author-Izzar%20Suly%20Nashrudin-blue) [![Email](https://img.shields.io/badge/Email-izzarsuly@proton.me-orange?style=flat-square&logo=gmail)](mailto:izzarsuly@proton.me) [![Repository](https://img.shields.io/badge/Repository-vezor-black?logo=github)](https://github.com/avezoor/vezor) [![GitHub](https://img.shields.io/badge/GitHub-avezoor-black?logo=github)](https://github.com/avezoor)
32
+
33
+ ## Information
34
+
35
+ ![Features](https://img.shields.io/badge/features-2-blue) ![Modules](https://img.shields.io/badge/modules-3-black) ![Version](https://img.shields.io/badge/version-0.1.0-orange)
36
+
37
+ ## Documentation
38
+
39
+ [![Website](https://img.shields.io/badge/Website-vezor.vercel.app-blue?logo=google-chrome)](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
+ ![Platforms](https://img.shields.io/badge/platforms-Windows%20%7C%20macOS%20%7C%20Linux%20%7C%20Unix-blue)
56
+
57
+ Additionally, it supports execution in environments such as:
58
+
59
+ ![Frameworks](https://img.shields.io/badge/frrameworks-Jupyter%20Notebook%20-blue)
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
+ [![Contributors](https://contrib.rocks/image?repo=avezoor/vezor)](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
+ ![PyPI](https://badge.fury.io/py/vezor.svg) [![License](https://img.shields.io/badge/License-MIT-green.svg?logo=open-source-initiative)](https://github.com/avezoor/vezor/blob/main/LICENSE)
5
+ ![Author](https://img.shields.io/badge/Author-Izzar%20Suly%20Nashrudin-blue) [![Email](https://img.shields.io/badge/Email-izzarsuly@proton.me-orange?style=flat-square&logo=gmail)](mailto:izzarsuly@proton.me) [![Repository](https://img.shields.io/badge/Repository-vezor-black?logo=github)](https://github.com/avezoor/vezor) [![GitHub](https://img.shields.io/badge/GitHub-avezoor-black?logo=github)](https://github.com/avezoor)
6
+
7
+ ## Information
8
+
9
+ ![Features](https://img.shields.io/badge/features-2-blue) ![Modules](https://img.shields.io/badge/modules-3-black) ![Version](https://img.shields.io/badge/version-0.1.0-orange)
10
+
11
+ ## Documentation
12
+
13
+ [![Website](https://img.shields.io/badge/Website-vezor.vercel.app-blue?logo=google-chrome)](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
+ ![Platforms](https://img.shields.io/badge/platforms-Windows%20%7C%20macOS%20%7C%20Linux%20%7C%20Unix-blue)
30
+
31
+ Additionally, it supports execution in environments such as:
32
+
33
+ ![Frameworks](https://img.shields.io/badge/frrameworks-Jupyter%20Notebook%20-blue)
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
+ [![Contributors](https://contrib.rocks/image?repo=avezoor/vezor)](https://github.com/avezoor/vezor/graphs/contributors)
43
+
vezor-0.1.0/setup.cfg ADDED
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
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
+ ![PyPI](https://badge.fury.io/py/vezor.svg) [![License](https://img.shields.io/badge/License-MIT-green.svg?logo=open-source-initiative)](https://github.com/avezoor/vezor/blob/main/LICENSE)
31
+ ![Author](https://img.shields.io/badge/Author-Izzar%20Suly%20Nashrudin-blue) [![Email](https://img.shields.io/badge/Email-izzarsuly@proton.me-orange?style=flat-square&logo=gmail)](mailto:izzarsuly@proton.me) [![Repository](https://img.shields.io/badge/Repository-vezor-black?logo=github)](https://github.com/avezoor/vezor) [![GitHub](https://img.shields.io/badge/GitHub-avezoor-black?logo=github)](https://github.com/avezoor)
32
+
33
+ ## Information
34
+
35
+ ![Features](https://img.shields.io/badge/features-2-blue) ![Modules](https://img.shields.io/badge/modules-3-black) ![Version](https://img.shields.io/badge/version-0.1.0-orange)
36
+
37
+ ## Documentation
38
+
39
+ [![Website](https://img.shields.io/badge/Website-vezor.vercel.app-blue?logo=google-chrome)](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
+ ![Platforms](https://img.shields.io/badge/platforms-Windows%20%7C%20macOS%20%7C%20Linux%20%7C%20Unix-blue)
56
+
57
+ Additionally, it supports execution in environments such as:
58
+
59
+ ![Frameworks](https://img.shields.io/badge/frrameworks-Jupyter%20Notebook%20-blue)
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
+ [![Contributors](https://contrib.rocks/image?repo=avezoor/vezor)](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
+ 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)
@@ -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,9 @@
1
+ import importlib
2
+
3
+ modules = ["bubble_sort", "quick_sort", "linear_search"]
4
+ __all__ = []
5
+
6
+ for module in modules:
7
+ imported_module = importlib.import_module(f".{module}", package=__name__)
8
+ globals()[module] = imported_module
9
+ __all__.append(module)
@@ -0,0 +1,7 @@
1
+ def bubble_sort(arr):
2
+ n = len(arr)
3
+ for i in range(n):
4
+ for j in range(0, n-i-1):
5
+ if arr[j] > arr[j+1]:
6
+ arr[j], arr[j+1] = arr[j+1], arr[j]
7
+ return arr
@@ -0,0 +1,5 @@
1
+ def linear_search(arr, target):
2
+ for i, val in enumerate(arr):
3
+ if val == target:
4
+ return i
5
+ return -1
@@ -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)
@@ -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()