Skip to main content

Downloads Latest Version Supported Python versions

python-bizdays

In several countries and markets, the accountability of the price of a financial instrument, mainly bonds and derivatives, involves the use of different rules to compute the way the days go by. In Brazil, several financial instruments pay interest according to the business days along their life cycle. So, having a way to compute the number of business days between 2 dates is fairly useful to price financial instruments. bizdays was created to make it easier.

bizdays computes business days between two dates based on the definition of nonworking days (usually holidays and weekends). It also computes other collateral effects like adjust dates for the next or previous business day, check whether a date is a business day, create sequences of business days, and much more.

Several financial libraries compute the holidays, giving no option to users set it by their own. Furtherly, the financial calendar is usually a small feature of a huge library, as quantlib, for example, and some users, including myself, don't want to put a hand in such a huge library only to use the financial calendar.

bizdays is a pure Python module without strong dependencies, what makes it appropriated for small projects.

Calendars

bizdays comes with these calendars:

  • ANBIMA: 2000-01-01 to 2099-12-25, from ANBIMA's holiday list.
  • B3: 2000-01-01 to 2099-12-31. Up to 2026 the holidays are B3's official ones. From 2027 they are projected by a rule: ANBIMA holidays, plus December 24, plus the last weekday of the year. A projected year is replaced when B3 publishes its calendar.
  • Actual: no holidays and no weekends; every day is a business day.

Metadata

Release files for bizdays 1.0.20

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bizdays 1.0.20
File Size Uploaded Provenance Actions
bizdays-1.0.20.tar.gz 14.7 kB Without provenance Details for bizdays-1.0.20.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for bizdays 1.0.20
File Interpreter ABI Platform Actions
bizdays-1.0.20-py3-none-any.whl Python 3 none any Details for bizdays-1.0.20-py3-none-any.whl

Total release size: 30.8 kB

Release files / bizdays-1.0.20.tar.gz

Download URL bizdays-1.0.20.tar.gz
Size 14.7 kB
Tags Source
SHA-256 checksum
How to use checksums
65a9f801ed126d5127414344ccdba7dec11e05db1f38e9f11659d281725aa8fa
BLAKE2b-256 checksum
How to use checksums
a73fda72a4347ba01262cd0ee6441be1ae7b55afe24b5f03560052aa59840dbe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.0

Release files / bizdays-1.0.20-py3-none-any.whl

Download URL bizdays-1.0.20-py3-none-any.whl
Size 16.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
44268692f7a2320a746061491dff57cd8ffe458a0c9de4d0d3b5f2dc6f0f4098
BLAKE2b-256 checksum
How to use checksums
4bc5e46f1280b5ccfa1b8e7fc4ce55a94740c95495cb2457030bf334bcc43bb7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.0

Security for bizdays 1.0.20

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page