ssb-libtest24 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 Libtest24."""
@@ -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 Libtest24."""
10
+
11
+
12
+ if __name__ == "__main__":
13
+ main(prog_name="ssb-libtest24") # 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_libtest24/py.typed ADDED
File without changes
@@ -0,0 +1,99 @@
1
+ Metadata-Version: 2.4
2
+ Name: ssb-libtest24
3
+ Version: 0.0.1
4
+ Summary: SSB Libtest24
5
+ License-Expression: MIT
6
+ License-File: LICENSE
7
+ Author: Knut Viljar Hilstad
8
+ Author-email: kut@ssb.no
9
+ Requires-Python: >=3.12
10
+ Classifier: Development Status :: 4 - Beta
11
+ Classifier: Programming Language :: Python :: 3
12
+ Classifier: Programming Language :: Python :: 3.12
13
+ Classifier: Programming Language :: Python :: 3.13
14
+ Classifier: Programming Language :: Python :: 3.14
15
+ Classifier: Programming Language :: Python :: 3.15
16
+ Requires-Dist: click (>=8.0.1)
17
+ Project-URL: Changelog, https://github.com/statisticsnorway/ssb-libtest24/releases
18
+ Project-URL: Documentation, https://statisticsnorway.github.io/ssb-libtest24
19
+ Project-URL: Homepage, https://github.com/statisticsnorway/ssb-libtest24
20
+ Project-URL: Repository, https://github.com/statisticsnorway/ssb-libtest24
21
+ Description-Content-Type: text/markdown
22
+
23
+ # SSB Libtest24
24
+
25
+ [![PyPI](https://img.shields.io/pypi/v/ssb-libtest24.svg)][pypi status]
26
+ [![Status](https://img.shields.io/pypi/status/ssb-libtest24.svg)][pypi status]
27
+ [![Python Version](https://img.shields.io/pypi/pyversions/ssb-libtest24)][pypi status]
28
+ [![License](https://img.shields.io/pypi/l/ssb-libtest24)][license]
29
+
30
+ [![Documentation](https://github.com/statisticsnorway/ssb-libtest24/actions/workflows/docs.yml/badge.svg)][documentation]
31
+ [![Tests](https://github.com/statisticsnorway/ssb-libtest24/actions/workflows/tests.yml/badge.svg)][tests]
32
+ [![Coverage](https://sonarcloud.io/api/project_badges/measure?project=statisticsnorway_ssb-libtest24&metric=coverage)][sonarcov]
33
+ [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=statisticsnorway_ssb-libtest24&metric=alert_status)][sonarquality]
34
+
35
+ [![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)][pre-commit]
36
+ [![Black](https://img.shields.io/badge/code%20style-black-000000.svg)][black]
37
+ [![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)
38
+ [![Poetry](https://img.shields.io/endpoint?url=https://python-poetry.org/badge/v0.json)][poetry]
39
+
40
+ [pypi status]: https://pypi.org/project/ssb-libtest24/
41
+ [documentation]: https://statisticsnorway.github.io/ssb-libtest24
42
+ [tests]: https://github.com/statisticsnorway/ssb-libtest24/actions?workflow=Tests
43
+ [sonarcov]: https://sonarcloud.io/summary/overall?id=statisticsnorway_ssb-libtest24
44
+ [sonarquality]: https://sonarcloud.io/summary/overall?id=statisticsnorway_ssb-libtest24
45
+ [pre-commit]: https://github.com/pre-commit/pre-commit
46
+ [black]: https://github.com/psf/black
47
+ [poetry]: https://python-poetry.org/
48
+
49
+ ## Features
50
+
51
+ - TODO
52
+
53
+ ## Requirements
54
+
55
+ - TODO
56
+
57
+ ## Installation
58
+
59
+ You can install _SSB Libtest24_ via [pip] from [PyPI]:
60
+
61
+ ```console
62
+ pip install ssb-libtest24
63
+ ```
64
+
65
+ ## Usage
66
+
67
+ Please see the [Reference Guide] for details.
68
+
69
+ ## Contributing
70
+
71
+ Contributions are very welcome.
72
+ To learn more, see the [Contributor Guide].
73
+
74
+ ## License
75
+
76
+ Distributed under the terms of the [MIT license][license],
77
+ _SSB Libtest24_ is free and open source software.
78
+
79
+ ## Issues
80
+
81
+ If you encounter any problems,
82
+ please [file an issue] along with a detailed description.
83
+
84
+ ## Credits
85
+
86
+ This project was generated from [Statistics Norway]'s [SSB PyPI Template].
87
+
88
+ [statistics norway]: https://www.ssb.no/en
89
+ [pypi]: https://pypi.org/
90
+ [ssb pypi template]: https://github.com/statisticsnorway/ssb-pypitemplate
91
+ [file an issue]: https://github.com/statisticsnorway/ssb-libtest24/issues
92
+ [pip]: https://pip.pypa.io/
93
+
94
+ <!-- github-only -->
95
+
96
+ [license]: https://github.com/statisticsnorway/ssb-libtest24/blob/main/LICENSE
97
+ [contributor guide]: https://github.com/statisticsnorway/ssb-libtest24/blob/main/CONTRIBUTING.md
98
+ [reference guide]: https://statisticsnorway.github.io/ssb-libtest24/reference.html
99
+
@@ -0,0 +1,9 @@
1
+ ssb_libtest24/__init__.py,sha256=ofDOeoJXEpjwbHtLKgx7lBP8NxLRvqe3IFYx8MgbPs0,21
2
+ ssb_libtest24/__main__.py,sha256=G382uqksLCfMvwjZah-pA4xXY8umEXaXicJ4SfVb07k,217
3
+ ssb_libtest24/functions.py,sha256=DHGrXy89IKYnNTbxIVhi3DDaIyA1aKjLIiMsc_r8T8Q,1351
4
+ ssb_libtest24/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
+ ssb_libtest24-0.0.1.dist-info/METADATA,sha256=8QqSEqAu7OEyJklKGebu8_RWrQqK42GSG9neKPCNxn4,3820
6
+ ssb_libtest24-0.0.1.dist-info/WHEEL,sha256=L-WvLdSBvJWHXv5zrQxDvNRnIgoBzLUpcbuiw19KCuQ,88
7
+ ssb_libtest24-0.0.1.dist-info/entry_points.txt,sha256=aManHhZRbFkjDbEzKtbzhQdZe0xqmbfoJdDUGbLTmLQ,61
8
+ ssb_libtest24-0.0.1.dist-info/licenses/LICENSE,sha256=-vaqayBT7ckDxFZKgtJx6YCvyJswmomMkEb9mRvRKVk,1073
9
+ ssb_libtest24-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-libtest24=ssb_libtest24.__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.