openseries 1.9.7__tar.gz → 2.0.1__tar.gz

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.
@@ -0,0 +1,128 @@
1
+ Metadata-Version: 2.4
2
+ Name: openseries
3
+ Version: 2.0.1
4
+ Summary: Tools for analyzing financial timeseries.
5
+ License: # BSD 3-Clause License
6
+
7
+ ## Copyright (c) Captor Fund Management AB
8
+
9
+ Redistribution and use in source and binary forms, with or without modification, are
10
+ permitted provided that the following conditions are met:
11
+
12
+ 1. Redistributions of source code must retain the above copyright notice, this list of
13
+ conditions and the following disclaimer.
14
+
15
+ 2. Redistributions in binary form must reproduce the above copyright notice, this list
16
+ of conditions and the following disclaimer in the documentation and/or other
17
+ materials provided with the distribution.
18
+
19
+ 3. Neither the name of the copyright holder nor the names of its contributors may be
20
+ used to endorse or promote products derived from this software without specific prior
21
+ written permission.
22
+
23
+ This software is provided by the copyright holders and contributors “as is” and any
24
+ express or implied warranties, including, but not limited to, the implied warranties of
25
+ merchantability and fitness for a particular purpose, are disclaimed. In no event shall
26
+ the copyright holder or contributors be liable for any direct, indirect, incidental,
27
+ special, exemplary, or consequential damages (including, but not limited to, procurement
28
+ of substitute goods or services; loss of use, data, or profits; or business interruption)
29
+ however caused and on any theory of liability, whether in contract, strict liability,
30
+ or tort (including negligence or otherwise) arising in any way out of the use of this
31
+ software, even if advised of the possibility of such damage.
32
+ License-File: LICENSE.md
33
+ Keywords: python,finance,fintech,data-science,timeseries,timeseries-data,timeseries-analysis,investment,investment-analysis,investing
34
+ Author: Martin Karrin
35
+ Author-email: martin.karrin@captor.se
36
+ Maintainer: Martin Karrin
37
+ Maintainer-email: martin.karrin@captor.se
38
+ Requires-Python: >=3.10,<3.15
39
+ Classifier: Programming Language :: Python :: 3.10
40
+ Classifier: Programming Language :: Python :: 3.11
41
+ Classifier: Programming Language :: Python :: 3.12
42
+ Classifier: Programming Language :: Python :: 3.13
43
+ Classifier: Programming Language :: Python :: 3.14
44
+ Classifier: License :: OSI Approved :: BSD License
45
+ Classifier: Intended Audience :: Financial and Insurance Industry
46
+ Classifier: Topic :: Office/Business :: Financial :: Investment
47
+ Classifier: Natural Language :: English
48
+ Classifier: Development Status :: 5 - Production/Stable
49
+ Classifier: Operating System :: OS Independent
50
+ Classifier: Framework :: Pydantic
51
+ Requires-Dist: exchange-calendars (>=4.8,<6.0)
52
+ Requires-Dist: holidays (>=0.30,<1.0)
53
+ Requires-Dist: numpy (>=1.23.2,!=2.3.0,<3.0.0)
54
+ Requires-Dist: openpyxl (>=3.1.2,<5.0.0)
55
+ Requires-Dist: pandas (>=2.1.2,<3.0.0)
56
+ Requires-Dist: plotly (>=5.18.0,<7.0.0)
57
+ Requires-Dist: pydantic (>=2.5.2,<3.0.0)
58
+ Requires-Dist: python-dateutil (>=2.8.2,<4.0.0)
59
+ Requires-Dist: requests (>=2.20.0,<3.0.0)
60
+ Requires-Dist: scikit-learn (>=1.4.0,<2.0.0)
61
+ Requires-Dist: scipy (>=1.11.4,<2.0.0)
62
+ Project-URL: Documentation, https://openseries.readthedocs.io/
63
+ Project-URL: Homepage, https://github.com/CaptorAB/openseries
64
+ Project-URL: Issue Tracker, https://github.com/CaptorAB/openseries/issues
65
+ Project-URL: Release Notes, https://github.com/CaptorAB/openseries/releases
66
+ Project-URL: Source, https://github.com/CaptorAB/openseries
67
+ Description-Content-Type: text/markdown
68
+
69
+ <a href="https://captor.se/"><img src="https://sales.captor.se/captor_logo_sv_1600_icketransparent.png" alt="Captor Fund Management AB" width="81" height="100" align="left" float="right"/></a><br/>
70
+
71
+ <br><br>
72
+
73
+ # openseries
74
+
75
+ [![PyPI version](https://img.shields.io/pypi/v/openseries.svg)](https://pypi.org/project/openseries/)
76
+ [![Conda Version](https://img.shields.io/conda/vn/conda-forge/openseries.svg)](https://anaconda.org/conda-forge/openseries)
77
+ ![Platform](https://img.shields.io/badge/platforms-Windows%20%7C%20macOS%20%7C%20Linux-blue)
78
+ [![Python version](https://img.shields.io/pypi/pyversions/openseries.svg)](https://www.python.org/)
79
+ [![GitHub Action Test Suite](https://github.com/CaptorAB/openseries/actions/workflows/test.yml/badge.svg)](https://github.com/CaptorAB/openseries/actions/workflows/test.yml)
80
+ [![codecov](https://img.shields.io/codecov/c/gh/CaptorAB/openseries?logo=codecov)](https://codecov.io/gh/CaptorAB/openseries/branch/master)
81
+ [![Documentation](https://readthedocs.org/projects/openseries/badge/?version=latest)](https://openseries.readthedocs.io/en/latest/?badge=latest)
82
+ [![Poetry](https://img.shields.io/endpoint?url=https://python-poetry.org/badge/v0.json)](https://python-poetry.org/)
83
+ [![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://beta.ruff.rs/docs/)
84
+ [![GitHub License](https://img.shields.io/github/license/CaptorAB/openseries)](https://github.com/CaptorAB/openseries/blob/master/LICENSE.md)
85
+ [![Code Sample](https://img.shields.io/badge/-Code%20Sample-blue)](https://nbviewer.org/github/karrmagadgeteer2/NoteBook/blob/master/openseriesnotebook.ipynb)
86
+
87
+ Tools for analyzing financial timeseries of a single asset or a group of assets. Designed for daily or less frequent data.
88
+
89
+ ## Documentation
90
+
91
+ Complete documentation is available at: [https://openseries.readthedocs.io](https://openseries.readthedocs.io/)
92
+
93
+ The documentation includes:
94
+
95
+ - Quick start guide
96
+ - API reference
97
+ - Tutorials and examples
98
+ - Installation instructions
99
+
100
+ ## Installation
101
+
102
+ ```bash
103
+ pip install openseries
104
+ ```
105
+
106
+ or:
107
+
108
+ ```bash
109
+ conda install -c conda-forge openseries
110
+ ```
111
+
112
+ ## Quick Start
113
+
114
+ ```python
115
+ from openseries import OpenTimeSeries
116
+ import yfinance as yf
117
+
118
+ move=yf.Ticker(ticker="^MOVE")
119
+ history=move.history(period="max")
120
+ series=OpenTimeSeries.from_df(dframe=history.loc[:, "Close"])
121
+ _=series.set_new_label(lvl_zero="ICE BofAML MOVE Index")
122
+ _,_=series.plot_series()
123
+ ```
124
+
125
+ ### Sample output using the report_html() function
126
+
127
+ <img src="https://raw.githubusercontent.com/CaptorAB/openseries/master/openseries_plot.png" alt="Two Assets Compared" width="1000" />
128
+
@@ -0,0 +1,59 @@
1
+ <a href="https://captor.se/"><img src="https://sales.captor.se/captor_logo_sv_1600_icketransparent.png" alt="Captor Fund Management AB" width="81" height="100" align="left" float="right"/></a><br/>
2
+
3
+ <br><br>
4
+
5
+ # openseries
6
+
7
+ [![PyPI version](https://img.shields.io/pypi/v/openseries.svg)](https://pypi.org/project/openseries/)
8
+ [![Conda Version](https://img.shields.io/conda/vn/conda-forge/openseries.svg)](https://anaconda.org/conda-forge/openseries)
9
+ ![Platform](https://img.shields.io/badge/platforms-Windows%20%7C%20macOS%20%7C%20Linux-blue)
10
+ [![Python version](https://img.shields.io/pypi/pyversions/openseries.svg)](https://www.python.org/)
11
+ [![GitHub Action Test Suite](https://github.com/CaptorAB/openseries/actions/workflows/test.yml/badge.svg)](https://github.com/CaptorAB/openseries/actions/workflows/test.yml)
12
+ [![codecov](https://img.shields.io/codecov/c/gh/CaptorAB/openseries?logo=codecov)](https://codecov.io/gh/CaptorAB/openseries/branch/master)
13
+ [![Documentation](https://readthedocs.org/projects/openseries/badge/?version=latest)](https://openseries.readthedocs.io/en/latest/?badge=latest)
14
+ [![Poetry](https://img.shields.io/endpoint?url=https://python-poetry.org/badge/v0.json)](https://python-poetry.org/)
15
+ [![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://beta.ruff.rs/docs/)
16
+ [![GitHub License](https://img.shields.io/github/license/CaptorAB/openseries)](https://github.com/CaptorAB/openseries/blob/master/LICENSE.md)
17
+ [![Code Sample](https://img.shields.io/badge/-Code%20Sample-blue)](https://nbviewer.org/github/karrmagadgeteer2/NoteBook/blob/master/openseriesnotebook.ipynb)
18
+
19
+ Tools for analyzing financial timeseries of a single asset or a group of assets. Designed for daily or less frequent data.
20
+
21
+ ## Documentation
22
+
23
+ Complete documentation is available at: [https://openseries.readthedocs.io](https://openseries.readthedocs.io/)
24
+
25
+ The documentation includes:
26
+
27
+ - Quick start guide
28
+ - API reference
29
+ - Tutorials and examples
30
+ - Installation instructions
31
+
32
+ ## Installation
33
+
34
+ ```bash
35
+ pip install openseries
36
+ ```
37
+
38
+ or:
39
+
40
+ ```bash
41
+ conda install -c conda-forge openseries
42
+ ```
43
+
44
+ ## Quick Start
45
+
46
+ ```python
47
+ from openseries import OpenTimeSeries
48
+ import yfinance as yf
49
+
50
+ move=yf.Ticker(ticker="^MOVE")
51
+ history=move.history(period="max")
52
+ series=OpenTimeSeries.from_df(dframe=history.loc[:, "Close"])
53
+ _=series.set_new_label(lvl_zero="ICE BofAML MOVE Index")
54
+ _,_=series.plot_series()
55
+ ```
56
+
57
+ ### Sample output using the report_html() function
58
+
59
+ <img src="https://raw.githubusercontent.com/CaptorAB/openseries/master/openseries_plot.png" alt="Two Assets Compared" width="1000" />
@@ -1,11 +1,6 @@
1
- """openseries.openseries.__init__.py.
1
+ """openseries.openseries.__init__.py."""
2
2
 
3
- Copyright (c) Captor Fund Management AB. This file is part of the openseries project.
4
-
5
- Licensed under the BSD 3-Clause License. You may obtain a copy of the License at:
6
- https://github.com/CaptorAB/openseries/blob/master/LICENSE.md
7
- SPDX-License-Identifier: BSD-3-Clause
8
- """
3
+ __version__ = "2.0.1"
9
4
 
10
5
  from .datefixer import (
11
6
  date_fix,