kabukit 0.1.0__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/cli.py DELETED
@@ -1,40 +0,0 @@
1
- """kabukit CLI."""
2
-
3
- from __future__ import annotations
4
-
5
- from typing import Annotated
6
-
7
- import typer
8
- from httpx import HTTPStatusError
9
- from typer import Argument, Exit, Option, Typer
10
-
11
- from .jquants.client import JQuantsClient
12
-
13
- app = Typer(add_completion=False)
14
-
15
-
16
- @app.command()
17
- def auth(
18
- mailaddress: Annotated[str, Argument(help="J-Quants mail address.")],
19
- password: Annotated[str, Option(prompt=True, hide_input=True)],
20
- ) -> None:
21
- """Authenticate and save/refresh tokens."""
22
- client = JQuantsClient()
23
-
24
- try:
25
- client.auth(mailaddress, password)
26
- except HTTPStatusError as e:
27
- typer.echo(f"Authentication failed: {e}")
28
- raise Exit(1) from None
29
-
30
- client = JQuantsClient()
31
- typer.echo(f"refreshToken: {client.refresh_token[:30]}...")
32
- typer.echo(f"idToken: {client.id_token[:30]}...")
33
-
34
-
35
- @app.command()
36
- def version() -> None:
37
- """Show kabukit version."""
38
- from importlib.metadata import version
39
-
40
- typer.echo(f"kabukit version: {version('kabukit')}")
@@ -1,33 +0,0 @@
1
- Metadata-Version: 2.3
2
- Name: kabukit
3
- Version: 0.1.0
4
- Summary: Add your description here
5
- Author: Daizu
6
- Author-email: Daizu <daizutabi@gmail.com>
7
- Requires-Dist: httpx
8
- Requires-Dist: platformdirs
9
- Requires-Dist: polars>=1.32.3
10
- Requires-Dist: python-dotenv
11
- Requires-Dist: typer
12
- Requires-Python: >=3.13
13
- Description-Content-Type: text/markdown
14
-
15
- # kabukit
16
-
17
- A Python toolkit for Japanese financial market data, supporting J-Quants and EDINET APIs.
18
-
19
- ## Gemini CLI
20
-
21
- https://github.com/google-gemini/gemini-cli/issues/6297
22
-
23
- ```bash
24
- echo $GEMINI_CLI_IDE_SERVER_PORT
25
- sudo sh -c 'echo "127.0.0.1 host.docker.internal" >> /etc/hosts'
26
- ```
27
-
28
- ## References
29
-
30
- https://jpx.gitbook.io/j-quants-ja/api-reference
31
- https://japanexchangegroup.github.io/J-Quants-Tutorial/
32
- https://www.jpx.co.jp/corporate/news/news-releases/0010/20210813-01.html
33
- https://disclosure2dl.edinet-fsa.go.jp/guide/static/disclosure/WZEK0110.html
@@ -1,8 +0,0 @@
1
- kabukit/__init__.py,sha256=iPsCZbh4lCYivLMPEtQphSu9tv-srLArCVs17qV_s1o,53
2
- kabukit/cli.py,sha256=Ed990MnPe--Rfjpr5Ow1WuafIQi3e3ASIBqXjN45teM,1005
3
- kabukit/jquants/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
- kabukit/jquants/client.py,sha256=ngMl40pXSkzm4C1mQBVFPYr7zHez16HpDVDsO4jr85o,10287
5
- kabukit-0.1.0.dist-info/WHEEL,sha256=NHRAbdxxzyL9K3IO2LjmlNqKSyPZnKv2BD16YYVKo18,79
6
- kabukit-0.1.0.dist-info/entry_points.txt,sha256=gVuAclA51VqzWiPx_zyB3-0MklaCD1EsC9fsLtX9O_M,42
7
- kabukit-0.1.0.dist-info/METADATA,sha256=JQNE2jPQmGSYBHKMZUB--cKdkdX8v1gTdja2asVGXZA,890
8
- kabukit-0.1.0.dist-info/RECORD,,
@@ -1,3 +0,0 @@
1
- [console_scripts]
2
- kabu = kabukit.cli:app
3
-