vikash-python-library 0.1.0__tar.gz → 0.1.2__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: vikash-python-library
3
- Version: 0.1.0
3
+ Version: 0.1.2
4
4
  Summary: Add your description here
5
5
  Author: Vikash kumar
6
6
  Author-email: Vikash kumar <23f2000729@ds.study.iitm.ac.in>
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "vikash-python-library"
3
- version = "0.1.0"
3
+ version = "0.1.2"
4
4
  description = "Add your description here"
5
5
  readme = "README.md"
6
6
  authors = [
@@ -10,8 +10,8 @@ requires-python = ">=3.10"
10
10
  dependencies = []
11
11
 
12
12
  [project.scripts]
13
- python-library = "python_library:main"
13
+ python-library = "vikash_python_library:main"
14
14
 
15
15
  [build-system]
16
16
  requires = ["uv_build>=0.11.18,<0.12.0"]
17
- build-backend = "uv_build"
17
+ build-backend = "uv_build"
@@ -10,17 +10,21 @@ def multiply(numbers):
10
10
  return result
11
11
 
12
12
  def main():
13
- parser = argparse.ArgumentParser()
13
+ parser = argparse.ArgumentParser(
14
+ description="Perform Maths Action using list of numbers"
15
+ )
14
16
 
15
17
  parser.add_argument(
16
18
  "operation",
17
- choices=["add", "multiply"]
19
+ choices=["add", "multiply"], # ← comma added
20
+ help="Operation to perform: add or multiply"
18
21
  )
19
22
 
20
23
  parser.add_argument(
21
24
  "numbers",
22
25
  nargs="+",
23
- type=float
26
+ type=float, # ← comma added
27
+ help="Numbers to perform the operation on"
24
28
  )
25
29
 
26
30
  my_arg = parser.parse_args()
@@ -33,3 +37,6 @@ def main():
33
37
 
34
38
  return result
35
39
 
40
+
41
+ if __name__ == "__main__":
42
+ print(main())