semvec/pypi-packages huggingface dataset:
b3futurecontracts 0.0.7
Rollover date of future contracts from the B3 exchange
Requires Python: >=3

# b3futurecontracts

B3 is a stock exchange in Sao Paulo, Brazil. This module evaluates the rollover date of some of its future contracts.

## Classes

Currently this module provides two classes, `B3FutureIndex` and `B3FutureDollar`. These classes have two main methods, `rollover_date` and `current_name`; both take a date as argument and return the rollover date and the current names of the future contract as of the given date, respectively.

## Sample code

```python
>>> import datetime as dt
>>> from b3futurecontracts import *
>>>
>>> today = dt.date.today()
>>> print(today)
2019-12-01
>>>
>>> futureindex = B3FutureIndex(today)
>>> print(futureindex.rollover_date(), futureindex.current_name()[0])
2019-12-11 WINZ19
>>>
```

```shell
$ python -m b3futurecontracts
2019-01-05  2019-02-13 WING19  2019-02-01 WDOG19
2019-01-20  2019-02-13 WING19  2019-02-01 WDOG19
2019-02-05  2019-02-13 WING19  2019-03-01 WDOH19
2019-02-20  2019-04-17 WINJ19  2019-03-01 WDOH19
2019-03-05  2019-04-17 WINJ19  2019-04-01 WDOJ19
2019-03-20  2019-04-17 WINJ19  2019-04-01 WDOJ19
2019-04-05  2019-04-17 WINJ19  2019-05-02 WDOK19
2019-04-20  2019-06-12 WINM19  2019-05-02 WDOK19
2019-05-05  2019-06-12 WINM19  2019-06-03 WDOM19
2019-05-20  2019-06-12 WINM19  2019-06-03 WDOM19
2019-06-05  2019-06-12 WINM19  2019-07-01 WDON19
2019-06-20  2019-08-14 WINQ19  2019-07-01 WDON19
2019-07-05  2019-08-14 WINQ19  2019-08-01 WDOQ19
2019-07-20  2019-08-14 WINQ19  2019-08-01 WDOQ19
2019-08-05  2019-08-14 WINQ19  2019-09-02 WDOU19
2019-08-20  2019-10-16 WINV19  2019-09-02 WDOU19
2019-09-05  2019-10-16 WINV19  2019-10-01 WDOV19
2019-09-20  2019-10-16 WINV19  2019-10-01 WDOV19
2019-10-05  2019-10-16 WINV19  2019-11-01 WDOX19
2019-10-20  2019-12-18 WINZ19  2019-11-01 WDOX19
2019-11-05  2019-12-18 WINZ19  2019-12-02 WDOZ19
2019-11-20  2019-12-18 WINZ19  2019-12-02 WDOZ19
2019-12-05  2019-12-18 WINZ19  2020-01-02 WDOF20
2019-12-20  2020-02-12 WING20  2020-01-02 WDOF20
$
```

## Installation
```shell
pip install b3futurecontracts
```
check-glue-catalog 0.1.9
Check for details in Glue Catalog and tell if its outdated

[![Python 3.7](https://img.shields.io/badge/python-3.7-blue.svg)](https://www.python.org/downloads/release/python-370/)
[![PyPI version](https://badge.fury.io/py/check-glue-catalog.svg)](https://badge.fury.io/py/check-glue-catalog)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Language grade: Python](https://img.shields.io/lgtm/grade/python/g/msantino/check-glue-catalog.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/msantino/check-glue-catalog/context:python)
[![Twitter Follow](https://img.shields.io/twitter/follow/msantino.svg?style=social&label=Follow)](https://twitter.com/msantino)

# Check Glue Catalog

Get Glue catalog details to check if tables are outdated.

```bash
pip install check-glue-catalog
```

```python
from check_glue_catalog import get_tables

result = get_tables(catalog_name="glue_database_name")

print(result)
```

```JSON
{
  "outdated": 3,
  "updated": 23,
  "total": 26,
  "outdated_list": [
    {
      "table_name": "table_name_1",
      "due_days": 2,
      "rows": 7,
      "last_updated": "2020-03-10 05:43:37"
    },
    {
      "table_name": "other_table",
      "due_days": 76,
      "rows": 5,
      "last_updated": "2019-12-27 11:08:13"
    },
    {
      "table_name": "some_table",
      "due_days": 97,
      "rows": 5,
      "last_updated": "2019-12-06 16:22:52"
    }
  ]
}
```