Skip to main content

A better way to get market holidays

Project description

Better Markets

A better way to get market holidays

Installation

pip install better-holidays

Usage

import BetterHolidays as bh
import datetime as dt

NYSE = bh.get_market("NYSE")
# or
NYSE = bh.NYSE()
print(NYSE.is_holiday(dt.date(1979, 4, 13)))
print(NYSE.is_trading_day(dt.date(1979, 4, 13)))
print(NYSE.is_partial_day(dt.date(1979, 4, 13)))
print(NYSE.is_weekday(dt.date(1979, 4, 13)))
print(NYSE.is_weekend(dt.date(1979, 4, 13)))
print(NYSE.get_holidays(dt.date(1979, 4, 1), dt.date(1979, 4, 30)))

Contributing

Pull requests are welcome.

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

better_holidays-0.1.1.tar.gz (8.5 kB view details)

Uploaded Source

Built Distribution

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

better_holidays-0.1.1-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

Details for the file better_holidays-0.1.1.tar.gz.

File metadata

  • Download URL: better_holidays-0.1.1.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for better_holidays-0.1.1.tar.gz
Algorithm Hash digest
SHA256 b4d2081178a811d21839ea48147449162f3142a09b30513dfcaf5d06aa099256
MD5 57944e75e5289db058c80877d99e81fb
BLAKE2b-256 11993eedae4bb0a121898005eac30b00969fd98f22313d9c2b26e043591a9107

See more details on using hashes here.

Provenance

The following attestation bundles were made for better_holidays-0.1.1.tar.gz:

Publisher: publish.yml on Better-Python/Better-Holidays

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file better_holidays-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for better_holidays-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 33ce36313eee4136f7d44e21fa4a955c4fceb3f5d5b3d80bbf7add6947d0600f
MD5 ced0658e33e04fe6fa2f44981f2ca9ce
BLAKE2b-256 82f27cfb5ca97021ec3500fbb2301fe545790397062599891a8658da31dcf695

See more details on using hashes here.

Provenance

The following attestation bundles were made for better_holidays-0.1.1-py3-none-any.whl:

Publisher: publish.yml on Better-Python/Better-Holidays

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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