kabukit 0.1.1__py3-none-any.whl → 0.2.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- kabukit/__init__.py +4 -1
- kabukit/analysis/__init__.py +0 -0
- kabukit/analysis/indicators.py +0 -0
- kabukit/analysis/preprocess.py +0 -0
- kabukit/analysis/screener.py +0 -0
- kabukit/analysis/visualization.py +57 -0
- kabukit/cli/auth.py +2 -2
- kabukit/core/__init__.py +0 -0
- kabukit/core/base.py +45 -0
- kabukit/core/client.py +25 -0
- kabukit/core/info.py +12 -0
- kabukit/core/prices.py +30 -0
- kabukit/core/statements.py +7 -0
- kabukit/edinet/__init__.py +3 -0
- kabukit/edinet/client.py +14 -12
- kabukit/edinet/concurrent.py +153 -0
- kabukit/edinet/doc.py +32 -0
- kabukit/jquants/__init__.py +1 -1
- kabukit/jquants/client.py +60 -98
- kabukit/jquants/{stream.py → concurrent.py} +12 -43
- kabukit/jquants/info.py +9 -1
- kabukit/jquants/prices.py +29 -0
- kabukit/jquants/schema.py +19 -8
- kabukit/jquants/statements.py +35 -2
- kabukit/utils/__init__.py +0 -0
- kabukit/utils/concurrent.py +148 -0
- kabukit-0.2.0.dist-info/METADATA +64 -0
- kabukit-0.2.0.dist-info/RECORD +35 -0
- {kabukit-0.1.1.dist-info → kabukit-0.2.0.dist-info}/WHEEL +1 -1
- kabukit/concurrent.py +0 -40
- kabukit-0.1.1.dist-info/METADATA +0 -30
- kabukit-0.1.1.dist-info/RECORD +0 -21
- /kabukit/{config.py → utils/config.py} +0 -0
- /kabukit/{params.py → utils/params.py} +0 -0
- {kabukit-0.1.1.dist-info → kabukit-0.2.0.dist-info}/entry_points.txt +0 -0
@@ -0,0 +1,64 @@
|
|
1
|
+
Metadata-Version: 2.3
|
2
|
+
Name: kabukit
|
3
|
+
Version: 0.2.0
|
4
|
+
Summary: A Python toolkit for Japanese financial market data, supporting J-Quants and EDINET APIs.
|
5
|
+
Author: daizutabi
|
6
|
+
Author-email: daizutabi <daizutabi@gmail.com>
|
7
|
+
License: MIT License
|
8
|
+
|
9
|
+
Copyright (c) 2025 Daizu
|
10
|
+
|
11
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
12
|
+
of this software and associated documentation files (the "Software"), to deal
|
13
|
+
in the Software without restriction, including without limitation the rights
|
14
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
15
|
+
copies of the Software, and to permit persons to whom the Software is
|
16
|
+
furnished to do so, subject to the following conditions:
|
17
|
+
|
18
|
+
The above copyright notice and this permission notice shall be included in all
|
19
|
+
copies or substantial portions of the Software.
|
20
|
+
|
21
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
22
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
23
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
24
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
25
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
26
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
27
|
+
SOFTWARE.
|
28
|
+
Classifier: Development Status :: 4 - Beta
|
29
|
+
Classifier: Programming Language :: Python
|
30
|
+
Classifier: Programming Language :: Python :: 3.12
|
31
|
+
Classifier: Programming Language :: Python :: 3.13
|
32
|
+
Requires-Dist: altair>=5
|
33
|
+
Requires-Dist: async-typer>=0.1
|
34
|
+
Requires-Dist: holidays>=0.81
|
35
|
+
Requires-Dist: httpx>=0.28.1
|
36
|
+
Requires-Dist: marimo[lsp]>=0.16
|
37
|
+
Requires-Dist: platformdirs>=4
|
38
|
+
Requires-Dist: polars>=1
|
39
|
+
Requires-Dist: python-dotenv>=1
|
40
|
+
Requires-Dist: typer>=0.19
|
41
|
+
Requires-Dist: vegafusion-python-embed>=1.6
|
42
|
+
Requires-Dist: vegafusion>=2
|
43
|
+
Requires-Dist: vl-convert-python>=1.8
|
44
|
+
Requires-Python: >=3.12
|
45
|
+
Description-Content-Type: text/markdown
|
46
|
+
|
47
|
+
# kabukit
|
48
|
+
|
49
|
+
A Python toolkit for Japanese financial market data, supporting J-Quants and EDINET APIs.
|
50
|
+
|
51
|
+
[![PyPI Version][pypi-v-image]][pypi-v-link]
|
52
|
+
[![Python Version][python-v-image]][python-v-link]
|
53
|
+
|
54
|
+
## Installation
|
55
|
+
|
56
|
+
```bash
|
57
|
+
pip install kabukit
|
58
|
+
```
|
59
|
+
|
60
|
+
<!-- Badges -->
|
61
|
+
[pypi-v-image]: https://img.shields.io/pypi/v/kabukit.svg
|
62
|
+
[pypi-v-link]: https://pypi.org/project/kabukit/
|
63
|
+
[python-v-image]: https://img.shields.io/pypi/pyversions/kabukit.svg
|
64
|
+
[python-v-link]: https://pypi.org/project/kabukit
|
@@ -0,0 +1,35 @@
|
|
1
|
+
kabukit/__init__.py,sha256=ooNlFhIEMttAeNYZIZTBmOYwj3MQEG11dq0sXhkFf74,259
|
2
|
+
kabukit/analysis/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
3
|
+
kabukit/analysis/indicators.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
4
|
+
kabukit/analysis/preprocess.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
5
|
+
kabukit/analysis/screener.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
6
|
+
kabukit/analysis/visualization.py,sha256=VS9WXBKcdOYsnVe-OR3cWP_nru3Oa-rBOK5SUwsxfyQ,1857
|
7
|
+
kabukit/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
8
|
+
kabukit/cli/app.py,sha256=LjAq_Pj5_bokL4bCZ2R8OoP_zEBA-a2EG0Pm1ZCn7o8,491
|
9
|
+
kabukit/cli/auth.py,sha256=MWLxEiINrqMGJSiVHcv09EuPlyGeCitHqJq7kumzbr8,2735
|
10
|
+
kabukit/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
11
|
+
kabukit/core/base.py,sha256=kqaqtYHHFK8xC3z8QkLFv8CAV6FEZDDoiVY2Qwe9iM8,1125
|
12
|
+
kabukit/core/client.py,sha256=lvjrshzOjyea2jRmc11Dl5OAJUGGN3PfKXWxoveG6hY,664
|
13
|
+
kabukit/core/info.py,sha256=5BX7mDavF6g-b0KzHgKIFHUS5701BoaHtw1JcHSsy94,174
|
14
|
+
kabukit/core/prices.py,sha256=Axm9cceVxnHIWCW6IHqEuCC4M73JtWCRzjXA42Qd7JE,781
|
15
|
+
kabukit/core/statements.py,sha256=18vD5WRjBGVSXvmCfTvGAwgjnajLbN-tH6V91sX44iI,94
|
16
|
+
kabukit/edinet/__init__.py,sha256=9bAWDIgVZKw84GF4z6FilUP_B22ih-ixLm8cQHxaoS8,77
|
17
|
+
kabukit/edinet/client.py,sha256=OSz8BmSBzzZMD-wk_9WbhZLfDY901s5CN1UissoDtyc,3410
|
18
|
+
kabukit/edinet/concurrent.py,sha256=du4TG0WwfkiWvxznXh-P0u1E_8mjTHBNivCIVmpieUg,5496
|
19
|
+
kabukit/edinet/doc.py,sha256=ieze_886Tzkp6QYRJD3GuSXj6-LS43MqmA72zEx1kjA,959
|
20
|
+
kabukit/jquants/__init__.py,sha256=n-sg0pLajSfyJ8snU6I_Q52rwmuaGCwAyz1yVbeMSw4,75
|
21
|
+
kabukit/jquants/client.py,sha256=nyBAD2hspz_bLtkTLUgFGGRz9oZXXkXONV1exjW9O1s,10704
|
22
|
+
kabukit/jquants/concurrent.py,sha256=5XObYKMMYNmrq-8JLtVg0uBGoEJwI9Luvy6ndamiTz8,3288
|
23
|
+
kabukit/jquants/info.py,sha256=AUymo6EtLdJ_L-0yNG1gd7rJ8Jkjw7tvsDM5Vw4QNFA,843
|
24
|
+
kabukit/jquants/prices.py,sha256=oApQpdgzHwPw11XHpdg8ccZS7kybGtV8APZlpD2L3Yw,882
|
25
|
+
kabukit/jquants/schema.py,sha256=HIoKDoIWrT0XNDHz5Fm4DtDGLLRqrq6TIkMTvq_Jheg,9647
|
26
|
+
kabukit/jquants/statements.py,sha256=rPfIVJjWeEviWEtjPRUGesHyIpQKMfBxDLTXJzkYBdA,2995
|
27
|
+
kabukit/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
28
|
+
kabukit/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
29
|
+
kabukit/utils/concurrent.py,sha256=7eXk29IhDLGroCCMIb8ucVqLMV9tYh0o2jYCoAU5tVM,4494
|
30
|
+
kabukit/utils/config.py,sha256=Bsa_BGxNsHyaLWkC99oliRRPmkv5K0YKSdYF-ADGjck,660
|
31
|
+
kabukit/utils/params.py,sha256=a5QLxTyB6jegeXDerQNmpYEKdZplhL3GnJuK0WRbBtQ,1091
|
32
|
+
kabukit-0.2.0.dist-info/WHEEL,sha256=-neZj6nU9KAMg2CnCY6T3w8J53nx1kFGw_9HfoSzM60,79
|
33
|
+
kabukit-0.2.0.dist-info/entry_points.txt,sha256=vvX771TemoM-35vVizW3JJ70HvRXnd2tX4P1Btzyoxs,46
|
34
|
+
kabukit-0.2.0.dist-info/METADATA,sha256=SuzdQfFqziFhEsJq_8v4UQ91XIkQhgp3qKRiayZh3uk,2584
|
35
|
+
kabukit-0.2.0.dist-info/RECORD,,
|
kabukit/concurrent.py
DELETED
@@ -1,40 +0,0 @@
|
|
1
|
-
from __future__ import annotations
|
2
|
-
|
3
|
-
import asyncio
|
4
|
-
from typing import TYPE_CHECKING
|
5
|
-
|
6
|
-
if TYPE_CHECKING:
|
7
|
-
from collections.abc import AsyncIterator, Awaitable, Callable, Iterable
|
8
|
-
|
9
|
-
MAX_CONCURRENCY = 12
|
10
|
-
|
11
|
-
|
12
|
-
async def collect[R](
|
13
|
-
awaitables: Iterable[Awaitable[R]],
|
14
|
-
/,
|
15
|
-
max_concurrency: int | None = None,
|
16
|
-
) -> AsyncIterator[R]:
|
17
|
-
max_concurrency = max_concurrency or MAX_CONCURRENCY
|
18
|
-
semaphore = asyncio.Semaphore(max_concurrency)
|
19
|
-
|
20
|
-
async def run(awaitable: Awaitable[R]) -> R:
|
21
|
-
async with semaphore:
|
22
|
-
return await awaitable
|
23
|
-
|
24
|
-
futures = (run(awaitable) for awaitable in awaitables)
|
25
|
-
|
26
|
-
async for future in asyncio.as_completed(futures):
|
27
|
-
yield await future
|
28
|
-
|
29
|
-
|
30
|
-
async def collect_fn[T, R](
|
31
|
-
function: Callable[[T], Awaitable[R]],
|
32
|
-
args: Iterable[T],
|
33
|
-
/,
|
34
|
-
max_concurrency: int | None = None,
|
35
|
-
) -> AsyncIterator[R]:
|
36
|
-
max_concurrency = max_concurrency or MAX_CONCURRENCY
|
37
|
-
awaitables = (function(arg) for arg in args)
|
38
|
-
|
39
|
-
async for item in collect(awaitables, max_concurrency=max_concurrency):
|
40
|
-
yield item
|
kabukit-0.1.1.dist-info/METADATA
DELETED
@@ -1,30 +0,0 @@
|
|
1
|
-
Metadata-Version: 2.3
|
2
|
-
Name: kabukit
|
3
|
-
Version: 0.1.1
|
4
|
-
Summary: A Python toolkit for Japanese financial market data, supporting J-Quants and EDINET APIs.
|
5
|
-
Author: Daizu
|
6
|
-
Author-email: Daizu <daizutabi@gmail.com>
|
7
|
-
Requires-Dist: altair>=5.5.0
|
8
|
-
Requires-Dist: async-typer>=0.1.10
|
9
|
-
Requires-Dist: httpx>=0.28.1
|
10
|
-
Requires-Dist: marimo>=0.15.3
|
11
|
-
Requires-Dist: platformdirs>=4.4.0
|
12
|
-
Requires-Dist: polars>=1.33.1
|
13
|
-
Requires-Dist: python-dotenv>=1.1.1
|
14
|
-
Requires-Dist: typer>=0.17.4
|
15
|
-
Requires-Dist: vegafusion-python-embed>=1.6.9
|
16
|
-
Requires-Dist: vegafusion>=2.0.2
|
17
|
-
Requires-Dist: vl-convert-python>=1.8.0
|
18
|
-
Requires-Python: >=3.13
|
19
|
-
Description-Content-Type: text/markdown
|
20
|
-
|
21
|
-
# kabukit
|
22
|
-
|
23
|
-
A Python toolkit for Japanese financial market data, supporting J-Quants and EDINET APIs.
|
24
|
-
|
25
|
-
## References
|
26
|
-
|
27
|
-
https://jpx.gitbook.io/j-quants-ja/api-reference
|
28
|
-
https://japanexchangegroup.github.io/J-Quants-Tutorial/
|
29
|
-
https://www.jpx.co.jp/corporate/news/news-releases/0010/20210813-01.html
|
30
|
-
https://disclosure2dl.edinet-fsa.go.jp/guide/static/disclosure/WZEK0110.html
|
kabukit-0.1.1.dist-info/RECORD
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
kabukit/__init__.py,sha256=BG0eyWyqbtCG4srA43CgFdxg_8Dn9f5sy5wvsKw2lpQ,127
|
2
|
-
kabukit/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
3
|
-
kabukit/cli/app.py,sha256=LjAq_Pj5_bokL4bCZ2R8OoP_zEBA-a2EG0Pm1ZCn7o8,491
|
4
|
-
kabukit/cli/auth.py,sha256=4WcL6tcxvk4_V41JSgmtAwFdEdSG53NIa_bl6n_Ns8I,2723
|
5
|
-
kabukit/concurrent.py,sha256=F7yizZvfblcGN3tHmDGvCqrFlA4nxnOJvMPgM_X1I7w,1070
|
6
|
-
kabukit/config.py,sha256=Bsa_BGxNsHyaLWkC99oliRRPmkv5K0YKSdYF-ADGjck,660
|
7
|
-
kabukit/edinet/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
8
|
-
kabukit/edinet/client.py,sha256=uUIDMzPNrsMJSFe2BLtAEesfISWs4_559vx46o2PfJs,3348
|
9
|
-
kabukit/jquants/__init__.py,sha256=J_rYvBVhVG-F0BPTIgCaOl3zo-rb1tbosI2e7F6ryNQ,71
|
10
|
-
kabukit/jquants/client.py,sha256=g48KCdkLIjXlMBNVF0ea-hks4WGRfqczz8PCoTYsQ6A,11670
|
11
|
-
kabukit/jquants/info.py,sha256=_6W9MSbTDqjV3Yrl9LZNC0BO8A1WTNWqiC0aNwkMcHs,578
|
12
|
-
kabukit/jquants/prices.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
13
|
-
kabukit/jquants/schema.py,sha256=cmm_KOIJs1GknAEWgFiBv9smYw7OSsBeivBHG8ZDjhE,9357
|
14
|
-
kabukit/jquants/statements.py,sha256=oheJpqX7gjptHc1-e_4tSDiU0nha4see6rM0Y3Bn2Y8,1814
|
15
|
-
kabukit/jquants/stream.py,sha256=_sdV1kfFJSagvvsQDv9z1PUlAwn5K9Fe-kgP9tpnyiU,4250
|
16
|
-
kabukit/params.py,sha256=a5QLxTyB6jegeXDerQNmpYEKdZplhL3GnJuK0WRbBtQ,1091
|
17
|
-
kabukit/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
18
|
-
kabukit-0.1.1.dist-info/WHEEL,sha256=Pi5uDq5Fdo_Rr-HD5h9BiPn9Et29Y9Sh8NhcJNnFU1c,79
|
19
|
-
kabukit-0.1.1.dist-info/entry_points.txt,sha256=vvX771TemoM-35vVizW3JJ70HvRXnd2tX4P1Btzyoxs,46
|
20
|
-
kabukit-0.1.1.dist-info/METADATA,sha256=16U7AyT6rTYuugdA7enJblLYSdjzCiV1S9DGhaHeRdQ,1014
|
21
|
-
kabukit-0.1.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|