simplecal-umar 0.0.1__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.
- simplecal_umar-0.0.1/PKG-INFO +18 -0
- simplecal_umar-0.0.1/README.md +8 -0
- simplecal_umar-0.0.1/pyproject.toml +20 -0
- simplecal_umar-0.0.1/setup.cfg +4 -0
- simplecal_umar-0.0.1/src/simplecal_umar/__init__.py +4 -0
- simplecal_umar-0.0.1/src/simplecal_umar/add.py +2 -0
- simplecal_umar-0.0.1/src/simplecal_umar/divide.py +4 -0
- simplecal_umar-0.0.1/src/simplecal_umar/main.py +19 -0
- simplecal_umar-0.0.1/src/simplecal_umar/mul.py +2 -0
- simplecal_umar-0.0.1/src/simplecal_umar/sub.py +2 -0
- simplecal_umar-0.0.1/src/simplecal_umar.egg-info/PKG-INFO +18 -0
- simplecal_umar-0.0.1/src/simplecal_umar.egg-info/SOURCES.txt +12 -0
- simplecal_umar-0.0.1/src/simplecal_umar.egg-info/dependency_links.txt +1 -0
- simplecal_umar-0.0.1/src/simplecal_umar.egg-info/top_level.txt +1 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: simplecal-umar
|
|
3
|
+
Version: 0.0.1
|
|
4
|
+
Summary: A basic arithmetic calculator module
|
|
5
|
+
Author: Umar
|
|
6
|
+
Classifier: Programming Language :: Python :: 3
|
|
7
|
+
Classifier: Operating System :: OS Independent
|
|
8
|
+
Requires-Python: >=3.8
|
|
9
|
+
Description-Content-Type: text/markdown
|
|
10
|
+
|
|
11
|
+
# simplecal-umar
|
|
12
|
+
|
|
13
|
+
A simple Python library for basic arithmetic operations (addition, subtraction, multiplication, and division).
|
|
14
|
+
|
|
15
|
+
## Installation
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
pip install simplecal-umar
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=61.0"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "simplecal-umar"
|
|
7
|
+
version = "0.0.1"
|
|
8
|
+
authors = [
|
|
9
|
+
{ name="Umar" },
|
|
10
|
+
]
|
|
11
|
+
description = "A basic arithmetic calculator module"
|
|
12
|
+
readme = "README.md"
|
|
13
|
+
requires-python = ">=3.8"
|
|
14
|
+
classifiers = [
|
|
15
|
+
"Programming Language :: Python :: 3",
|
|
16
|
+
"Operating System :: OS Independent",
|
|
17
|
+
]
|
|
18
|
+
|
|
19
|
+
[tool.setuptools.packages.find]
|
|
20
|
+
where = ["src"]
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
from add import add
|
|
2
|
+
from sub import sub
|
|
3
|
+
from mul import mul
|
|
4
|
+
from divide import div
|
|
5
|
+
|
|
6
|
+
input1 = float(input("Enter first number: "))
|
|
7
|
+
input2 = float(input("Enter second number: "))
|
|
8
|
+
result_add = add(input1, input2)
|
|
9
|
+
result_sub = sub(input1, input2)
|
|
10
|
+
result_mul = mul(input1, input2)
|
|
11
|
+
try:
|
|
12
|
+
result_div = div(input1, input2)
|
|
13
|
+
except ValueError as e:
|
|
14
|
+
result_div = str(e)
|
|
15
|
+
|
|
16
|
+
print(f"Addition: {result_add}")
|
|
17
|
+
print(f"Subtraction: {result_sub}")
|
|
18
|
+
print(f"Multiplication: {result_mul}")
|
|
19
|
+
print(f"Division: {result_div}")
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: simplecal-umar
|
|
3
|
+
Version: 0.0.1
|
|
4
|
+
Summary: A basic arithmetic calculator module
|
|
5
|
+
Author: Umar
|
|
6
|
+
Classifier: Programming Language :: Python :: 3
|
|
7
|
+
Classifier: Operating System :: OS Independent
|
|
8
|
+
Requires-Python: >=3.8
|
|
9
|
+
Description-Content-Type: text/markdown
|
|
10
|
+
|
|
11
|
+
# simplecal-umar
|
|
12
|
+
|
|
13
|
+
A simple Python library for basic arithmetic operations (addition, subtraction, multiplication, and division).
|
|
14
|
+
|
|
15
|
+
## Installation
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
pip install simplecal-umar
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
README.md
|
|
2
|
+
pyproject.toml
|
|
3
|
+
src/simplecal_umar/__init__.py
|
|
4
|
+
src/simplecal_umar/add.py
|
|
5
|
+
src/simplecal_umar/divide.py
|
|
6
|
+
src/simplecal_umar/main.py
|
|
7
|
+
src/simplecal_umar/mul.py
|
|
8
|
+
src/simplecal_umar/sub.py
|
|
9
|
+
src/simplecal_umar.egg-info/PKG-INFO
|
|
10
|
+
src/simplecal_umar.egg-info/SOURCES.txt
|
|
11
|
+
src/simplecal_umar.egg-info/dependency_links.txt
|
|
12
|
+
src/simplecal_umar.egg-info/top_level.txt
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
simplecal_umar
|