edinet-python
- Download the documents from EDINET.
- Use official EDINET API.
- Extract contents from XBRL.
- Main target of parser is annual reports.
How to use
Install
pip install edinet-python
1. Download the documents from EDINET.
1.1 Get document list of specific day
import edinet
documents = edinet.api.documents.get("2019-01-31")
print(f"Number of documents is {len(documents.list)}")
print(f"Title of first document is {documents.list[0].title}")
when only getting the list metadata (number of documents).
import edinet
metadata = edinet.api.metadata.get("2019-01-31")
print(f"Number of documents is {metadata.count}")
1.2 Get document by document id
from pathlib import Path
import edinet
xbrl_path = edinet.api.document.get_xbrl("S100FGR9", save_dir=Path.cwd())
pdf_path = edinet.api.document.get_pdf("S100FGR9", save_dir=Path.cwd())
2. Extract contents from XBRL
from edinet.xbrl_file import XBRLFile
from edinet.parser.aspects.business import Business
xbrl = XBRLFile("path/to/xbrl/file")
content = xbrl.parse_by(Business).policy_environment_issue_etc
Following aspects are supported. The format is based on 三号様式 that is commonly used for annual report.
- 文書情報:
Metadata- 会計年度:
fiscal_year - 会計期間種別:
fiscal_period_type
- 会計年度:
- 企業の概況:
Company- 主要な経営指標等の推移
- 沿革:
history - 事業の内容:
business_description - 関係会社の状況:
affiliated_entities - 従業員の状況:
employees
- 事業の状況:
Business- 経営方針、経営環境及び対処すべき課題等:
policy_environment_issue_etc - 事業等のリスク:
risks - 経営者による財政状態、経営成績及びキャッシュ・フローの状況の分析(2018年度~):
management_analysis - 重要事象等の分析及び対応(2018年度~)
- 経営上の重要な契約等
- 研究開発活動:
research_and_development
- (業績等の概要(~2017年度):
overview_of_result) - (生産、受注及び販売の状況(~2017年度):
analysis_of_production_and_sales) - (財政状態、経営成績及びキャッシュ・フローの状況の分析(~2017年度):
analysis_of_finance)
- 経営方針、経営環境及び対処すべき課題等:
- 設備の状況
- 設備投資等の概要
- 主要な設備の状況
- 設備の新設、除却等の計画
- 賃貸資産
- 自社用資産
- 提出会社の状況:
Information- 株式等の状況:
- 所有者別状況:
shareholders
- 所有者別状況:
- 配当政策:
dividend_policy - 役員の状況:
directors - コーポレート・ガバナンスの状況等:
corporate_governance
- 株式等の状況:
- 経理の状況:
Finance- 連結財務諸表等
- 財務諸表等
- 注記:
notes - 会計方針の変更/会計基準等の改正等以外の正当な理由による会計方針の変更:
voluntary_accounting_policy_change - セグメント情報等:
segment_information - 賃貸等不動産関係:
real_estate_for_lease
- 注記:
- 最近の財務諸表
- 提出会社の株式事務の概要
- 株式公開情報
- 特別利害関係者等の株式等の移動状況
- 第三者割当等の概況
- 株主の状況
- 提出会社の参考情報
- 提出会社の親会社等の情報
- その他の参考情報
References
Metadata
Release files for edinet-python 0.1.18
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| edinet-python-0.1.18.tar.gz | 1.6 MB | Without provenance | Details |
Release files / edinet-python-0.1.18.tar.gz
| Download URL | edinet-python-0.1.18.tar.gz |
|---|---|
| Size | 1.6 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
57b172c0ce44e1f0f9e4d09bd64dc439fd3f47d134171469e488260c55d10457
|
|
BLAKE2b-256 checksum How to use checksums |
bfc87d3864f819e062036c60316e47d72e1f30d04e998f9fc4ec9552a7a723e3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.1
|
Security for edinet-python 0.1.18
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.