Skip to main content

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

# 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

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

pykabu-0.1.1.tar.gz (11.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pykabu-0.1.1-py3-none-any.whl (12.5 kB view details)

Uploaded Python 3

File details

Details for the file pykabu-0.1.1.tar.gz.

File metadata

  • Download URL: pykabu-0.1.1.tar.gz
  • Upload date:
  • Size: 11.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pykabu-0.1.1.tar.gz
Algorithm Hash digest
SHA256 43186702d5e6b38d7a3ed3ed2861c644e6456781eea6f3931cac8a32b2b66e93
MD5 241e52f593e955fea030cdc10a60597b
BLAKE2b-256 1d2dac3a483064a81db00f1881d7c7426d17d997cbd75952c3ab5a77aa0a7cbb

See more details on using hashes here.

Provenance

The following attestation bundles were made for pykabu-0.1.1.tar.gz:

Publisher: publish.yml on obichan117/pykabu

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pykabu-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: pykabu-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 12.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pykabu-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ed46962e7a6cf4297062062093a50baf6ee01737a049d3faa53aedeb199675e4
MD5 dfc981fff0bf8b19b96803e62be227f0
BLAKE2b-256 1d359c185739970461144e0f2669615aed50047680eb58cd4b8c564ecf984492

See more details on using hashes here.

Provenance

The following attestation bundles were made for pykabu-0.1.1-py3-none-any.whl:

Publisher: publish.yml on obichan117/pykabu

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page