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

Uploaded Python 3

File details

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

File metadata

  • Download URL: br_market_calendar-0.2.1.tar.gz
  • Upload date:
  • Size: 14.7 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.1.tar.gz
Algorithm Hash digest
SHA256 b08255e12d5d257a67f4c1c987600150c68a0a8b45f0cd97f935f2b876d10677
MD5 f607d246abad982fda044ef7e16547e9
BLAKE2b-256 09910b589803372481b05ce94d1e0b2beb69309fc99b1d64f73dcc9c2c6cee93

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for br_market_calendar-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2ece7a53f892f19185a9cd83fdd9becb3a58fdec5a5f601c15ad3db56750bcac
MD5 82c8423ff7359a1972a993416138b43d
BLAKE2b-256 99eff69da8dce3f8b7943132acf0ea5298677bea303849862959138db3b5128e

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