rm-123 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.
- rm_123-0.1.0/PKG-INFO +13 -0
- rm_123-0.1.0/README.md +0 -0
- rm_123-0.1.0/pyproject.toml +22 -0
- rm_123-0.1.0/src/rm_123/__init__.py +24 -0
rm_123-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
Metadata-Version: 2.3
|
|
2
|
+
Name: rm-123
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Add your description here
|
|
5
|
+
Author: 23f3003235
|
|
6
|
+
Author-email: 23f3003235 <23f3003235@ds.study.iitm.ac.in
|
|
7
|
+
|
|
8
|
+
git config --global user.name 23f3003235
|
|
9
|
+
|
|
10
|
+
git config --global user.email 23f3003235@ds.study.iitm.ac.in>
|
|
11
|
+
Requires-Python: >=3.14
|
|
12
|
+
Description-Content-Type: text/markdown
|
|
13
|
+
|
rm_123-0.1.0/README.md
ADDED
|
File without changes
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
[project]
|
|
2
|
+
name = "rm-123"
|
|
3
|
+
version = "0.1.0"
|
|
4
|
+
description = "Add your description here"
|
|
5
|
+
readme = "README.md"
|
|
6
|
+
authors = [
|
|
7
|
+
{ name = "23f3003235", email = """
|
|
8
|
+
23f3003235@ds.study.iitm.ac.in
|
|
9
|
+
|
|
10
|
+
git config --global user.name 23f3003235
|
|
11
|
+
|
|
12
|
+
git config --global user.email 23f3003235@ds.study.iitm.ac.in""" }
|
|
13
|
+
]
|
|
14
|
+
requires-python = ">=3.14"
|
|
15
|
+
dependencies = []
|
|
16
|
+
|
|
17
|
+
[project.scripts]
|
|
18
|
+
rm-123 = "rm_123:main"
|
|
19
|
+
|
|
20
|
+
[build-system]
|
|
21
|
+
requires = ["uv_build>=0.11.26,<0.12.0"]
|
|
22
|
+
build-backend = "uv_build"
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import argparse
|
|
2
|
+
|
|
3
|
+
def add(*numbers):
|
|
4
|
+
my_sum = sum(numbers)
|
|
5
|
+
return my_sum
|
|
6
|
+
|
|
7
|
+
def multiply(*numbers):
|
|
8
|
+
ans = 1
|
|
9
|
+
for num in numbers:
|
|
10
|
+
ans *= num
|
|
11
|
+
return ans
|
|
12
|
+
|
|
13
|
+
def main():
|
|
14
|
+
parser = argparse.ArgumentParser()
|
|
15
|
+
parser.add_argument("operation", choices=["add", "multiply"])
|
|
16
|
+
parser.add_argument("numbers", nargs="+", type=float)
|
|
17
|
+
my_arg = parser.parse_args()
|
|
18
|
+
|
|
19
|
+
if my_arg.operation == "add":
|
|
20
|
+
result = add(*my_arg.numbers)
|
|
21
|
+
elif my_arg.operation =="multiply":
|
|
22
|
+
result = multiply(*my_arg.numbers)
|
|
23
|
+
return result
|
|
24
|
+
print(main())
|