-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathversion.py
More file actions
55 lines (44 loc) · 1.53 KB
/
version.py
File metadata and controls
55 lines (44 loc) · 1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#!/usr/bin/env python3
"""
NCSI Resolver Version Information
This module provides version information for all NCSI Resolver components.
"""
# Version information
__version__ = "0.7.12"
__author__ = "Dustin Darcy"
__copyright__ = "Copyright 2025-2026"
# Component descriptions
DESCRIPTIONS = {
"server": "Windows Network Connectivity Status Indicator Resolver Server",
"installer": "Windows Network Connectivity Status Indicator Resolver Installer",
"system_config": "Windows System Configuration for NCSI Resolver",
"service_installer": "NCSI Resolver Service Installer",
}
def get_version_info(component=None):
"""
Get version information for a specific component.
Args:
component: Component name (server, installer, system_config, service_installer)
Returns:
Dict: Version information
"""
info = {
"version": __version__,
"author": __author__,
"copyright": __copyright__,
}
if component and component in DESCRIPTIONS:
info["description"] = DESCRIPTIONS[component]
else:
info["description"] = "Windows Network Connectivity Status Indicator Resolver"
return info
def get_version_string(component=None):
"""
Get formatted version string for a component.
Args:
component: Component name (server, installer, system_config, service_installer)
Returns:
str: Formatted version string
"""
info = get_version_info(component)
return f"{info['description']} v{info['version']}"