sample-hello-lib 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.
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"""sample_hello_lib: a tiny sample library to verify PyPI packaging works end-to-end."""
|
|
2
|
+
|
|
3
|
+
__version__ = "0.1.0"
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
def hello(name: str = "world") -> str:
|
|
7
|
+
"""Return a friendly greeting.
|
|
8
|
+
|
|
9
|
+
>>> hello("pypi")
|
|
10
|
+
'Hello, pypi!'
|
|
11
|
+
"""
|
|
12
|
+
return f"Hello, {name}!"
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
__all__ = ["hello", "__version__"]
|
sample_hello_lib/cli.py
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"""Command-line entry point for sample_hello_lib."""
|
|
2
|
+
|
|
3
|
+
import sys
|
|
4
|
+
|
|
5
|
+
from sample_hello_lib import hello
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
def main() -> int:
|
|
9
|
+
name = sys.argv[1] if len(sys.argv) > 1 else "world"
|
|
10
|
+
print(hello(name))
|
|
11
|
+
return 0
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
if __name__ == "__main__":
|
|
15
|
+
raise SystemExit(main())
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: sample-hello-lib
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: A tiny sample PyPI library used to verify packaging and installation end-to-end.
|
|
5
|
+
Project-URL: Homepage, https://pypi.org/project/sample-hello-lib/
|
|
6
|
+
Author: glocky001
|
|
7
|
+
License-Expression: MIT
|
|
8
|
+
Classifier: Operating System :: OS Independent
|
|
9
|
+
Classifier: Programming Language :: Python :: 3
|
|
10
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
11
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
12
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
13
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
15
|
+
Requires-Python: >=3.9
|
|
16
|
+
Description-Content-Type: text/markdown
|
|
17
|
+
|
|
18
|
+
# sample-hello-lib
|
|
19
|
+
|
|
20
|
+
A tiny sample PyPI library used to verify packaging and installation end-to-end.
|
|
21
|
+
|
|
22
|
+
## Install
|
|
23
|
+
|
|
24
|
+
```bash
|
|
25
|
+
pip install sample-hello-lib
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## Usage
|
|
29
|
+
|
|
30
|
+
```python
|
|
31
|
+
from sample_hello_lib import hello
|
|
32
|
+
|
|
33
|
+
print(hello("world")) # Hello, world!
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
Or from the command line:
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
sample-hello world
|
|
40
|
+
```
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
sample_hello_lib/__init__.py,sha256=lpvpwoIc34w4oGZRzvrh8GzsAyMiXbkE9VkWFD9t7Dg,304
|
|
2
|
+
sample_hello_lib/cli.py,sha256=rnRPXMfVpo-ap2_BCBhrR9D-3JkwYjogkciBCDdhjh8,273
|
|
3
|
+
sample_hello_lib-0.1.0.dist-info/METADATA,sha256=ICoIZsiMkDxBuihwiMklJxjWIArC20njwK2cWfu-PEg,985
|
|
4
|
+
sample_hello_lib-0.1.0.dist-info/WHEEL,sha256=2iZrJkDIkeDh0k9SikKMqFuRP-ua6mb4Ir1AsER4BEw,87
|
|
5
|
+
sample_hello_lib-0.1.0.dist-info/entry_points.txt,sha256=b2spKng3FFP74v_t7SpGBGdlT8Wm2AtTQkp-_wnybQM,59
|
|
6
|
+
sample_hello_lib-0.1.0.dist-info/RECORD,,
|