説明
EDINET APIのラッパーです。
使い方
from edinet import Edinet
from datetime import datetime
import json
# APIのトークン
API_TOKEN = "your token here"
# init時にAPIキーが必要なので注意。
edn = Edinet(API_TOKEN)
# ドキュメントを取得
doc_list = edn.get_document_list(datetime.today(), withdocs=True)
# 会社別の提出書のリスト
# 提出書の種類、EDINET ID、証券コード
documents_class_by_filer: dict[str, list[tuple[str, str, str]]] = {}
for i in doc_list["results"]:
# 縦覧できる事を確認
if i["legalStatus"] != "0":
# もし変数の中に登録されてない場合、作成。
if not documents_class_by_filer.get(i["filerName"]):
documents_class_by_filer[i["filerName"]] = []
# 追加
documents_class_by_filer[i["filerName"]].append((
i["docDescription"],
i["docID"],
i["secCode"]
))
# 保存する
with open("documents.json", "w", encoding="utf-8") as f:
f.write(json.dumps(documents_class_by_filer,
indent=4,
ensure_ascii=False))
Metadata
Release files for edinet-wrap 0.13
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 | Actions |
|---|---|---|---|---|
| edinet_wrap-0.13.tar.gz | 8.2 kB | Without provenance | Details for edinet_wrap-0.13.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| edinet_wrap-0.13-py3-none-any.whl | Python 3 | none | any | Details for edinet_wrap-0.13-py3-none-any.whl |
Total release size: 17.5 kB
Release files / edinet_wrap-0.13.tar.gz
| Download URL | edinet_wrap-0.13.tar.gz |
|---|---|
| Size | 8.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bed646b699dac3ab86ebd73399dc277703f52a3a49e4f105fd77c448e64b69c7
|
|
BLAKE2b-256 checksum How to use checksums |
e525a7a9197586fafde0a804e46a38d87bc46137d93683d8af372dd0df513205
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.20
|
Release files / edinet_wrap-0.13-py3-none-any.whl
| Download URL | edinet_wrap-0.13-py3-none-any.whl |
|---|---|
| Size | 9.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
855a9db3b060baa31dcb6a73c05e2118f7c6fbf6d4fd5a111903d01cf02f1fe1
|
|
BLAKE2b-256 checksum How to use checksums |
270ea8d2a32da166423f0379137f8d11561e07674410d172d1fcd3206701d13c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.9.20
|
Security for edinet-wrap 0.13
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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.