Python library and CLI for Japanese stock market data
Project description
pykabu
Python library and CLI for Japanese stock market data.
Requirements
- Python 3.10+
Installation
Quick Install (Global)
# 1. Install pykabu
pip install pykabu
# 2. Install browser for market index feature
playwright install chromium
Recommended: Virtual Environment with uv
uv is a fast Python package manager written in Rust.
Step 1: Install uv (one-time setup)
# macOS / Linux
curl -LsSf https://astral.sh/uv/install.sh | sh
# Windows (PowerShell)
powershell -c "irm https://astral.sh/uv/install.ps1 | iex"
Step 2: Create virtual environment and install
# Create virtual environment
uv venv
# Activate it
source .venv/bin/activate # macOS / Linux
.venv\Scripts\activate # Windows (PowerShell)
# Install pykabu
uv pip install pykabu
# Install browser for market index feature
playwright install chromium
Alternative: pip + venv
# Create virtual environment
python -m venv .venv
# Activate it
source .venv/bin/activate # macOS / Linux
.venv\Scripts\activate # Windows (PowerShell)
# Install pykabu
pip install pykabu
# Install browser for market index feature
playwright install chromium
Platform Notes
- macOS: Works out of the box
- Windows: Use PowerShell (not CMD)
- Linux: If playwright fails, run:
playwright install-deps chromium
CLI Usage
kabu sche # Today's schedule
kabu sche -t # Tomorrow's schedule
kabu sche -w # This week's schedule
kabu sche -i 3 # Filter by importance (>= 3 stars)
# Market indices
kabu index # Default 8 indices
kabu index --all # All known indices (~25)
kabu index --custom # Custom configured indices
kabu index --merged # Default + custom indices
# Nikkei 225 contribution ranking
kabu rank225 # Show top & bottom contributors
kabu rank225 --top # Top contributors only
kabu rank225 --bottom # Bottom contributors only
# Configuration
kabu config show # Show current config
kabu config set default_importance 3 # Set default star filter
# Custom indices
kabu config index list # List all available codes
kabu config index add 212 # Add NASDAQ
kabu config index add 1001 # Add Bitcoin
kabu config index remove 212 # Remove an index
Library Usage
from pykabu.sources import nikkei225
# Schedule data
schedule = nikkei225.get_schedule()
today = nikkei225.get_today_schedule()
tomorrow = nikkei225.get_tomorrow_schedule()
week = nikkei225.get_week_schedule()
# Market indices (requires playwright)
indices = nikkei225.get_indices()
Data Sources
- nikkei225jp.com - Economic calendar and market indices
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pykabu-0.1.2.tar.gz.
File metadata
- Download URL: pykabu-0.1.2.tar.gz
- Upload date:
- Size: 13.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6ec4af40843e1e434b767a68e58212b9ba1ae74067df0a85755528f748e97c8a
|
|
| MD5 |
4a1b5268de9dc67b383c3cedb13a3e19
|
|
| BLAKE2b-256 |
875ad168738e756f07c5f9a518842eb035b3737ed0f2371ae42998bb509fe62a
|
Provenance
The following attestation bundles were made for pykabu-0.1.2.tar.gz:
Publisher:
publish.yml on obichan117/pykabu
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pykabu-0.1.2.tar.gz -
Subject digest:
6ec4af40843e1e434b767a68e58212b9ba1ae74067df0a85755528f748e97c8a - Sigstore transparency entry: 803197422
- Sigstore integration time:
-
Permalink:
obichan117/pykabu@60953d726238d6c32fe5b54ac607363390919d2e -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/obichan117
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@60953d726238d6c32fe5b54ac607363390919d2e -
Trigger Event:
release
-
Statement type:
File details
Details for the file pykabu-0.1.2-py3-none-any.whl.
File metadata
- Download URL: pykabu-0.1.2-py3-none-any.whl
- Upload date:
- Size: 14.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7b26de8a127ac149af03060a54cd425eb7c81150f97d2c15ceda8d9e66c6b4a0
|
|
| MD5 |
e18b1e409a9fa05d9cc91b32ac4f6d02
|
|
| BLAKE2b-256 |
c06f63a5d10f44fab51bff115adbc44789e81fcb4be7943041c29433d63e9bd3
|
Provenance
The following attestation bundles were made for pykabu-0.1.2-py3-none-any.whl:
Publisher:
publish.yml on obichan117/pykabu
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pykabu-0.1.2-py3-none-any.whl -
Subject digest:
7b26de8a127ac149af03060a54cd425eb7c81150f97d2c15ceda8d9e66c6b4a0 - Sigstore transparency entry: 803197436
- Sigstore integration time:
-
Permalink:
obichan117/pykabu@60953d726238d6c32fe5b54ac607363390919d2e -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/obichan117
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@60953d726238d6c32fe5b54ac607363390919d2e -
Trigger Event:
release
-
Statement type: