tlscheck 0.2.2__tar.gz → 0.2.3__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: tlscheck
3
- Version: 0.2.2
3
+ Version: 0.2.3
4
4
  Summary: Textual TUI that audits TLS versions, ciphers, key exchange and post-quantum readiness of hosts listed in domains.ini
5
5
  Author: Andreas Jung
6
6
  Author-email: Andreas Jung <info@zopyx.com>
@@ -30,6 +30,20 @@ per-host grade. It also checks the HTTP status, optional basic auth and the
30
30
  - `openssl` on `PATH`. OpenSSL >= 3.5 is required for post-quantum group
31
31
  probing; the probe engine shells out to `openssl s_client -brief`.
32
32
 
33
+ ## Install
34
+
35
+ No checkout required — `uv` fetches Python 3.14 and the dependencies:
36
+
37
+ ```bash
38
+ uvx tlscheck # run without installing (needs an interactive terminal)
39
+ uv tool install tlscheck # install the `tlscheck` command globally
40
+ tlscheck --domains domains.ini
41
+ ```
42
+
43
+ `uvx tlscheck` starts the TUI in the current directory and reads `./domains.ini`.
44
+ A TTY is required; use `python -m tlscheck.probe --ini domains.ini` for
45
+ non-interactive runs.
46
+
33
47
  ## Usage
34
48
 
35
49
  ```bash
@@ -20,6 +20,20 @@ per-host grade. It also checks the HTTP status, optional basic auth and the
20
20
  - `openssl` on `PATH`. OpenSSL >= 3.5 is required for post-quantum group
21
21
  probing; the probe engine shells out to `openssl s_client -brief`.
22
22
 
23
+ ## Install
24
+
25
+ No checkout required — `uv` fetches Python 3.14 and the dependencies:
26
+
27
+ ```bash
28
+ uvx tlscheck # run without installing (needs an interactive terminal)
29
+ uv tool install tlscheck # install the `tlscheck` command globally
30
+ tlscheck --domains domains.ini
31
+ ```
32
+
33
+ `uvx tlscheck` starts the TUI in the current directory and reads `./domains.ini`.
34
+ A TTY is required; use `python -m tlscheck.probe --ini domains.ini` for
35
+ non-interactive runs.
36
+
23
37
  ## Usage
24
38
 
25
39
  ```bash
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "tlscheck"
3
- version = "0.2.2"
3
+ version = "0.2.3"
4
4
  description = "Textual TUI that audits TLS versions, ciphers, key exchange and post-quantum readiness of hosts listed in domains.ini"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.14"
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "tlscheck"
3
- version = "0.2.2"
3
+ version = "0.2.3"
4
4
  description = "Textual TUI that audits TLS versions, ciphers, key exchange and post-quantum readiness of hosts listed in domains.ini"
5
5
  readme = "README.md"
6
6
  authors = [
@@ -657,6 +657,11 @@ def build_parser() -> argparse.ArgumentParser:
657
657
  prog="tlscheck",
658
658
  description="Scan TLS endpoints and display their protocol, cipher and PQ support in a TUI.",
659
659
  )
660
+ parser.add_argument(
661
+ "--version",
662
+ action="version",
663
+ version=f"%(prog)s {_package_version()}",
664
+ )
660
665
  parser.add_argument(
661
666
  "--domains",
662
667
  type=Path,
@@ -667,6 +672,15 @@ def build_parser() -> argparse.ArgumentParser:
667
672
  return parser
668
673
 
669
674
 
675
+ def _package_version() -> str:
676
+ from importlib.metadata import PackageNotFoundError, version
677
+
678
+ try:
679
+ return version("tlscheck")
680
+ except PackageNotFoundError: # running from a source tree without install
681
+ return "unknown"
682
+
683
+
670
684
  def main(argv: list[str] | None = None) -> None:
671
685
  args = build_parser().parse_args(argv)
672
686
  TlsCheckApp(domains_path=args.domains).run()
File without changes
File without changes