stackops 0.1.0__py3-none-any.whl
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.
- stackops/__init__.py +8 -0
- stackops/__main__.py +3 -0
- stackops/cli.py +22 -0
- stackops-0.1.0.dist-info/METADATA +41 -0
- stackops-0.1.0.dist-info/RECORD +7 -0
- stackops-0.1.0.dist-info/WHEEL +4 -0
- stackops-0.1.0.dist-info/entry_points.txt +2 -0
stackops/__init__.py
ADDED
stackops/__main__.py
ADDED
stackops/cli.py
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"""Command-line interface for stackops."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import argparse
|
|
6
|
+
|
|
7
|
+
from . import __version__, hello
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
def build_parser() -> argparse.ArgumentParser:
|
|
11
|
+
parser = argparse.ArgumentParser(
|
|
12
|
+
description="Minimal CLI for the stackops package."
|
|
13
|
+
)
|
|
14
|
+
parser.add_argument("name", nargs="?", default="world", help="Optional name to greet.")
|
|
15
|
+
parser.add_argument("--version", action="version", version=f"%(prog)s {__version__}")
|
|
16
|
+
return parser
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
def main() -> int:
|
|
20
|
+
args = build_parser().parse_args()
|
|
21
|
+
print(hello(args.name))
|
|
22
|
+
return 0
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: stackops
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Minimal Python package and CLI for stack operations.
|
|
5
|
+
Keywords: stackops
|
|
6
|
+
Classifier: Operating System :: OS Independent
|
|
7
|
+
Classifier: Programming Language :: Python :: 3
|
|
8
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
9
|
+
Requires-Python: >=3.9
|
|
10
|
+
Description-Content-Type: text/markdown
|
|
11
|
+
|
|
12
|
+
# stackops
|
|
13
|
+
|
|
14
|
+
Minimal Python package and CLI published as `stackops`.
|
|
15
|
+
|
|
16
|
+
## Install
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
pip install stackops
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## Use
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
stackops
|
|
26
|
+
stackops alex
|
|
27
|
+
python -m stackops
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
```python
|
|
31
|
+
from stackops import hello
|
|
32
|
+
|
|
33
|
+
print(hello("alex"))
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## Release
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
uv build
|
|
40
|
+
UV_PUBLISH_TOKEN=pypi-... uv publish
|
|
41
|
+
```
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
stackops/__init__.py,sha256=OWDBSbFQTrFzynL_BZQv_vNSzHacNXje82WfZfvtLiM,220
|
|
2
|
+
stackops/__main__.py,sha256=k1ocEWawweo1qCJWNFAAvyxz3tcY13dzvCenHszij30,48
|
|
3
|
+
stackops/cli.py,sha256=mWltHBnwfL0Z3_f_04iqIR3TSMlSNZlDLF3Z7GuUzcs,584
|
|
4
|
+
stackops-0.1.0.dist-info/METADATA,sha256=D5F15YkS6lYR7aRr1sr4P9-ZwiW76HstvV7Nc9o5aOY,660
|
|
5
|
+
stackops-0.1.0.dist-info/WHEEL,sha256=QccIxa26bgl1E6uMy58deGWi-0aeIkkangHcxk2kWfw,87
|
|
6
|
+
stackops-0.1.0.dist-info/entry_points.txt,sha256=Eplzlx99o5Im1a2D-Y2kcJyuCkgBUhDg02a6yBoX49U,47
|
|
7
|
+
stackops-0.1.0.dist-info/RECORD,,
|