pythoncow 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.
- pythoncow/__init__.py +1 -0
- pythoncow/__main__.py +5 -0
- pythoncow/cli.py +32 -0
- pythoncow-0.1.0.dist-info/METADATA +20 -0
- pythoncow-0.1.0.dist-info/RECORD +7 -0
- pythoncow-0.1.0.dist-info/WHEEL +4 -0
- pythoncow-0.1.0.dist-info/entry_points.txt +2 -0
pythoncow/__init__.py
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.1.0"
|
pythoncow/__main__.py
ADDED
pythoncow/cli.py
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
|
|
3
|
+
import sys
|
|
4
|
+
from typing import Optional, Sequence
|
|
5
|
+
|
|
6
|
+
from . import __version__
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
def print_help() -> None:
|
|
10
|
+
print("Usage: pythoncow [--help] [--version]")
|
|
11
|
+
print("")
|
|
12
|
+
print("A tiny placeholder CLI.")
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
def main(argv: Optional[Sequence[str]] = None) -> int:
|
|
16
|
+
args = list(sys.argv[1:] if argv is None else argv)
|
|
17
|
+
|
|
18
|
+
if not args:
|
|
19
|
+
print("pythoncow: placeholder CLI is ready.")
|
|
20
|
+
return 0
|
|
21
|
+
|
|
22
|
+
if args[0] in {"-h", "--help", "help"}:
|
|
23
|
+
print_help()
|
|
24
|
+
return 0
|
|
25
|
+
|
|
26
|
+
if args[0] in {"-V", "--version", "version"}:
|
|
27
|
+
print(__version__)
|
|
28
|
+
return 0
|
|
29
|
+
|
|
30
|
+
print(f"pythoncow: unsupported argument: {args[0]}", file=sys.stderr)
|
|
31
|
+
print_help()
|
|
32
|
+
return 2
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: pythoncow
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: A tiny placeholder CLI named pythoncow
|
|
5
|
+
Project-URL: Repository, https://github.com/sudo-yf/pythoncow
|
|
6
|
+
Requires-Python: >=3.9
|
|
7
|
+
Description-Content-Type: text/markdown
|
|
8
|
+
|
|
9
|
+
# pythoncow
|
|
10
|
+
|
|
11
|
+
A tiny placeholder Python CLI package.
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
uvx pythoncow
|
|
17
|
+
uvx pythoncow --help
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
This first release is intentionally minimal and only prints placeholder text.
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
pythoncow/__init__.py,sha256=kUR5RAFc7HCeiqdlX36dZOHkUI5wI6V_43RpEcD8b-0,22
|
|
2
|
+
pythoncow/__main__.py,sha256=PSQ4rpL0dG6f-qH4N7H-gD9igQkdHzH4yVZDcW8lfZo,80
|
|
3
|
+
pythoncow/cli.py,sha256=jSQCMPVY5tQGE04hbHbaQoQSCp-ULIY41ryRXWo10vI,727
|
|
4
|
+
pythoncow-0.1.0.dist-info/METADATA,sha256=Q11XIPTCZVA7x770SJiXE7yEl_aerP7XaDgNK0i4gRU,416
|
|
5
|
+
pythoncow-0.1.0.dist-info/WHEEL,sha256=QccIxa26bgl1E6uMy58deGWi-0aeIkkangHcxk2kWfw,87
|
|
6
|
+
pythoncow-0.1.0.dist-info/entry_points.txt,sha256=9wcrx223YpcF2hy0Dt5R22sEdwgCR4Nq96ZjZnr9XtI,49
|
|
7
|
+
pythoncow-0.1.0.dist-info/RECORD,,
|