hello-fze 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,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 med zied a
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 all
13
+ 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 THE
21
+ SOFTWARE.
@@ -0,0 +1,40 @@
1
+ Metadata-Version: 2.4
2
+ Name: hello-fze
3
+ Version: 0.1.0
4
+ Summary: A tiny hello-world package that bundles scripts.zip
5
+ Project-URL: Homepage, https://github.com/medzied/hello-fze
6
+ Author-email: med zied a <medzied.arbi@gmail.com>
7
+ License-Expression: MIT
8
+ License-File: LICENSE
9
+ Keywords: example,hello
10
+ Classifier: License :: OSI Approved :: MIT License
11
+ Classifier: Operating System :: OS Independent
12
+ Classifier: Programming Language :: Python :: 3
13
+ Requires-Python: >=3.9
14
+ Description-Content-Type: text/markdown
15
+
16
+ # hello-fze
17
+
18
+ A tiny example package that prints a hello-world greeting and bundles `scripts.zip`.
19
+
20
+ ## Install
21
+
22
+ ```bash
23
+ pip install hello-fze
24
+ ```
25
+
26
+ ## Usage
27
+
28
+ ```python
29
+ from hello_fze import hello, get_scripts_zip_path
30
+
31
+ print(hello()) # Hello, world!
32
+ print(hello("Med")) # Hello, Med!
33
+ print(get_scripts_zip_path()) # path to the bundled scripts.zip
34
+ ```
35
+
36
+ Or from the command line:
37
+
38
+ ```bash
39
+ hello-fze
40
+ ```
@@ -0,0 +1,25 @@
1
+ # hello-fze
2
+
3
+ A tiny example package that prints a hello-world greeting and bundles `scripts.zip`.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ pip install hello-fze
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ```python
14
+ from hello_fze import hello, get_scripts_zip_path
15
+
16
+ print(hello()) # Hello, world!
17
+ print(hello("Med")) # Hello, Med!
18
+ print(get_scripts_zip_path()) # path to the bundled scripts.zip
19
+ ```
20
+
21
+ Or from the command line:
22
+
23
+ ```bash
24
+ hello-fze
25
+ ```
@@ -0,0 +1,31 @@
1
+ [build-system]
2
+ requires = ["hatchling"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "hello-fze"
7
+ version = "0.1.0"
8
+ description = "A tiny hello-world package that bundles scripts.zip"
9
+ readme = "README.md"
10
+ requires-python = ">=3.9"
11
+ license = "MIT"
12
+ authors = [{ name = "med zied a", email = "medzied.arbi@gmail.com" }]
13
+ keywords = ["hello", "example"]
14
+ classifiers = [
15
+ "Programming Language :: Python :: 3",
16
+ "License :: OSI Approved :: MIT License",
17
+ "Operating System :: OS Independent",
18
+ ]
19
+ dependencies = []
20
+
21
+ [project.scripts]
22
+ hello-fze = "hello_fze.hello:main"
23
+
24
+ [project.urls]
25
+ Homepage = "https://github.com/medzied/hello-fze"
26
+
27
+ [tool.hatch.build.targets.wheel]
28
+ packages = ["src/hello_fze"]
29
+
30
+ [tool.hatch.build.targets.wheel.force-include]
31
+ "src/hello_fze/data/scripts.zip" = "hello_fze/data/scripts.zip"
Binary file
@@ -0,0 +1,4 @@
1
+ from .hello import hello, get_scripts_zip_path
2
+
3
+ __all__ = ["hello", "get_scripts_zip_path"]
4
+ __version__ = "0.1.0"
@@ -0,0 +1,20 @@
1
+ from importlib import resources
2
+
3
+
4
+ def hello(name: str = "world") -> str:
5
+ """Return a friendly greeting."""
6
+ return f"Hello, {name}!"
7
+
8
+
9
+ def get_scripts_zip_path() -> str:
10
+ """Return the filesystem path to the bundled scripts.zip."""
11
+ with resources.as_file(
12
+ resources.files("hello_fze").joinpath("data/scripts.zip")
13
+ ) as path:
14
+ return str(path)
15
+
16
+
17
+ def main() -> None:
18
+ """Console entry point."""
19
+ print(hello())
20
+ print(f"Bundled archive: {get_scripts_zip_path()}")