opendate 0.1.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of opendate might be problematic. Click here for more details.

@@ -0,0 +1,23 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2024 bissli
4
+ Copyright (c) 2015 Sébastien Eustace
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining
7
+ a copy of this software and associated documentation files (the
8
+ "Software"), to deal in the Software without restriction, including
9
+ without limitation the rights to use, copy, modify, merge, publish,
10
+ distribute, sublicense, and/or sell copies of the Software, and to
11
+ permit persons to whom the Software is furnished to do so, subject to
12
+ the following conditions:
13
+
14
+ The above copyright notice and this permission notice shall be
15
+ included in all copies or substantial portions of the Software.
16
+
17
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
18
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
19
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
20
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
21
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
22
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
23
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,61 @@
1
+ Metadata-Version: 2.1
2
+ Name: opendate
3
+ Version: 0.1.1
4
+ Summary:
5
+ Author: bissli
6
+ Author-email: bissli.xyz@protonmail.com
7
+ Requires-Python: >=3.9,<4.0
8
+ Classifier: Programming Language :: Python :: 3
9
+ Classifier: Programming Language :: Python :: 3.9
10
+ Classifier: Programming Language :: Python :: 3.10
11
+ Classifier: Programming Language :: Python :: 3.11
12
+ Classifier: Programming Language :: Python :: 3.12
13
+ Provides-Extra: test
14
+ Requires-Dist: asserts ; extra == "test"
15
+ Requires-Dist: bump2version ; extra == "test"
16
+ Requires-Dist: pandas-market-calendars
17
+ Requires-Dist: pdbpp ; extra == "test"
18
+ Requires-Dist: pendulum
19
+ Requires-Dist: pytest ; extra == "test"
20
+ Requires-Dist: regex
21
+ Requires-Dist: typing-extensions
22
+ Requires-Dist: wrapt
23
+ Description-Content-Type: text/markdown
24
+
25
+ opendate
26
+ ========
27
+
28
+ A wrapper around [Pendulum](https://github.com/sdispater/pendulum) with business (NYSE default, extendable) days/hours awareness.
29
+
30
+ Documentation pending, see tests for examples. Functionality is near-identical to Pendulum with the exception of a business modifier.
31
+
32
+ The main module is named `date` rather than `pendulum`
33
+
34
+ Ex:
35
+
36
+ ```python
37
+
38
+ from date import Date, DateTime, Time, Interval
39
+
40
+ thedate = Date.today()
41
+
42
+ # add days
43
+ thedate.add(days=5)
44
+ thedate.business().add(days=5) # add 5 business day
45
+
46
+ # subtract days
47
+ thedate.subtract(days=5)
48
+ thedate.business().subtrat(days=5) # subtract 5 business day
49
+
50
+ # start of month
51
+ thedate.start_of('month')
52
+ thedate.business().start_of('month') # end of month + N days until valid business day
53
+
54
+ # end of month
55
+ thedate.end_of('month')
56
+ thedate.business().end_of('month') # end of month - N days until valid business day
57
+
58
+ # ...
59
+
60
+ ```
61
+
@@ -0,0 +1,7 @@
1
+ date/__init__.py,sha256=rKMipKmHXrZv3rFgLy6hfa4IT4yPEaiOZNm-3lUPFi0,2552
2
+ date/business.py,sha256=g4dHpmEaUuADgMxIcTG96AEviaRo9NvGDJ8IPKXD7xQ,1386
3
+ date/date.py,sha256=DrjvL_c3hYSHXaVVkccOpEyr7nDZvc02XUfSP8n_tNI,55210
4
+ opendate-0.1.1.dist-info/LICENSE,sha256=V4Rx8WWy7v8Fim6PHcEBszpZkDLbCHeorz1e_gr0Cbk,1111
5
+ opendate-0.1.1.dist-info/METADATA,sha256=yhEiuR4bKrpG87JPWLt9ilya31PkmKcTKs8AQxRcgiA,1645
6
+ opendate-0.1.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
7
+ opendate-0.1.1.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: poetry-core 1.9.0
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any