libs.bootstrap.app_config module¶
libs/bootstrap/app_config.py
- class libs.bootstrap.app_config.AppConfig¶
Bases:
objectアプリケーション設定
- class FixedWords¶
Bases:
object非表示項目用固定ワード
- __init__(flying=<factory>, yakuman=<factory>, regulation=<factory>, other=<factory>)¶
- Parameters:
flying (set[str])
yakuman (set[str])
regulation (set[str])
other (set[str])
- Return type:
None
- flying: set[str]¶
トビ関連ワード
- other: set[str]¶
その他ワード
- regulation: set[str]¶
レギュレーション関連ワード
- yakuman: set[str]¶
役満関連ワード
- __init__(config_file)¶
- Parameters:
config_file (Path)
- Return type:
None
- alias: AliasSection¶
aliasセクション設定値
- badge: BadgeDisplay¶
バッジ設定
- config_dir: Path¶
設定ファイルが保存されているディレクトリパス
- config_file: Path¶
メイン設定ファイルパス
- dropitems¶
非表示項目リスト
- graph: SubCommands¶
graphセクション設定値
- help: SubCommands¶
helpセクション設定値
- initialization()¶
設定ファイル読み込み
- Return type:
None
- member: MemberSection¶
memberセクション設定値
- overwrite(additional_config, section_name)¶
指定セクションを上書き
- Parameters:
additional_config (Path) – 追加設定ファイルパス
section_name (str) – セクション名
- Return type:
None
- ranking: SubCommands¶
rankingセクション設定値
- read_channel_config(section_name, ret_dict)¶
チャンネル個別設定読み込み
- Parameters:
section_name (str) – チャンネル個別設定セクション名
ret_dict (dict[str, Any]) – パラメータ
- Returns:
個別設定読み込み結果
Path: 読み込んだ設定ファイルパス
None: 読み込める設定ファイルがない
- Return type:
Optional[Path]
- report: SubCommands¶
reportセクション設定値
- resolve_channel_id(section_name=None)¶
メイン設定から優先度の高いチャンネルIDを取得する
- Parameters:
section_name (str, optional) – チャンネル個別設定セクション名
- Returns:
チャンネルID
- Return type:
str
- results: SubCommands¶
resultsセクション設定値
- script_dir: Path¶
スクリプトが保存されているディレクトリパス
- selected_service: ServiceType¶
連携先サービス
- setting: SettingSection¶
settingセクション設定値
- team: TeamSection¶
teamセクション設定値
- word_list(add_words=None)¶
設定されている値、キーワードをリスト化する
- Parameters:
add_words (list[str], optional) – リストに追加するワード. Defaults to None.
- Returns:
リスト化されたキーワード
- Return type:
list[str]
- class libs.bootstrap.app_config.BadgeDisplay¶
Bases:
BaseSectionバッジ表示
- class BadgeGradeSpec¶
Bases:
object段位
- __init__(table_name='', table=<factory>)¶
- Parameters:
table_name (str)
table (GradeTableDict)
- Return type:
None
- table: GradeTableDict¶
- table_name: str = ''¶
- grade: BadgeGradeSpec = BadgeDisplay.BadgeGradeSpec(table_name='', table={})¶
段位情報