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")
Metadata
Release files for br-market-calendar 0.2.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| br_market_calendar-0.2.3.tar.gz | 91.3 kB | Without provenance | Details for br_market_calendar-0.2.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| br_market_calendar-0.2.3-py3-none-any.whl | Python 3 | none | any | Details for br_market_calendar-0.2.3-py3-none-any.whl |
Total release size: 105.8 kB
Release files / br_market_calendar-0.2.3.tar.gz
| Download URL | br_market_calendar-0.2.3.tar.gz |
|---|---|
| Size | 91.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9a76baa54fa0af2f8ac8b4f678d0ec7aed3b2dfde1a08608dcfd023ed7a4f191
|
|
BLAKE2b-256 checksum How to use checksums |
700c54143b74a32d75455892b3b64660de51208ed7ec87f0c4b6505323fab74a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.9
|
Release files / br_market_calendar-0.2.3-py3-none-any.whl
| Download URL | br_market_calendar-0.2.3-py3-none-any.whl |
|---|---|
| Size | 14.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a51a854446a343b6d3a9e6add7fa6953b220bd6f45eecf347a86da5712de1c4b
|
|
BLAKE2b-256 checksum How to use checksums |
3a99c77f771639105c200f4adc69998b3a7a7b999b4250d7eb27dd6b5c4404c0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.9
|
Security for br-market-calendar 0.2.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.