Skip to main content

Japanese earnings calendar aggregator

Project description

pykabu-calendar

Japanese earnings calendar aggregator.

PyPI version Python CI License: MIT Open In Colab

Installation

pip install pykabu-calendar

Quick Start

import pykabu_calendar as cal

# Get earnings calendar (uses all sources by default)
df = cal.get_calendar("2026-02-10")

# Use specific sources only
df = cal.get_calendar("2026-02-10", sources=["matsui", "tradersweb"])

# Without historical inference (faster)
df = cal.get_calendar("2026-02-10", infer_from_history=False)

# Export to CSV
cal.export_to_csv(df, "earnings.csv")

# Export to Parquet (requires pyarrow)
cal.export_to_parquet(df, "earnings.parquet")

# Export to SQLite
cal.export_to_sqlite(df, "earnings.db")

# Load back from SQLite
df = cal.load_from_sqlite("earnings.db", date="2026-02-10")

# Health check all data sources
cal.check_sources()

Output Columns

Column Description
code Stock code (e.g., "7203")
name Company name
datetime Best estimate datetime
confidence Confidence level: "highest", "high", "medium", or "low"
during_trading_hours Whether datetime falls within TSE trading hours
candidate_datetimes List of candidate datetimes (most likely first)
ir_datetime Datetime from company IR page
sbi_datetime Datetime from SBI
matsui_datetime Datetime from Matsui
tradersweb_datetime Datetime from Tradersweb
inferred_datetime Datetime inferred from history
past_datetimes List of past earnings datetimes

Features

  • Aggregates earnings calendars from SBI, Matsui, Tradersweb
  • Discovers company IR pages and extracts exact announcement times
  • Infers announcement time from historical patterns (via pykabutan)
  • Parallel source fetching for faster results
  • Source health checks via check_sources()
  • YAML-based source configuration for easy maintenance
  • Exports to CSV, Parquet, and SQLite
  • EarningsSource ABC for adding custom sources

Data Source Priority

  1. IR page - Company's official IR page (most accurate)
  2. Inferred - From historical patterns
  3. SBI - SBI Securities (JSONP API)
  4. Matsui - Matsui Securities
  5. Tradersweb - Tradersweb

Documentation

Full documentation: https://obichan117.github.io/pykabu-calendar

License

MIT

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_calendar-0.9.0.tar.gz (67.7 kB view details)

Uploaded Source

Built Distribution

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

pykabu_calendar-0.9.0-py3-none-any.whl (41.8 kB view details)

Uploaded Python 3

File details

Details for the file pykabu_calendar-0.9.0.tar.gz.

File metadata

  • Download URL: pykabu_calendar-0.9.0.tar.gz
  • Upload date:
  • Size: 67.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.0

File hashes

Hashes for pykabu_calendar-0.9.0.tar.gz
Algorithm Hash digest
SHA256 61e19764526d52beb28a8cfd5ecaff0a2a511af5a55d17a6487e7c7b5ddb637c
MD5 b5a12ce25adf3efbd08074502258cbbe
BLAKE2b-256 ab741909e1a037dea816935e1fa71aeb4efd5129d30c48d1f88e56efe27f43e1

See more details on using hashes here.

File details

Details for the file pykabu_calendar-0.9.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pykabu_calendar-0.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 52a2016633ed0bdf8d6213ae95d5334b4f78d45c3397418d939ac03511a414ee
MD5 7c729720f4633467a14188aa2b44073d
BLAKE2b-256 50f46f9f3235bb6eecbc59dfbf2d5a06f6d3f57a388bd6c625cb8f3a09c8f7fb

See more details on using hashes here.

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