semvec/pypi-packages huggingface dataset:
stock-exchange-holidays 0.2.0
Worldwide Stock Exchange holidays (NYSE, CME, B3 and others)
License: MIT
Requires Python: >=3.6
Keywords: stock,holidays

# Worldwide Stock Exchange holidays

[![PyPI](https://img.shields.io/pypi/v/stock_exchange_holidays)](https://pypi.org/project/stock_exchange_holidays/)[![stock-exchange-holidays](https://github.com/leogregianin/stock-exchange-holidays/actions/workflows/main.yml/badge.svg)](https://github.com/leogregianin/stock-exchange-holidays/actions/workflows/main.yml)[![codecov](https://codecov.io/gh/leogregianin/stock-exchange-holidays/branch/main/graph/badge.svg)](https://codecov.io/gh/leogregianin/stock-exchange-holidays)


## Install

From source:
```sh
$ python setup.py install
```

From PyPi:
```sh
$ pip install stock-exchange-holidays
```

## Development

### Create virtual environment

```sh
$ virtualenv .venv
$ source .venv/bin/activate
```

### Install development dependencies
    
```sh
$ pip install -r requirements-dev.txt
```

### Run tests
    
```sh
$ python -m unittest
```


## Using

### New York Stock Exchange (NYSE)
```python
from stock.stock_exchange_holidays import Holidays, NYSE

holidays = Holidays(exchange=NYSE())
print(holidays.get_holidays())
print(holidays.get_holidays_by_year(year=2021))
```

##### Is specific date holiday in NYSE?

```python
from datetime import date
from stock.stock_exchange_holidays import Holidays, NYSE

first_day = date(2020, 1, 1)
holidays = Holidays(exchange=NYSE())
holidays.is_date_holiday(first_day)
```

### Chicago Mercantile Exchange (CME)
```python
from stock.stock_exchange_holidays import Holidays, CME

holidays = Holidays(exchange=CME())
print(holidays.get_holidays())
print(holidays.get_holidays_by_year(year=2021))
```

##### Is specific date holiday in CME?

```python
from datetime import date
from stock.stock_exchange_holidays import Holidays, CME

first_day = date(2020, 1, 1)
holidays = Holidays(exchange=CME())
holidays.is_date_holiday(first_day)
```


### Sao Paulo Stock exchange (B3) formerly BM&F-BOVESPA
```python
from stock.stock_exchange_holidays import Holidays, B3

holidays = Holidays(exchange=B3())
print(holidays.get_holidays())
print(holidays.get_holidays_by_year(year=2021))
```

##### Is specific date holiday in B3?

```python
from datetime import date
from stock.stock_exchange_holidays import Holidays, B3

first_day = date(2020, 1, 1)
holidays = Holidays(exchange=B3())
holidays.is_date_holiday(first_day)
```


## License

MIT
wymple5 0.0.8
boilerplate you need to create a Python package.
License: MIT
Requires Python: >=3.8
Keywords: utility

# wymple5

> Short blurb about what your product does.

[![PyPI version](https://badge.fury.io/py/wymple5.svg)](https://badge.fury.io/py/wymple5)
[![readthedocs][readthedocs-image]][readthedocs-url]
[![pre-commit][pre-commit-image]][pre-commit-url]
[![Imports: isort][isort-image]][isort-url]
[![Code style: black][black-image]][black-url]
[![Checked with mypy][mypy-image]][mypy-url]
[![security: bandit][bandit-image]][bandit-url]

[![licence: mit][mit-license-image]][mit-license-url]

One to two paragraph statement about your product and what it does.

![](assets/header.png)

## Installation

OS X & Linux:

```sh
pip3 install wymple5
```

Windows:

```sh
pip install wymple5
```

## Usage example

A few motivating and useful examples of how your product can be used. Spice this up with code blocks and potentially more screenshots.

_For more examples and usage, please refer to the [Wiki][wiki]._

## Development setup

Describe how to install all development dependencies and how to run an automated test-suite of some kind. Potentially do this for multiple platforms.

```sh
pip install --editable wymple5
```

## Documentation

[**Read the Docs**](https://wymple5.readthedocs.io/en/latest/)

## Meta

[![](assets/linkedin.png)](https://linkedin.com/in/stephen-k-3a4644210)
[![](assets/github.png)](https://github.com/Stephen-RA-King/Stephen-RA-King)
[![](assets/pypi.png)](https://pypi.org/project/wymple5/)
[![](assets/www.png)](https://www.Stephen-RA-King)
[![](assets/email.png)](mailto:stephen.ra.king@gmail.com)

Stephen R A King : name@isp.com

Distributed under the MIT License. See `LICENSE` for more information.

[https://github.com/Stephen-RA-King/wymple5](https://github.com/Stephen-RA-King/wymple5)

<!-- Markdown link & img dfn's -->

[readthedocs-image]: https://readthedocs.org/projects/wymple5/badge/?version=latest
[readthedocs-url]: https://wymple5.readthedocs.io/en/latest/?badge=latest
[pre-commit-image]: https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white
[pre-commit-url]: https://github.com/pre-commit/pre-commit
[isort-image]: https://img.shields.io/badge/%20imports-isort-%231674b1?style=flat&labelColor=ef8336
[isort-url]: https://pycqa.github.io/isort/
[black-image]: https://img.shields.io/badge/code%20style-black-000000.svg
[black-url]: https://github.com/psf/black
[bandit-image]: https://img.shields.io/badge/security-bandit-yellow.svg
[bandit-url]: https://github.com/PyCQA/bandit
[mypy-image]: http://www.mypy-lang.org/static/mypy_badge.svg
[mypy-url]: http://mypy-lang.org/
[mit-license-image]: https://img.shields.io/badge/license-MIT-blue
[mit-license-url]: https://choosealicense.com/licenses/mit/
[wiki]: https://github.com/Stephen-RA-King/wymple5/wiki