stackops 0.1.0__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.
@@ -0,0 +1,10 @@
1
+ # Python-generated files
2
+ __pycache__/
3
+ *.py[oc]
4
+ build/
5
+ dist/
6
+ wheels/
7
+ *.egg-info
8
+
9
+ # Virtual environments
10
+ .venv
@@ -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,30 @@
1
+ # stackops
2
+
3
+ Minimal Python package and CLI published as `stackops`.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ pip install stackops
9
+ ```
10
+
11
+ ## Use
12
+
13
+ ```bash
14
+ stackops
15
+ stackops alex
16
+ python -m stackops
17
+ ```
18
+
19
+ ```python
20
+ from stackops import hello
21
+
22
+ print(hello("alex"))
23
+ ```
24
+
25
+ ## Release
26
+
27
+ ```bash
28
+ uv build
29
+ UV_PUBLISH_TOKEN=pypi-... uv publish
30
+ ```
@@ -0,0 +1,30 @@
1
+ [build-system]
2
+ requires = ["hatchling>=1.27"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "stackops"
7
+ version = "0.1.0"
8
+ description = "Minimal Python package and CLI for stack operations."
9
+ readme = "README.md"
10
+ requires-python = ">=3.9"
11
+ keywords = ["stackops"]
12
+ classifiers = [
13
+ "Programming Language :: Python :: 3",
14
+ "Programming Language :: Python :: 3 :: Only",
15
+ "Operating System :: OS Independent",
16
+ ]
17
+ dependencies = []
18
+
19
+ [project.scripts]
20
+ stackops = "stackops.cli:main"
21
+
22
+ [tool.hatch.build.targets.sdist]
23
+ include = [
24
+ "/README.md",
25
+ "/pyproject.toml",
26
+ "/src/stackops",
27
+ ]
28
+
29
+ [tool.hatch.build.targets.wheel]
30
+ packages = ["src/stackops"]
@@ -0,0 +1,8 @@
1
+ """Minimal public interface for the stackops package."""
2
+
3
+ __version__ = "0.1.0"
4
+
5
+
6
+ def hello(name: str = "world") -> str:
7
+ """Return a friendly greeting from stackops."""
8
+ return f"Hello, {name}. This is stackops."
@@ -0,0 +1,3 @@
1
+ from .cli import main
2
+
3
+ raise SystemExit(main())
@@ -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