openseries 1.5.7__tar.gz → 1.7.0__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.
@@ -1,6 +1,6 @@
1
1
  # BSD 3-Clause License
2
2
 
3
- ## Copyright (c) 2024, Captor Fund Management AB
3
+ ## Copyright (c) Captor Fund Management AB
4
4
 
5
5
  Redistribution and use in source and binary forms, with or without modification, are
6
6
  permitted provided that the following conditions are met:
@@ -1,13 +1,13 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: openseries
3
- Version: 1.5.7
3
+ Version: 1.7.0
4
4
  Summary: Tools for analyzing financial timeseries.
5
5
  Home-page: https://github.com/CaptorAB/openseries
6
6
  License: BSD-3-Clause
7
7
  Keywords: python,finance,fintech,data-science,timeseries,timeseries-data,timeseries-analysis,investment,investment-analysis,investing
8
8
  Author: Martin Karrin
9
9
  Author-email: martin.karrin@captor.se
10
- Requires-Python: >=3.9,<3.13
10
+ Requires-Python: >=3.10,<3.13
11
11
  Classifier: Development Status :: 5 - Production/Stable
12
12
  Classifier: Framework :: Pydantic
13
13
  Classifier: Intended Audience :: Financial and Insurance Industry
@@ -15,7 +15,6 @@ Classifier: License :: OSI Approved :: BSD License
15
15
  Classifier: Natural Language :: English
16
16
  Classifier: Operating System :: OS Independent
17
17
  Classifier: Programming Language :: Python :: 3
18
- Classifier: Programming Language :: Python :: 3.9
19
18
  Classifier: Programming Language :: Python :: 3.10
20
19
  Classifier: Programming Language :: Python :: 3.11
21
20
  Classifier: Programming Language :: Python :: 3.12
@@ -25,7 +24,7 @@ Requires-Dist: numpy (>=1.23.2,<=3.0.0)
25
24
  Requires-Dist: openpyxl (>=3.1.2,<4.0.0)
26
25
  Requires-Dist: pandas (>=2.1.2,<3.0.0)
27
26
  Requires-Dist: plotly (>=5.18.0,<6.0.0)
28
- Requires-Dist: pyarrow (>=14.0.2,<17.0.0)
27
+ Requires-Dist: pyarrow (>=14.0.2,<18.0.0)
29
28
  Requires-Dist: pydantic (>=2.5.2,<3.0.0)
30
29
  Requires-Dist: python-dateutil (>=2.8.2,<3.0.0)
31
30
  Requires-Dist: requests (>=2.20.0,<3.0.0)
@@ -80,7 +79,7 @@ The code snippet can be pasted into a Python console to run it.
80
79
  Install openseries and yfinance first.
81
80
 
82
81
  ```python
83
- from openseries.series import OpenTimeSeries
82
+ from openseries import OpenTimeSeries
84
83
  import yfinance as yf
85
84
 
86
85
  msft=yf.Ticker("MSFT")
@@ -44,7 +44,7 @@ The code snippet can be pasted into a Python console to run it.
44
44
  Install openseries and yfinance first.
45
45
 
46
46
  ```python
47
- from openseries.series import OpenTimeSeries
47
+ from openseries import OpenTimeSeries
48
48
  import yfinance as yf
49
49
 
50
50
  msft=yf.Ticker("MSFT")
@@ -0,0 +1,44 @@
1
+ """openseries.openseries.__init__.py."""
2
+
3
+ from .datefixer import (
4
+ date_fix,
5
+ date_offset_foll,
6
+ do_resample_to_business_period_ends,
7
+ generate_calendar_date_range,
8
+ get_previous_business_day_before_today,
9
+ holiday_calendar,
10
+ offset_business_days,
11
+ )
12
+ from .frame import OpenFrame
13
+ from .load_plotly import load_plotly_dict
14
+ from .portfoliotools import (
15
+ constrain_optimized_portfolios,
16
+ efficient_frontier,
17
+ prepare_plot_data,
18
+ sharpeplot,
19
+ simulate_portfolios,
20
+ )
21
+ from .series import OpenTimeSeries, timeseries_chain
22
+ from .simulation import ReturnSimulation
23
+ from .types import ValueType
24
+
25
+ __all__ = [
26
+ "OpenFrame",
27
+ "constrain_optimized_portfolios",
28
+ "efficient_frontier",
29
+ "prepare_plot_data",
30
+ "sharpeplot",
31
+ "simulate_portfolios",
32
+ "date_fix",
33
+ "date_offset_foll",
34
+ "do_resample_to_business_period_ends",
35
+ "generate_calendar_date_range",
36
+ "get_previous_business_day_before_today",
37
+ "holiday_calendar",
38
+ "offset_business_days",
39
+ "load_plotly_dict",
40
+ "OpenTimeSeries",
41
+ "timeseries_chain",
42
+ "ReturnSimulation",
43
+ "ValueType",
44
+ ]