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.3.tar.gz (91.3 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.3-py3-none-any.whl (14.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: br_market_calendar-0.2.3.tar.gz
  • Upload date:
  • Size: 91.3 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.3.tar.gz
Algorithm Hash digest
SHA256 9a76baa54fa0af2f8ac8b4f678d0ec7aed3b2dfde1a08608dcfd023ed7a4f191
MD5 ae46f717f7132009deb040c5d0f7ad27
BLAKE2b-256 700c54143b74a32d75455892b3b64660de51208ed7ec87f0c4b6505323fab74a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for br_market_calendar-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a51a854446a343b6d3a9e6add7fa6953b220bd6f45eecf347a86da5712de1c4b
MD5 05b0ecbc8489fa77eeb3217764bf428b
BLAKE2b-256 3a99c77f771639105c200f4adc69998b3a7a7b999b4250d7eb27dd6b5c4404c0

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