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 +9 -0
- kitecmd-0.3/kitecmd/__init__.py +1 -0
- kitecmd-0.3/kitecmd/__main__.py +4 -0
- kitecmd-0.3/kitecmd/cli.py +26 -0
- kitecmd-0.3/kitecmd.egg-info/PKG-INFO +9 -0
- {kitecmd-0.1 → kitecmd-0.3}/kitecmd.egg-info/SOURCES.txt +3 -0
- kitecmd-0.3/kitecmd.egg-info/top_level.txt +1 -0
- {kitecmd-0.1 → kitecmd-0.3}/setup.py +3 -5
- kitecmd-0.1/PKG-INFO +0 -13
- kitecmd-0.1/kitecmd.egg-info/PKG-INFO +0 -13
- kitecmd-0.1/kitecmd.egg-info/top_level.txt +0 -1
- {kitecmd-0.1 → kitecmd-0.3}/README.md +0 -0
- {kitecmd-0.1 → kitecmd-0.3}/kitecmd.egg-info/dependency_links.txt +0 -0
- {kitecmd-0.1 → kitecmd-0.3}/kitecmd.egg-info/entry_points.txt +0 -0
- {kitecmd-0.1 → kitecmd-0.3}/pyproject.toml +0 -0
- {kitecmd-0.1 → kitecmd-0.3}/setup.cfg +0 -0
kitecmd-0.3/PKG-INFO
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.3"
|
|
@@ -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 @@
|
|
|
1
|
+
kitecmd
|
|
@@ -2,17 +2,15 @@ from setuptools import setup, find_packages
|
|
|
2
2
|
|
|
3
3
|
setup(
|
|
4
4
|
name="kitecmd",
|
|
5
|
-
version="0.
|
|
5
|
+
version="0.3",
|
|
6
6
|
author="coltonsr77",
|
|
7
|
-
|
|
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
|
|
File without changes
|
|
File without changes
|