test-notepad 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.
- test_notepad/__init__.py +6 -0
- test_notepad/__main__.py +6 -0
- test_notepad/cli.py +19 -0
- test_notepad-0.1.0.dist-info/METADATA +43 -0
- test_notepad-0.1.0.dist-info/RECORD +8 -0
- test_notepad-0.1.0.dist-info/WHEEL +5 -0
- test_notepad-0.1.0.dist-info/entry_points.txt +2 -0
- test_notepad-0.1.0.dist-info/top_level.txt +1 -0
test_notepad/__init__.py
ADDED
test_notepad/__main__.py
ADDED
test_notepad/cli.py
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"""CLI entry point that starts notepad.exe."""
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
import subprocess
|
|
6
|
+
import sys
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
def main() -> int:
|
|
10
|
+
try:
|
|
11
|
+
subprocess.Popen(["notepad.exe"])
|
|
12
|
+
except OSError as exc:
|
|
13
|
+
print(f"Failed to start notepad.exe: {exc}", file=sys.stderr)
|
|
14
|
+
return 1
|
|
15
|
+
return 0
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
if __name__ == "__main__":
|
|
19
|
+
raise SystemExit(main())
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: test_notepad
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Launch Windows Notepad (notepad.exe)
|
|
5
|
+
Author: Local
|
|
6
|
+
License: MIT
|
|
7
|
+
Requires-Python: >=3.8
|
|
8
|
+
Description-Content-Type: text/markdown
|
|
9
|
+
|
|
10
|
+
# test_notepad
|
|
11
|
+
|
|
12
|
+
Local Python package that launches Windows Notepad (`notepad.exe`).
|
|
13
|
+
|
|
14
|
+
This package is **not** published to PyPI. Install it only from this folder.
|
|
15
|
+
|
|
16
|
+
## Install (editable, local)
|
|
17
|
+
|
|
18
|
+
```text
|
|
19
|
+
cd %USERPROFILE%\Desktop\test_pypi
|
|
20
|
+
pip install -e .
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
Or, if the `py` launcher is available:
|
|
24
|
+
|
|
25
|
+
```text
|
|
26
|
+
py -m pip install -e .
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Usage
|
|
30
|
+
|
|
31
|
+
After install:
|
|
32
|
+
|
|
33
|
+
```text
|
|
34
|
+
test-notepad
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
Or without installing the entry point, from this folder (after install, or with PYTHONPATH set):
|
|
38
|
+
|
|
39
|
+
```text
|
|
40
|
+
python -m test_notepad
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
Both commands start `notepad.exe` with `subprocess.Popen`.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
test_notepad/__init__.py,sha256=nTGhGZGDiuY0LltkQiwJ5vVxesVpW6_IaMLl9DbVCOI,108
|
|
2
|
+
test_notepad/__main__.py,sha256=ihlmmkVf3X9ITZMsIls65ePFul3frU3NadMuvlLAtIw,135
|
|
3
|
+
test_notepad/cli.py,sha256=xk-IZaV5aA1Cd01UfFq-82lY0bxYTuKByICcBGbDUME,369
|
|
4
|
+
test_notepad-0.1.0.dist-info/METADATA,sha256=GXYPOH_eXbNFq-BVdgRalvV6sgNIrNjQ0d0CEsUmjAA,815
|
|
5
|
+
test_notepad-0.1.0.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
|
|
6
|
+
test_notepad-0.1.0.dist-info/entry_points.txt,sha256=ZXci-KSKB6oK0IszPqeDb94HNZLaKLk-reaM-1prPcM,55
|
|
7
|
+
test_notepad-0.1.0.dist-info/top_level.txt,sha256=KZVQ62fiWPn4cEklGy9jvJEfQ5Lb1ewuuTKTA3Won9k,13
|
|
8
|
+
test_notepad-0.1.0.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
test_notepad
|