summary.py¶
-
class
summary.ContextType[ソース]¶ ベースクラス:
enum.IntEnumAn enumeration.
-
Duration= 2¶
-
FilingDate= 0¶
-
Instant= 1¶
-
-
summary.collect_values(edinetCode: str, values, major_context_names, stats, el: xml.etree.ElementTree.Element)[ソース]¶ XBRLファイルの内容を読む。
-
summary.concatenate_summary(cpu_count: int)[ソース]¶ サブプロセスで作ったCSVファイルを1つにまとめる。
- パラメータ
cpu_count (int) -- CPU数
-
summary.context_display_name(context_ref: str)[ソース]¶ コンテストの日本語名を返す。
- パラメータ
context_ref (str) -- コンテスト名
- 戻り値
コンテストの日本語名
- 戻り値の型
str
-
summary.get_context_type(context_name: str)[ソース]¶ コンテストのタイプを返す。
0: 提出日時点
1: 会計末時点
2: 会計期間
- パラメータ
context_name (str) -- コンテスト名
- 戻り値
コンテストのタイプ
- 戻り値の型
int
-
summary.get_xbrl_root(cpu_count, cpu_id)[ソース]¶ CPUごとのサブプロセスの処理
EDINETコードをCPU数で割った余りがCPU-IDに等しければ処理をする。
- パラメータ
cpu_count (int) -- CPU数
cpu_id (int) -- CPU-ID (0, ..., CPU数 - 1)
- 戻り値
XBRLファイルの名前とパースしたルート
-
summary.make_summary(fixed_ids_arg, cpu_count, cpu_id, ns_xsd_dic_arg, verbose_label_dic_arg, all_account_ids_arg, filing_date_account_ids_arg)[ソース]¶ CPUごとのサブプロセスの処理
EDINETコードをCPU数で割った余りがCPU-IDに等しければ処理をする。
- パラメータ
cpu_count (int) -- CPU数
cpu_id (int) -- CPU-ID (0, ..., CPU数 - 1)
ns_xsd_dic_arg -- スキーマの辞書