openseries 1.8.0__tar.gz → 1.8.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.
- openseries-1.8.1/LICENSE.md +27 -0
- {openseries-1.8.0 → openseries-1.8.1}/PKG-INFO +41 -13
- {openseries-1.8.0 → openseries-1.8.1}/README.md +6 -5
- {openseries-1.8.0 → openseries-1.8.1}/openseries/__init__.py +2 -1
- {openseries-1.8.0 → openseries-1.8.1}/openseries/_common_model.py +107 -82
- {openseries-1.8.0 → openseries-1.8.1}/openseries/_risk.py +2 -2
- {openseries-1.8.0 → openseries-1.8.1}/openseries/datefixer.py +10 -4
- {openseries-1.8.0 → openseries-1.8.1}/openseries/frame.py +89 -71
- {openseries-1.8.0 → openseries-1.8.1}/openseries/load_plotly.py +4 -2
- {openseries-1.8.0 → openseries-1.8.1}/openseries/owntypes.py +64 -3
- {openseries-1.8.0 → openseries-1.8.1}/openseries/plotly_layouts.json +3 -3
- {openseries-1.8.0 → openseries-1.8.1}/openseries/portfoliotools.py +19 -16
- {openseries-1.8.0 → openseries-1.8.1}/openseries/series.py +41 -53
- {openseries-1.8.0 → openseries-1.8.1}/openseries/simulation.py +5 -4
- {openseries-1.8.0 → openseries-1.8.1}/pyproject.toml +20 -16
- openseries-1.8.0/LICENSE.md +0 -27
- {openseries-1.8.0 → openseries-1.8.1}/openseries/plotly_captor_logo.json +0 -0
@@ -0,0 +1,27 @@
|
|
1
|
+
# BSD 3-Clause License
|
2
|
+
|
3
|
+
## Copyright (c) Captor Fund Management AB
|
4
|
+
|
5
|
+
Redistribution and use in source and binary forms, with or without modification, are
|
6
|
+
permitted provided that the following conditions are met:
|
7
|
+
|
8
|
+
1. Redistributions of source code must retain the above copyright notice, this list of
|
9
|
+
conditions and the following disclaimer.
|
10
|
+
|
11
|
+
2. Redistributions in binary form must reproduce the above copyright notice, this list
|
12
|
+
of conditions and the following disclaimer in the documentation and/or other
|
13
|
+
materials provided with the distribution.
|
14
|
+
|
15
|
+
3. Neither the name of the copyright holder nor the names of its contributors may be
|
16
|
+
used to endorse or promote products derived from this software without specific prior
|
17
|
+
written permission.
|
18
|
+
|
19
|
+
This software is provided by the copyright holders and contributors “as is” and any
|
20
|
+
express or implied warranties, including, but not limited to, the implied warranties of
|
21
|
+
merchantability and fitness for a particular purpose, are disclaimed. In no event shall
|
22
|
+
the copyright holder or contributors be liable for any direct, indirect, incidental,
|
23
|
+
special, exemplary, or consequential damages (including, but not limited to, procurement
|
24
|
+
of substitute goods or services; loss of use, data, or profits; or business interruption)
|
25
|
+
however caused and on any theory of liability, whether in contract, strict liability,
|
26
|
+
or tort (including negligence or otherwise) arising in any way out of the use of this
|
27
|
+
software, even if advised of the possibility of such damage.
|
@@ -1,8 +1,34 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: openseries
|
3
|
-
Version: 1.8.
|
3
|
+
Version: 1.8.1
|
4
4
|
Summary: Tools for analyzing financial timeseries.
|
5
|
-
License: BSD
|
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.
|
6
32
|
Keywords: python,finance,fintech,data-science,timeseries,timeseries-data,timeseries-analysis,investment,investment-analysis,investing
|
7
33
|
Author: Martin Karrin
|
8
34
|
Author-email: martin.karrin@captor.se
|
@@ -22,18 +48,19 @@ Classifier: Operating System :: OS Independent
|
|
22
48
|
Classifier: Framework :: Pydantic
|
23
49
|
Requires-Dist: holidays (>=0.30,<1.0)
|
24
50
|
Requires-Dist: numpy (>=1.23.2,<3.0.0)
|
25
|
-
Requires-Dist: openpyxl (>=3.1.2,<
|
51
|
+
Requires-Dist: openpyxl (>=3.1.2,<5.0.0)
|
26
52
|
Requires-Dist: pandas (>=2.1.2,<3.0.0)
|
27
|
-
Requires-Dist: plotly (>=5.18.0,<
|
28
|
-
Requires-Dist: pyarrow (>=14.0.2,<
|
53
|
+
Requires-Dist: plotly (>=5.18.0,<7.0.0)
|
54
|
+
Requires-Dist: pyarrow (>=14.0.2,<21.0.0)
|
29
55
|
Requires-Dist: pydantic (>=2.5.2,<3.0.0)
|
30
|
-
Requires-Dist: python-dateutil (>=2.8.2,<
|
56
|
+
Requires-Dist: python-dateutil (>=2.8.2,<4.0.0)
|
31
57
|
Requires-Dist: requests (>=2.20.0,<3.0.0)
|
32
58
|
Requires-Dist: scipy (>=1.11.4,<2.0.0)
|
33
59
|
Requires-Dist: statsmodels (>=0.14.0,!=0.14.2,<1.0.0)
|
34
|
-
Project-URL: Documentation, https://github.com/CaptorAB/openseries
|
35
60
|
Project-URL: Homepage, https://github.com/CaptorAB/openseries
|
36
|
-
Project-URL:
|
61
|
+
Project-URL: Issue Tracker, https://github.com/CaptorAB/openseries/issues
|
62
|
+
Project-URL: Release Notes, https://github.com/CaptorAB/openseries/releases
|
63
|
+
Project-URL: Source, https://github.com/CaptorAB/openseries
|
37
64
|
Description-Content-Type: text/markdown
|
38
65
|
|
39
66
|
<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/>
|
@@ -194,11 +221,12 @@ make lint
|
|
194
221
|
|
195
222
|
### On some files in the project
|
196
223
|
|
197
|
-
| File
|
198
|
-
|
199
|
-
| [series.py](https://github.com/CaptorAB/openseries/blob/master/openseries/series.py)
|
200
|
-
| [frame.py](https://github.com/CaptorAB/openseries/blob/master/openseries/frame.py)
|
201
|
-
| [
|
224
|
+
| File | Description |
|
225
|
+
|:-----------------------------------------------------------------------------------------------------|:----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
226
|
+
| [series.py](https://github.com/CaptorAB/openseries/blob/master/openseries/series.py) | Defines the class _OpenTimeSeries_ for managing and analyzing a single timeseries. The module also defines a function `timeseries_chain` that can be used to chain two timeseries objects together. |
|
227
|
+
| [frame.py](https://github.com/CaptorAB/openseries/blob/master/openseries/frame.py) | Defines the class _OpenFrame_ for managing a group of timeseries, and e.g. calculate a portfolio timeseries from a rebalancing strategy between timeseries. |
|
228
|
+
| [portfoliotools.py](https://github.com/CaptorAB/openseries/blob/master/openseries/portfoliotools.py) | Defines functions to simulate, optimize, and plot portfolios. |
|
229
|
+
| [simulation.py](https://github.com/CaptorAB/openseries/blob/master/openseries/simulation.py) | Defines the class _ReturnSimulation_ to create simulated financial timeseries. Used in the project's test suite |
|
202
230
|
|
203
231
|
### Class methods used to construct objects.
|
204
232
|
|
@@ -156,11 +156,12 @@ make lint
|
|
156
156
|
|
157
157
|
### On some files in the project
|
158
158
|
|
159
|
-
| File
|
160
|
-
|
161
|
-
| [series.py](https://github.com/CaptorAB/openseries/blob/master/openseries/series.py)
|
162
|
-
| [frame.py](https://github.com/CaptorAB/openseries/blob/master/openseries/frame.py)
|
163
|
-
| [
|
159
|
+
| File | Description |
|
160
|
+
|:-----------------------------------------------------------------------------------------------------|:----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
161
|
+
| [series.py](https://github.com/CaptorAB/openseries/blob/master/openseries/series.py) | Defines the class _OpenTimeSeries_ for managing and analyzing a single timeseries. The module also defines a function `timeseries_chain` that can be used to chain two timeseries objects together. |
|
162
|
+
| [frame.py](https://github.com/CaptorAB/openseries/blob/master/openseries/frame.py) | Defines the class _OpenFrame_ for managing a group of timeseries, and e.g. calculate a portfolio timeseries from a rebalancing strategy between timeseries. |
|
163
|
+
| [portfoliotools.py](https://github.com/CaptorAB/openseries/blob/master/openseries/portfoliotools.py) | Defines functions to simulate, optimize, and plot portfolios. |
|
164
|
+
| [simulation.py](https://github.com/CaptorAB/openseries/blob/master/openseries/simulation.py) | Defines the class _ReturnSimulation_ to create simulated financial timeseries. Used in the project's test suite |
|
164
165
|
|
165
166
|
### Class methods used to construct objects.
|
166
167
|
|
@@ -10,7 +10,7 @@ from .datefixer import (
|
|
10
10
|
)
|
11
11
|
from .frame import OpenFrame
|
12
12
|
from .load_plotly import load_plotly_dict
|
13
|
-
from .owntypes import ValueType
|
13
|
+
from .owntypes import Self, ValueType
|
14
14
|
from .portfoliotools import (
|
15
15
|
constrain_optimized_portfolios,
|
16
16
|
efficient_frontier,
|
@@ -25,6 +25,7 @@ __all__ = [
|
|
25
25
|
"OpenFrame",
|
26
26
|
"OpenTimeSeries",
|
27
27
|
"ReturnSimulation",
|
28
|
+
"Self",
|
28
29
|
"ValueType",
|
29
30
|
"constrain_optimized_portfolios",
|
30
31
|
"date_fix",
|