timeseriesgen

Based on a date range, generate friendly timeseries lookup dictionaries.


Keywords
subtech
License
Other
Install
pip install timeseriesgen==1.0

Documentation

timeseriesgen

Based on a date range, generate friendly timeseries lookup dictionaries.

This is useful for work related Cassandra schemas, not much else.

Note: This was built with Python 3, uses annotations and what else. sorrynotsorry.

Requirements

Install

$ pip install timeseriesgen

Usage

import timeseriesgen

timeseriesgen.generate("2017-01-01 00:00:00", "2017-03-31 23:59:59", timeseries=("hour", "day", "month"))

# {'day': {}, 'hour': {}, 'month': [201701, 201702, 201703]}

Testing

I like pytest, so:

$ pytest