magneticmath 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.
@@ -0,0 +1,20 @@
1
+ Metadata-Version: 2.4
2
+ Name: magneticmath
3
+ Version: 0.1.0
4
+ Summary: Math utility library
5
+ Author: Gudikandula Santosh
6
+ Requires-Python: >=3.8
7
+ Description-Content-Type: text/markdown
8
+
9
+ # SmartMath
10
+
11
+ A simple Python math utility library.
12
+
13
+ ## Features
14
+ - Arithmetic operations
15
+
16
+ ## Usage
17
+
18
+ ```python
19
+ from magneticmath import Arithmetic
20
+ print(Arithmetic.add(1,2,3))
@@ -0,0 +1,12 @@
1
+ # SmartMath
2
+
3
+ A simple Python math utility library.
4
+
5
+ ## Features
6
+ - Arithmetic operations
7
+
8
+ ## Usage
9
+
10
+ ```python
11
+ from magneticmath import Arithmetic
12
+ print(Arithmetic.add(1,2,3))
@@ -0,0 +1 @@
1
+ from .arithmetic import Arithmetic
@@ -0,0 +1,40 @@
1
+ class Arithmetic:
2
+ def __init__(self):
3
+ pass
4
+ def add(self,*args):
5
+ try:
6
+ add=0
7
+ for i in args:
8
+ add+=i
9
+ return add
10
+ except TypeError:
11
+ return "Invalid input: All arguments must be numbers."
12
+ def sub(self,*args):
13
+ try:
14
+ sub=args[0]
15
+ for i in args[1:]:
16
+ sub-=i
17
+ return sub
18
+ except TypeError:
19
+ return "Invalid input: All arguments must be numbers."
20
+
21
+ def mul(self,*args):
22
+ try:
23
+ mul=1
24
+ for i in args:
25
+ mul*=i
26
+ return mul
27
+ except TypeError:
28
+ return "Invalid input: All arguments must be numbers."
29
+
30
+ def div(self,*args):
31
+ try:
32
+ div=args[0]
33
+ for i in args[1:]:
34
+ if i==0:
35
+ return "Error: Division by zero is not allowed."
36
+ div/=i
37
+ return div
38
+ except TypeError:
39
+ return "Invalid input: All arguments must be numbers."
40
+
@@ -0,0 +1,20 @@
1
+ Metadata-Version: 2.4
2
+ Name: magneticmath
3
+ Version: 0.1.0
4
+ Summary: Math utility library
5
+ Author: Gudikandula Santosh
6
+ Requires-Python: >=3.8
7
+ Description-Content-Type: text/markdown
8
+
9
+ # SmartMath
10
+
11
+ A simple Python math utility library.
12
+
13
+ ## Features
14
+ - Arithmetic operations
15
+
16
+ ## Usage
17
+
18
+ ```python
19
+ from magneticmath import Arithmetic
20
+ print(Arithmetic.add(1,2,3))
@@ -0,0 +1,8 @@
1
+ README.md
2
+ pyproject.toml
3
+ magneticmath/__init__.py
4
+ magneticmath/arithmetic.py
5
+ magneticmath.egg-info/PKG-INFO
6
+ magneticmath.egg-info/SOURCES.txt
7
+ magneticmath.egg-info/dependency_links.txt
8
+ magneticmath.egg-info/top_level.txt
@@ -0,0 +1 @@
1
+ magneticmath
@@ -0,0 +1,13 @@
1
+ [project]
2
+ name = "magneticmath"
3
+ version = "0.1.0"
4
+ description = "Math utility library"
5
+ authors = [
6
+ { name = "Gudikandula Santosh" }
7
+ ]
8
+ readme = "README.md"
9
+ requires-python = ">=3.8"
10
+
11
+ [build-system]
12
+ requires = ["setuptools>=61.0", "wheel"]
13
+ build-backend = "setuptools.build_meta"
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+