Functions | Variables
performance.scenario_config_exporter Namespace Reference

Functions

str category_string (Iterable[str] categories, str category)
 
None dump_to_json_files (Iterable[Dict[str, Any]] scenarios, str filename_prefix)
 
Iterable[LanguageConfiggen_scenario_languages (str category)
 
Iterable[Dict[str, Any]] gen_scenarios (str language_name, Callable[[Dict[str, Any]], bool] scenario_filter_function)
 
None main ()
 
Callable[[Dict[str, Any]], boolscenario_filter (str scenario_name_regex='.*', str category='all', str client_language='', str server_language='')
 

Variables

 LanguageConfig
 

Function Documentation

◆ category_string()

str performance.scenario_config_exporter.category_string ( Iterable[str]  categories,
str  category 
)
Converts a list of categories into a single string for counting.

Definition at line 57 of file scenario_config_exporter.py.

◆ dump_to_json_files()

None performance.scenario_config_exporter.dump_to_json_files ( Iterable[Dict[str, Any]]  scenarios,
str  filename_prefix 
)
Dumps a list of scenarios to JSON files

Definition at line 131 of file scenario_config_exporter.py.

◆ gen_scenario_languages()

Iterable[LanguageConfig] performance.scenario_config_exporter.gen_scenario_languages ( str  category)
Generates tuples containing the languages specified in each scenario.

Definition at line 71 of file scenario_config_exporter.py.

◆ gen_scenarios()

Iterable[Dict[str, Any]] performance.scenario_config_exporter.gen_scenarios ( str  language_name,
Callable[[Dict[str, Any]], bool]   scenario_filter_function 
)
Generates scenarios that match a given filter function.

Definition at line 120 of file scenario_config_exporter.py.

◆ main()

None performance.scenario_config_exporter.main ( )

Definition at line 146 of file scenario_config_exporter.py.

◆ scenario_filter()

Callable[[Dict[str, Any]], bool] performance.scenario_config_exporter.scenario_filter ( str   scenario_name_regex = '.*',
str   category = 'all',
str   client_language = '',
str   server_language = '' 
)
Returns a function to filter scenarios to process.

Definition at line 87 of file scenario_config_exporter.py.

Variable Documentation

◆ LanguageConfig

performance.scenario_config_exporter.LanguageConfig
Initial value:
1 = NamedTuple('LanguageConfig', [('category', str),
2  ('language', str),
3  ('client_language', str),
4  ('server_language', str)])

Definition at line 51 of file scenario_config_exporter.py.



grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:41