cal-docs-server 3.0.0b1__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
+ /_version_generated.py
@@ -0,0 +1 @@
1
+
@@ -0,0 +1,64 @@
1
+ # ----------------------------------------------------------------------------------------
2
+ # cal_docs_server
3
+ # ---------------
4
+ #
5
+ # Entry point. Checks dependencies and starts the asyncio process and launches
6
+ # main.py
7
+ #
8
+ # License
9
+ # -------
10
+ # MIT License - Copyright 2025-2026 Cyber Assessment Labs
11
+ #
12
+ # Authors
13
+ # -------
14
+ #
15
+ # bena
16
+ #
17
+ # History
18
+ # -------
19
+ #
20
+ # Mar 2024 - Created
21
+ # Dec 2025 - New version 2.
22
+ # ----------------------------------------------------------------------------------------
23
+
24
+ # ----------------------------------------------------------------------------------------
25
+ # Check python and dependencies
26
+ # ----------------------------------------------------------------------------------------
27
+
28
+ import sys
29
+
30
+ if sys.version_info < (3, 12):
31
+ print("Requires python 3.12 or greater", file=sys.stderr)
32
+ exit(1)
33
+
34
+ try:
35
+ import asyncio
36
+ import json5
37
+ import yaml
38
+
39
+ _ = (json5, yaml)
40
+ except ImportError:
41
+ print(
42
+ "Requires Python packages `asyncio`, `pyyaml` and `json5`\n"
43
+ "Run:\n python3 -m pip install -U asyncio pyyaml json5",
44
+ file=sys.stderr,
45
+ )
46
+ exit(1)
47
+
48
+ # ----------------------------------------------------------------------------------------
49
+ # Entry
50
+ # ----------------------------------------------------------------------------------------
51
+
52
+ import asyncio
53
+ from . import main
54
+
55
+ result: int = 1
56
+ try:
57
+ result = asyncio.run(main.main(sys.argv[1:]))
58
+ except KeyboardInterrupt:
59
+ # Avoids a messy exception dump when ctrl-c pressed
60
+ print()
61
+ print("---- Manually Terminated ----")
62
+ print("")
63
+
64
+ exit(result)
@@ -0,0 +1,4 @@
1
+ # This file is auto-generated by Hatchling. As such, do not:
2
+ # - modify
3
+ # - track in version control e.g. be sure to add to .gitignore
4
+ __version__ = VERSION = '3.0.0b1'