pypi-sample-message 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 Sample Package Contributors
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,41 @@
1
+ Metadata-Version: 2.4
2
+ Name: pypi-sample-message
3
+ Version: 0.1.0
4
+ Summary: A sample PyPI package that prints a message.
5
+ License-Expression: MIT
6
+ Keywords: sample,pypi,demo
7
+ Classifier: Development Status :: 3 - Alpha
8
+ Classifier: Intended Audience :: Developers
9
+ Classifier: Programming Language :: Python :: 3
10
+ Classifier: Programming Language :: Python :: 3 :: Only
11
+ Classifier: Operating System :: OS Independent
12
+ Requires-Python: >=3.9
13
+ Description-Content-Type: text/markdown
14
+ License-File: LICENSE
15
+ Dynamic: license-file
16
+
17
+ # pypi-sample-message
18
+
19
+ A tiny sample Python package that only prints a message.
20
+
21
+ ## Install
22
+
23
+ ```sh
24
+ python3 -m pip install pypi-sample-message
25
+ ```
26
+
27
+ ## Use
28
+
29
+ Run the console command:
30
+
31
+ ```sh
32
+ pypi-sample-message
33
+ ```
34
+
35
+ Or call it from Python:
36
+
37
+ ```python
38
+ from pypi_sample_message import get_message
39
+
40
+ print(get_message())
41
+ ```
@@ -0,0 +1,25 @@
1
+ # pypi-sample-message
2
+
3
+ A tiny sample Python package that only prints a message.
4
+
5
+ ## Install
6
+
7
+ ```sh
8
+ python3 -m pip install pypi-sample-message
9
+ ```
10
+
11
+ ## Use
12
+
13
+ Run the console command:
14
+
15
+ ```sh
16
+ pypi-sample-message
17
+ ```
18
+
19
+ Or call it from Python:
20
+
21
+ ```python
22
+ from pypi_sample_message import get_message
23
+
24
+ print(get_message())
25
+ ```
@@ -0,0 +1,28 @@
1
+ [build-system]
2
+ requires = ["setuptools >= 77.0.3"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "pypi-sample-message"
7
+ version = "0.1.0"
8
+ description = "A sample PyPI package that prints a message."
9
+ readme = "README.md"
10
+ requires-python = ">=3.9"
11
+ license = "MIT"
12
+ keywords = ["sample", "pypi", "demo"]
13
+ classifiers = [
14
+ "Development Status :: 3 - Alpha",
15
+ "Intended Audience :: Developers",
16
+ "Programming Language :: Python :: 3",
17
+ "Programming Language :: Python :: 3 :: Only",
18
+ "Operating System :: OS Independent",
19
+ ]
20
+
21
+ [project.scripts]
22
+ pypi-sample-message = "pypi_sample_message.cli:main"
23
+
24
+ [tool.setuptools]
25
+ package-dir = { "" = "src" }
26
+
27
+ [tool.setuptools.packages.find]
28
+ where = ["src"]
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,6 @@
1
+ """Sample package that returns a fixed message."""
2
+
3
+ from .message import get_message
4
+
5
+ __all__ = ["get_message"]
6
+ __version__ = "0.1.0"
@@ -0,0 +1,11 @@
1
+ """Command-line entrypoint for the sample package."""
2
+
3
+ from .message import get_message
4
+
5
+
6
+ def main() -> None:
7
+ print(get_message())
8
+
9
+
10
+ if __name__ == "__main__":
11
+ main()
@@ -0,0 +1,8 @@
1
+ """Message helpers for the sample package."""
2
+
3
+ MESSAGE = "Hello from pypi-sample-message!"
4
+
5
+
6
+ def get_message() -> str:
7
+ """Return the sample package message."""
8
+ return MESSAGE
@@ -0,0 +1,41 @@
1
+ Metadata-Version: 2.4
2
+ Name: pypi-sample-message
3
+ Version: 0.1.0
4
+ Summary: A sample PyPI package that prints a message.
5
+ License-Expression: MIT
6
+ Keywords: sample,pypi,demo
7
+ Classifier: Development Status :: 3 - Alpha
8
+ Classifier: Intended Audience :: Developers
9
+ Classifier: Programming Language :: Python :: 3
10
+ Classifier: Programming Language :: Python :: 3 :: Only
11
+ Classifier: Operating System :: OS Independent
12
+ Requires-Python: >=3.9
13
+ Description-Content-Type: text/markdown
14
+ License-File: LICENSE
15
+ Dynamic: license-file
16
+
17
+ # pypi-sample-message
18
+
19
+ A tiny sample Python package that only prints a message.
20
+
21
+ ## Install
22
+
23
+ ```sh
24
+ python3 -m pip install pypi-sample-message
25
+ ```
26
+
27
+ ## Use
28
+
29
+ Run the console command:
30
+
31
+ ```sh
32
+ pypi-sample-message
33
+ ```
34
+
35
+ Or call it from Python:
36
+
37
+ ```python
38
+ from pypi_sample_message import get_message
39
+
40
+ print(get_message())
41
+ ```
@@ -0,0 +1,12 @@
1
+ LICENSE
2
+ README.md
3
+ pyproject.toml
4
+ src/pypi_sample_message/__init__.py
5
+ src/pypi_sample_message/cli.py
6
+ src/pypi_sample_message/message.py
7
+ src/pypi_sample_message.egg-info/PKG-INFO
8
+ src/pypi_sample_message.egg-info/SOURCES.txt
9
+ src/pypi_sample_message.egg-info/dependency_links.txt
10
+ src/pypi_sample_message.egg-info/entry_points.txt
11
+ src/pypi_sample_message.egg-info/top_level.txt
12
+ tests/test_message.py
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ pypi-sample-message = pypi_sample_message.cli:main
@@ -0,0 +1 @@
1
+ pypi_sample_message
@@ -0,0 +1,23 @@
1
+ import io
2
+ import unittest
3
+ from contextlib import redirect_stdout
4
+
5
+ from pypi_sample_message import get_message
6
+ from pypi_sample_message.cli import main
7
+
8
+
9
+ class MessageTests(unittest.TestCase):
10
+ def test_get_message(self):
11
+ self.assertEqual(get_message(), "Hello from pypi-sample-message!")
12
+
13
+ def test_main_prints_message(self):
14
+ output = io.StringIO()
15
+
16
+ with redirect_stdout(output):
17
+ main()
18
+
19
+ self.assertEqual(output.getvalue(), "Hello from pypi-sample-message!\n")
20
+
21
+
22
+ if __name__ == "__main__":
23
+ unittest.main()