kitecmd 0.1__tar.gz → 0.3__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.
kitecmd-0.3/PKG-INFO ADDED
@@ -0,0 +1,9 @@
1
+ Metadata-Version: 2.4
2
+ Name: kitecmd
3
+ Version: 0.3
4
+ Summary: A simple CLI example for PyPI
5
+ Author: coltonsr77
6
+ Requires-Python: >=3.8
7
+ Dynamic: author
8
+ Dynamic: requires-python
9
+ Dynamic: summary
@@ -0,0 +1 @@
1
+ __version__ = "0.3"
@@ -0,0 +1,4 @@
1
+ from .cli import main
2
+
3
+ if __name__ == "__main__":
4
+ main()
@@ -0,0 +1,26 @@
1
+ import argparse
2
+
3
+ def main():
4
+ parser = argparse.ArgumentParser(
5
+ prog="kitecmd",
6
+ description="Kite Command Utility"
7
+ )
8
+ subparsers = parser.add_subparsers(dest="command", help="Available commands")
9
+
10
+ # Example: hello
11
+ hello_parser = subparsers.add_parser("hello", help="Print a greeting")
12
+ hello_parser.add_argument("--name", "-n", default="World", help="Who to greet")
13
+
14
+ # Example: add
15
+ add_parser = subparsers.add_parser("add", help="Add two numbers")
16
+ add_parser.add_argument("a", type=float, help="First number")
17
+ add_parser.add_argument("b", type=float, help="Second number")
18
+
19
+ args = parser.parse_args()
20
+
21
+ if args.command == "hello":
22
+ print(f"Hello, {args.name}!")
23
+ elif args.command == "add":
24
+ print(f"Result: {args.a + args.b}")
25
+ else:
26
+ parser.print_help()
@@ -0,0 +1,9 @@
1
+ Metadata-Version: 2.4
2
+ Name: kitecmd
3
+ Version: 0.3
4
+ Summary: A simple CLI example for PyPI
5
+ Author: coltonsr77
6
+ Requires-Python: >=3.8
7
+ Dynamic: author
8
+ Dynamic: requires-python
9
+ Dynamic: summary
@@ -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,17 +2,15 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name="kitecmd",
5
- version="0.1",
5
+ version="0.3",
6
6
  author="coltonsr77",
7
- author_email="coltonsr77@gmail.com",
8
- description="A simple example CLI command tool for PyPI",
7
+ description="A simple CLI example for PyPI",
9
8
  packages=find_packages(),
10
- install_requires=[],
11
9
  entry_points={
12
10
  "console_scripts": [
13
11
  "kitecmd=kitecmd.cli:main",
14
12
  ],
15
13
  },
16
14
  python_requires=">=3.8",
17
- license="MIT",
18
15
  )
16
+
kitecmd-0.1/PKG-INFO DELETED
@@ -1,13 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: kitecmd
3
- Version: 0.1
4
- Summary: A simple example CLI command tool for PyPI
5
- Author: coltonsr77
6
- Author-email: coltonsr77@gmail.com
7
- License: MIT
8
- Requires-Python: >=3.8
9
- Dynamic: author
10
- Dynamic: author-email
11
- Dynamic: license
12
- Dynamic: requires-python
13
- Dynamic: summary
@@ -1,13 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: kitecmd
3
- Version: 0.1
4
- Summary: A simple example CLI command tool for PyPI
5
- Author: coltonsr77
6
- Author-email: coltonsr77@gmail.com
7
- License: MIT
8
- Requires-Python: >=3.8
9
- Dynamic: author
10
- Dynamic: author-email
11
- Dynamic: license
12
- Dynamic: requires-python
13
- Dynamic: summary
@@ -1 +0,0 @@
1
-
File without changes
File without changes
File without changes