-
Notifications
You must be signed in to change notification settings - Fork 121
Expand file tree
/
Copy path__init__.py
More file actions
88 lines (84 loc) · 1.91 KB
/
Copy path__init__.py
File metadata and controls
88 lines (84 loc) · 1.91 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
"""AIPerf code generation and documentation tools.
This package contains tools for generating:
- Plugin system artifacts (schemas, enums, overloads)
- CLI documentation
- Environment variable documentation
Usage:
./tools/generate_plugin_artifacts.py
./tools/generate_cli_docs.py
./tools/generate_env_vars_docs.py
"""
from tools._core import (
# Constants
CONSTRAINT_SYMBOLS,
GENERATED_FILE_HEADER,
# Error classes
CLIExtractionError,
EnumGenerationError,
GeneratedFile,
# Generator infrastructure
Generator,
GeneratorError,
GeneratorResult,
OverloadGenerationError,
ParseError,
SchemaGenerationError,
YAMLLoadError,
# Console output
console,
error_console,
main,
make_generated_header,
md_frontmatter,
# Text utilities
normalize_text,
print_error,
print_generated,
print_out_of_date,
print_section,
print_step,
print_up_to_date,
print_updated,
print_warning,
run,
# File utilities
write_if_changed,
)
__all__ = [
# Constants
"CONSTRAINT_SYMBOLS",
"GENERATED_FILE_HEADER",
"md_frontmatter",
"make_generated_header",
# Error classes
"CLIExtractionError",
"EnumGenerationError",
"GeneratorError",
"OverloadGenerationError",
"ParseError",
"SchemaGenerationError",
"YAMLLoadError",
# Console output
"console",
"error_console",
"print_error",
"print_generated",
"print_out_of_date",
"print_section",
"print_step",
"print_up_to_date",
"print_updated",
"print_warning",
# File utilities
"write_if_changed",
# Text utilities
"normalize_text",
# Generator infrastructure
"Generator",
"GeneratedFile",
"GeneratorResult",
"main",
"run",
]