Skip to main content

Functions to handle business days calculations

Project description

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.

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

bizdays-1.0.19.tar.gz (13.5 kB view details)

Uploaded Source

Built Distribution

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

bizdays-1.0.19-py3-none-any.whl (13.4 kB view details)

Uploaded Python 3

File details

Details for the file bizdays-1.0.19.tar.gz.

File metadata

  • Download URL: bizdays-1.0.19.tar.gz
  • Upload date:
  • Size: 13.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.12.3 Linux/6.14.0-37-generic

File hashes

Hashes for bizdays-1.0.19.tar.gz
Algorithm Hash digest
SHA256 e646d148ae048e35bb98bf57cb865a95a295fdc988133c8e1cce64b45805ef0f
MD5 a593584c3b18662c0f18aae30d9d0af4
BLAKE2b-256 f981fdeb890eb2c43854225e1f04a4f44ff4d32c648962ff97d654a5483fa418

See more details on using hashes here.

File details

Details for the file bizdays-1.0.19-py3-none-any.whl.

File metadata

  • Download URL: bizdays-1.0.19-py3-none-any.whl
  • Upload date:
  • Size: 13.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.12.3 Linux/6.14.0-37-generic

File hashes

Hashes for bizdays-1.0.19-py3-none-any.whl
Algorithm Hash digest
SHA256 ae2540f83739c966e4fc62d8a52c79771d3b8cd872210e757b11c2e9fcc9b148
MD5 b01a28ea9d2f580690f530cd347f0f33
BLAKE2b-256 dd4a8fadde5f4d4adff47e0b114ce91639c5bc2327573e3aa38fbd42056855cd

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