Metadata-Version: 2.1
Name: opendate
Version: 0.1.5
Summary: Python business datetimes
Home-page: https://github.com/bissli/opendate
License: MIT
Author: bissli
Author-email: bissli.xyz@protonmail.com
Requires-Python: >=3.9,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Provides-Extra: test
Requires-Dist: asserts ; extra == "test"
Requires-Dist: bump2version ; extra == "test"
Requires-Dist: pandas-market-calendars
Requires-Dist: pdbpp ; extra == "test"
Requires-Dist: pendulum
Requires-Dist: pytest ; extra == "test"
Requires-Dist: regex
Requires-Dist: typing-extensions
Requires-Dist: wrapt
Project-URL: Repository, https://github.com/bissli/opendate
Description-Content-Type: text/markdown

opendate
========

A wrapper around [Pendulum](https://github.com/sdispater/pendulum) with business (NYSE default, extendable) days/hours awareness.

Documentation pending, see tests for examples. Functionality is near-identical to Pendulum with the exception of a business modifier.

The main module is named `date` rather than `pendulum`

Ex:

```python

from date import Date, DateTime, Time, Interval

thedate = Date.today()

# add days
thedate.add(days=5)
thedate.business().add(days=5) # add 5 business day

# subtract days
thedate.subtract(days=5)
thedate.business().subtract(days=5) # subtract 5 business day

# start of month
thedate.start_of('month')
thedate.business().start_of('month') # end of month + N days until valid business day

# end of month
thedate.end_of('month')
thedate.business().end_of('month') # end of month - N days until valid business day

# ...

```

