Skip to main content

Brazilian financial market calendar utilities for business days, holidays, and date operations.

Project description

br-market-calendar

Brazilian financial market calendar utilities for Python.

br-market-calendar provides a simple, explicit, and well-tested API for working with Brazilian financial market dates, business days, holidays, day count conventions, and financial schedules.

The project is designed for both Brazilian users and international users who need reliable date utilities for the Brazilian market.

Features

  • Brazilian financial business day calendar
  • ANBIMA-compatible holiday readers
  • CSV, Excel, and URL holiday loading
  • Business day adjustment conventions
  • Day count conventions
  • Financial schedule generation
  • Date parsing and formatting helpers
  • Calendar day and weekday ranges
  • Business day ranges and business days per month
  • First/last day of month and weekday name helpers
  • Typed, tested, and lightweight core

Installation

pip install br-market-calendar

Quick examples

from br_market_calendar import BrazilFinancialCalendar, date_range, days_between

cal = BrazilFinancialCalendar.from_holidays(["2026-01-01"])

# Calendar days
date_range("01/01/2026", "05/01/2026")

# Number of calendar days
days_between("2026-01-01", "2026-01-05", inclusive=True)

# Business days, excluding weekends and holidays
cal.business_days("2026-01-01", "2026-01-05")

# Number of business days
cal.business_days_between("2026-01-01", "2026-01-05", inclusive=True)

# Business days grouped by month
cal.business_days_per_month("2026-01-01", "2026-02-03")

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

br_market_calendar-0.2.0.tar.gz (14.6 kB view details)

Uploaded Source

Built Distribution

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

br_market_calendar-0.2.0-py3-none-any.whl (13.8 kB view details)

Uploaded Python 3

File details

Details for the file br_market_calendar-0.2.0.tar.gz.

File metadata

  • Download URL: br_market_calendar-0.2.0.tar.gz
  • Upload date:
  • Size: 14.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for br_market_calendar-0.2.0.tar.gz
Algorithm Hash digest
SHA256 696fd94a2d670494310f32638de8d210076c2670f2f00f437314ca0e007f1284
MD5 7a0b2fee75bdd3075d45e9cb09198249
BLAKE2b-256 873378017639c23a3eb78ed9d9d42cc55d7888a671f3ac710157febf22d6d06e

See more details on using hashes here.

File details

Details for the file br_market_calendar-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for br_market_calendar-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 aea70ec5506230a677a5a5d09a0da73424eabd0500e7847e74f8e224c959b2e9
MD5 a82faa9828f4b4b0cf64329885731a18
BLAKE2b-256 0f7825090aa89bfd88a768999005d6a2fce392e2ebfcb7f744e6a749ec055cba

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