proteum 0.0.0__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.
proteum/__init__.py ADDED
@@ -0,0 +1,3 @@
1
+ """Public package metadata for Proteum."""
2
+
3
+ __version__ = "0.0.0"
proteum/__main__.py ADDED
@@ -0,0 +1,5 @@
1
+ """Run the Proteum command-line interface with ``python -m proteum``."""
2
+
3
+ from proteum.cli import main
4
+
5
+ raise SystemExit(main())
proteum/cli.py ADDED
@@ -0,0 +1,25 @@
1
+ """Command-line interface for Proteum."""
2
+
3
+ from argparse import ArgumentParser
4
+ from collections.abc import Sequence
5
+
6
+ from proteum import __version__
7
+
8
+
9
+ def build_parser() -> ArgumentParser:
10
+ """Build the Proteum command-line argument parser."""
11
+ parser = ArgumentParser(prog="proteum")
12
+ parser.add_argument(
13
+ "--version",
14
+ action="version",
15
+ version=f"%(prog)s {__version__}",
16
+ )
17
+ return parser
18
+
19
+
20
+ def main(argv: Sequence[str] | None = None) -> int:
21
+ """Confirm that Proteum is installed and ready."""
22
+ parser = build_parser()
23
+ parser.parse_args(argv)
24
+ print("Proteum is installed and ready.")
25
+ return 0
@@ -0,0 +1,36 @@
1
+ Metadata-Version: 2.4
2
+ Name: proteum
3
+ Version: 0.0.0
4
+ Summary: An early-preview Python package with a small installation-check CLI
5
+ Requires-Python: >=3.10
6
+ Description-Content-Type: text/markdown
7
+
8
+ # Proteum
9
+
10
+ Proteum is an early-preview Python package. Version `0.0.0` provides a small
11
+ command-line interface that confirms the package is installed and reports the
12
+ installed version.
13
+
14
+ ## Install
15
+
16
+ ```console
17
+ python -m pip install proteum
18
+ ```
19
+
20
+ ## Use
21
+
22
+ Confirm the installation:
23
+
24
+ ```console
25
+ $ proteum
26
+ Proteum is installed and ready.
27
+ ```
28
+
29
+ Report the version:
30
+
31
+ ```console
32
+ $ proteum --version
33
+ proteum 0.0.0
34
+ ```
35
+
36
+ The public interface will grow in later preview releases.
@@ -0,0 +1,7 @@
1
+ proteum/__init__.py,sha256=qQ4as9XVHCxeoR12y6WfxV43OBSi9efsIDdnZoncF7M,66
2
+ proteum/__main__.py,sha256=7LTcLtm6GAIc8t_-RcNpGnSPiLnIeuNkVE2wxjmNmAY,129
3
+ proteum/cli.py,sha256=FwQ04YJf8jYHFmR2KpAgRwURKpwhsT33wsVxcMW_86k,653
4
+ proteum-0.0.0.dist-info/METADATA,sha256=j0O-GmgOVUGgKbiHAoc8vR9SY48qYHNnivI3001CKiU,659
5
+ proteum-0.0.0.dist-info/WHEEL,sha256=lCkmxWfQsSc9CfIClYeavTdQeEX2toPqufh9gI35EQA,87
6
+ proteum-0.0.0.dist-info/entry_points.txt,sha256=eLhBae9IOg-f_joeavCeIYF3g3ObjFAK35LniisKAzM,45
7
+ proteum-0.0.0.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.31.0
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ proteum = proteum.cli:main