greet-anyone 0.0.1__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,3 @@
1
+ from .core import greet
2
+
3
+ __all__ = ["greet"]
greet_anyone/cli.py ADDED
@@ -0,0 +1,16 @@
1
+ import argparse
2
+
3
+ from greet_anyone.core import greet
4
+
5
+
6
+ def main():
7
+ parser = argparse.ArgumentParser(description="Greet anyone.")
8
+ parser.add_argument("who", type=str, help="who to greet")
9
+ parser.add_argument("--exited", type=bool, default=False, help="adds a exclamation point at the end")
10
+ args = parser.parse_args()
11
+
12
+ print(greet(args.output, args.exited))
13
+
14
+
15
+ if __name__ == "__main__":
16
+ main()
greet_anyone/core.py ADDED
@@ -0,0 +1,2 @@
1
+ def greet(name: str, exited: bool = False) -> str:
2
+ return f"Hello {name}{"!" if exited else ""}"
@@ -0,0 +1,52 @@
1
+ Metadata-Version: 2.4
2
+ Name: greet_anyone
3
+ Version: 0.0.1
4
+ Summary: A library and cli to greet anyone.
5
+ Author-email: rotgruengelb <daniel+python-package-template@rotgruengelb.net>
6
+ License: MIT
7
+ Project-URL: Homepage, https://github.com/rotgruengelb/python-package-template
8
+ Project-URL: Documentation, https://github.com/rotgruengelb/python-package-template#readme
9
+ Project-URL: Source, https://github.com/rotgruengelb/python-package-template
10
+ Project-URL: Tracker, https://github.com/rotgruengelb/python-package-template/issues
11
+ Keywords: cli,tool
12
+ Classifier: Programming Language :: Python :: 3
13
+ Classifier: License :: OSI Approved :: MIT License
14
+ Classifier: Operating System :: OS Independent
15
+ Classifier: Intended Audience :: Developers
16
+ Classifier: Intended Audience :: End Users/Desktop
17
+ Classifier: Topic :: Utilities
18
+ Classifier: Development Status :: 5 - Production/Stable
19
+ Classifier: Environment :: Console
20
+ Requires-Python: >=3.12
21
+ Description-Content-Type: text/markdown
22
+ License-File: LICENSE
23
+ Dynamic: license-file
24
+
25
+ # greet_anyone
26
+
27
+ A library and cli to greet anyone.
28
+
29
+ ## Usage
30
+
31
+ ### CLI
32
+
33
+ ```
34
+ usage: cli.py [-h] [--exited EXITED] who
35
+
36
+ Greet anyone.
37
+
38
+ positional arguments:
39
+ who who to greet
40
+
41
+ options:
42
+ -h, --help show this help message and exit
43
+ --exited EXITED adds a exclamation point at the end
44
+ ```
45
+
46
+ #### Examples
47
+ ```sh
48
+ greet_anyone Traveler --exited true
49
+ ```
50
+
51
+ ## Features
52
+ - Greet anyone
@@ -0,0 +1,9 @@
1
+ greet_anyone/__init__.py,sha256=tca3QZIVVze8tfsWoSLgjptQv-_bPgsRt6uvLMOMopM,45
2
+ greet_anyone/cli.py,sha256=ISmfI6XSZzkB3nFxENKXTBjB6Sf4FdI7Ct0qJeicLwM,416
3
+ greet_anyone/core.py,sha256=O-zwHrvcbNA2M4IeMb96FLqOdnFjjE8s4zhJbOIL-vc,100
4
+ greet_anyone-0.0.1.dist-info/licenses/LICENSE,sha256=IL7dz7u4PKqCktqBnjQPytohvbRCQHJGJOKt47Fdr4g,1078
5
+ greet_anyone-0.0.1.dist-info/METADATA,sha256=x5v1xG2K-aRTrB0H8JfdIs_Q8PkrlryJCtH0AUqzEc0,1408
6
+ greet_anyone-0.0.1.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
7
+ greet_anyone-0.0.1.dist-info/entry_points.txt,sha256=bHzOcx9WWF8r6danYXqQwHnNl6CzejvdsWma-gw4ZPs,52
8
+ greet_anyone-0.0.1.dist-info/top_level.txt,sha256=FEw7IBxVDElvK7ySrFkOT5aCbPJFzeAQLBw2QUZC9YE,13
9
+ greet_anyone-0.0.1.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (80.10.2)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ cutstitch = greet_anyone.cli:main
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2024 rotgruengelb
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1 @@
1
+ greet_anyone