kitecmd 0.1__tar.gz → 0.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.4
2
2
  Name: kitecmd
3
- Version: 0.1
3
+ Version: 0.2
4
4
  Summary: A simple example CLI command tool for PyPI
5
5
  Author: coltonsr77
6
6
  Author-email: coltonsr77@gmail.com
@@ -0,0 +1,11 @@
1
+ """
2
+ KiteCMD
3
+ -------
4
+
5
+ A simple command-line utility for demonstration and PyPI publishing.
6
+ """
7
+
8
+ __version__ = "0.2"
9
+
10
+ # Optional: Import the main entry function
11
+ from .cli import main
@@ -0,0 +1,4 @@
1
+ from .cli import main
2
+
3
+ if __name__ == "__main__":
4
+ main()
@@ -0,0 +1,31 @@
1
+ import argparse
2
+
3
+ def main():
4
+ parser = argparse.ArgumentParser(
5
+ prog="kitecmd",
6
+ description="Kite Command Utility - Example CLI for PyPI"
7
+ )
8
+
9
+ subparsers = parser.add_subparsers(dest="command", help="Available commands")
10
+
11
+ # Example: 'kitecmd hello'
12
+ hello_parser = subparsers.add_parser("hello", help="Print a greeting")
13
+ hello_parser.add_argument("--name", "-n", default="World", help="Who to greet")
14
+
15
+ # Example: 'kitecmd add'
16
+ add_parser = subparsers.add_parser("add", help="Add two numbers")
17
+ add_parser.add_argument("a", type=float, help="First number")
18
+ add_parser.add_argument("b", type=float, help="Second number")
19
+
20
+ args = parser.parse_args()
21
+
22
+ if args.command == "hello":
23
+ print(f"Hello, {args.name}!")
24
+ elif args.command == "add":
25
+ print(f"Result: {args.a + args.b}")
26
+ else:
27
+ parser.print_help()
28
+
29
+
30
+ if __name__ == "__main__":
31
+ main()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: kitecmd
3
- Version: 0.1
3
+ Version: 0.2
4
4
  Summary: A simple example CLI command tool for PyPI
5
5
  Author: coltonsr77
6
6
  Author-email: coltonsr77@gmail.com
@@ -1,6 +1,9 @@
1
1
  README.md
2
2
  pyproject.toml
3
3
  setup.py
4
+ kitecmd/__init__.py
5
+ kitecmd/__main__.py
6
+ kitecmd/cli.py
4
7
  kitecmd.egg-info/PKG-INFO
5
8
  kitecmd.egg-info/SOURCES.txt
6
9
  kitecmd.egg-info/dependency_links.txt
@@ -0,0 +1 @@
1
+ kitecmd
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name="kitecmd",
5
- version="0.1",
5
+ version="0.2",
6
6
  author="coltonsr77",
7
7
  author_email="coltonsr77@gmail.com",
8
8
  description="A simple example CLI command tool for PyPI",
@@ -1 +0,0 @@
1
-
File without changes
File without changes
File without changes