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.1.tar.gz (67.8 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.1-py3-none-any.whl (41.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pykabu_calendar-0.9.1.tar.gz
  • Upload date:
  • Size: 67.8 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.1.tar.gz
Algorithm Hash digest
SHA256 716fb890be069dc9750f612c17fce5f7eafd6c39756292bc7f6f1c798f38849b
MD5 cfe79afc16b08c13d0a5b452a64bad8d
BLAKE2b-256 4426c22a4e368e3b0acf2dd1a11210d30bfb161540c30f225e02fb3e3a3a5e44

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pykabu_calendar-0.9.1-py3-none-any.whl
Algorithm Hash digest
SHA256 26aa535fcad5c3b44482751e5502161c1ca6069c109f12e3747ecbab99d43e90
MD5 0ef94ea12ecb1d1d1effb0e0e071f3de
BLAKE2b-256 751b82c59c3df2089ad945eead4c04f0759dd279036a895af1c10f340fe76884

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