Metadata-Version: 2.1
Name: period-iterator
Version: 1.2.0
Summary: Period Iterator
Home-page: https://github.com/chonla/period-iterator
Author: Chonlasith Jucksriporn
Author-email: chonlasith@gmail.com
License: MIT
Keywords: period,iterator
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Build Tools
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Requires-Python: >=3.7, <4
Description-Content-Type: text/markdown
Requires-Dist: python-dateutil
Requires-Dist: pytz

# Period Iterator

Period Iterator is a library easing you to iterate through given period.

## Usage

```
from period_iterator import period_iterator

period = period_iterator('2020-02-01,2020-02-03', 'Asia/Bangkok')

while True:
    print(period.cursor.begin()) # Begin of day
    print(period.cursor.end()) # End of day
    if not period.next():
        break
```

## License

[MIT](https://github.com/chonla/period-iterator/blob/master/LICENSE)


