ssb-libtest21 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 @@
1
+ """SSB Libtest21."""
@@ -0,0 +1,13 @@
1
+ """Command-line interface."""
2
+
3
+ import click
4
+
5
+
6
+ @click.command()
7
+ @click.version_option()
8
+ def main() -> None:
9
+ """SSB Libtest21."""
10
+
11
+
12
+ if __name__ == "__main__":
13
+ main(prog_name="ssb-libtest21") # pragma: no cover
@@ -0,0 +1,51 @@
1
+ """A collection of useful functions.
2
+
3
+ The template and this example uses Google style docstrings as described at:
4
+ https://sphinxcontrib-napoleon.readthedocs.io/en/latest/example_google.html
5
+
6
+ """
7
+
8
+ from math import sqrt
9
+
10
+
11
+ def is_prime(number: int) -> bool:
12
+ """Check if the given number is a prime number.
13
+
14
+ Args:
15
+ number: The number to check.
16
+
17
+ Returns:
18
+ True if the number is a prime number. False otherwise.
19
+ """
20
+ if number <= 1:
21
+ return False
22
+ return all(number % i != 0 for i in range(2, int(sqrt(number)) + 1))
23
+
24
+
25
+ def example_function(number1: int, number2: int) -> str:
26
+ """Compare two integers.
27
+
28
+ This is merely an example function can be deleted. It is used to show and test generating
29
+ documentation from code, type hinting, testing, and testing examples
30
+ in the code.
31
+
32
+
33
+ Args:
34
+ number1: The first number.
35
+ number2: The second number, which will be compared to number1.
36
+
37
+ Returns:
38
+ A string describing which number is the greatest.
39
+
40
+ Examples:
41
+ Examples should be written in doctest format, and should illustrate how
42
+ to use the function.
43
+
44
+ >>> example_function(1, 2)
45
+ 1 is less than 2
46
+
47
+ """
48
+ if number1 < number2:
49
+ return f"{number1} is less than {number2}"
50
+
51
+ return f"{number1} is greater than or equal to {number2}"
ssb_libtest21/py.typed ADDED
File without changes
@@ -0,0 +1,100 @@
1
+ Metadata-Version: 2.4
2
+ Name: ssb-libtest21
3
+ Version: 0.0.1
4
+ Summary: SSB Libtest21
5
+ License-Expression: MIT
6
+ License-File: LICENSE
7
+ Author: Arne Sørli
8
+ Author-email: arne.sorli@ssb.no
9
+ Maintainer: Statistics Norway, IT-partner Department (703)
10
+ Requires-Python: >=3.12
11
+ Classifier: Development Status :: 4 - Beta
12
+ Classifier: Programming Language :: Python :: 3
13
+ Classifier: Programming Language :: Python :: 3.12
14
+ Classifier: Programming Language :: Python :: 3.13
15
+ Classifier: Programming Language :: Python :: 3.14
16
+ Classifier: Programming Language :: Python :: 3.15
17
+ Requires-Dist: click (>=8.0.1)
18
+ Project-URL: Changelog, https://github.com/statisticsnorway/ssb-libtest21/releases
19
+ Project-URL: Documentation, https://statisticsnorway.github.io/ssb-libtest21
20
+ Project-URL: Homepage, https://github.com/statisticsnorway/ssb-libtest21
21
+ Project-URL: Repository, https://github.com/statisticsnorway/ssb-libtest21
22
+ Description-Content-Type: text/markdown
23
+
24
+ # SSB Libtest21
25
+
26
+ [![PyPI](https://img.shields.io/pypi/v/ssb-libtest21.svg)][pypi status]
27
+ [![Status](https://img.shields.io/pypi/status/ssb-libtest21.svg)][pypi status]
28
+ [![Python Version](https://img.shields.io/pypi/pyversions/ssb-libtest21)][pypi status]
29
+ [![License](https://img.shields.io/pypi/l/ssb-libtest21)][license]
30
+
31
+ [![Documentation](https://github.com/statisticsnorway/ssb-libtest21/actions/workflows/docs.yml/badge.svg)][documentation]
32
+ [![Tests](https://github.com/statisticsnorway/ssb-libtest21/actions/workflows/tests.yml/badge.svg)][tests]
33
+ [![Coverage](https://sonarcloud.io/api/project_badges/measure?project=statisticsnorway_ssb-libtest21&metric=coverage)][sonarcov]
34
+ [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=statisticsnorway_ssb-libtest21&metric=alert_status)][sonarquality]
35
+
36
+ [![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)][pre-commit]
37
+ [![Black](https://img.shields.io/badge/code%20style-black-000000.svg)][black]
38
+ [![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
39
+ [![Poetry](https://img.shields.io/endpoint?url=https://python-poetry.org/badge/v0.json)][poetry]
40
+
41
+ [pypi status]: https://pypi.org/project/ssb-libtest21/
42
+ [documentation]: https://statisticsnorway.github.io/ssb-libtest21
43
+ [tests]: https://github.com/statisticsnorway/ssb-libtest21/actions?workflow=Tests
44
+ [sonarcov]: https://sonarcloud.io/summary/overall?id=statisticsnorway_ssb-libtest21
45
+ [sonarquality]: https://sonarcloud.io/summary/overall?id=statisticsnorway_ssb-libtest21
46
+ [pre-commit]: https://github.com/pre-commit/pre-commit
47
+ [black]: https://github.com/psf/black
48
+ [poetry]: https://python-poetry.org/
49
+
50
+ ## Features
51
+
52
+ - TODO
53
+
54
+ ## Requirements
55
+
56
+ - TODO
57
+
58
+ ## Installation
59
+
60
+ You can install _SSB Libtest21_ via [pip] from [PyPI]:
61
+
62
+ ```console
63
+ pip install ssb-libtest21
64
+ ```
65
+
66
+ ## Usage
67
+
68
+ Please see the [Reference Guide] for details.
69
+
70
+ ## Contributing
71
+
72
+ Contributions are very welcome.
73
+ To learn more, see the [Contributor Guide].
74
+
75
+ ## License
76
+
77
+ Distributed under the terms of the [MIT license][license],
78
+ _SSB Libtest21_ is free and open source software.
79
+
80
+ ## Issues
81
+
82
+ If you encounter any problems,
83
+ please [file an issue] along with a detailed description.
84
+
85
+ ## Credits
86
+
87
+ This project was generated from [Statistics Norway]'s [SSB PyPI Template].
88
+
89
+ [statistics norway]: https://www.ssb.no/en
90
+ [pypi]: https://pypi.org/
91
+ [ssb pypi template]: https://github.com/statisticsnorway/ssb-pypitemplate
92
+ [file an issue]: https://github.com/statisticsnorway/ssb-libtest21/issues
93
+ [pip]: https://pip.pypa.io/
94
+
95
+ <!-- github-only -->
96
+
97
+ [license]: https://github.com/statisticsnorway/ssb-libtest21/blob/main/LICENSE
98
+ [contributor guide]: https://github.com/statisticsnorway/ssb-libtest21/blob/main/CONTRIBUTING.md
99
+ [reference guide]: https://statisticsnorway.github.io/ssb-libtest21/reference.html
100
+
@@ -0,0 +1,9 @@
1
+ ssb_libtest21/__init__.py,sha256=ugViB2cuOQ3ItyxnNkfA42djUKtPdtdC4spgr_hq40o,21
2
+ ssb_libtest21/__main__.py,sha256=zgdCJhcFBagoGdpSvHf0r_c8_8mHR3_GKiXrunxGKZM,217
3
+ ssb_libtest21/functions.py,sha256=DHGrXy89IKYnNTbxIVhi3DDaIyA1aKjLIiMsc_r8T8Q,1351
4
+ ssb_libtest21/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
+ ssb_libtest21-0.0.1.dist-info/METADATA,sha256=ZhB1kz-gPIArvCJNNWL_s5JL10_8TCR4K9AFtxmXSFc,3878
6
+ ssb_libtest21-0.0.1.dist-info/WHEEL,sha256=L-WvLdSBvJWHXv5zrQxDvNRnIgoBzLUpcbuiw19KCuQ,88
7
+ ssb_libtest21-0.0.1.dist-info/entry_points.txt,sha256=cIyMLpaGEPlSyLWpMXbJfTKPs7-_FDgtozO459qxIM0,61
8
+ ssb_libtest21-0.0.1.dist-info/licenses/LICENSE,sha256=-vaqayBT7ckDxFZKgtJx6YCvyJswmomMkEb9mRvRKVk,1073
9
+ ssb_libtest21-0.0.1.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: poetry-core 2.5.0
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,3 @@
1
+ [console_scripts]
2
+ ssb-libtest21=ssb_libtest21.__main__:main
3
+
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright © 2026 Statistics Norway
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.