virgo-modules 0.0.65__py3-none-any.whl → 0.0.67__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 virgo-modules might be problematic. Click here for more details.
- virgo_modules/src/ticketer_source.py +11 -2
- {virgo_modules-0.0.65.dist-info → virgo_modules-0.0.67.dist-info}/METADATA +53 -53
- {virgo_modules-0.0.65.dist-info → virgo_modules-0.0.67.dist-info}/RECORD +6 -6
- {virgo_modules-0.0.65.dist-info → virgo_modules-0.0.67.dist-info}/WHEEL +1 -1
- {virgo_modules-0.0.65.dist-info → virgo_modules-0.0.67.dist-info}/LICENSE +0 -0
- {virgo_modules-0.0.65.dist-info → virgo_modules-0.0.67.dist-info}/top_level.txt +0 -0
|
@@ -197,7 +197,7 @@ class stock_eda_panel(object):
|
|
|
197
197
|
|
|
198
198
|
stock = yf.Ticker(self.stock_code)
|
|
199
199
|
df = stock.history(period=self.data_window)
|
|
200
|
-
|
|
200
|
+
|
|
201
201
|
df = df.sort_values('Date')
|
|
202
202
|
df.reset_index(inplace=True)
|
|
203
203
|
df['Date'] = pd.to_datetime(df['Date'], format='mixed',utc=True).dt.date
|
|
@@ -1687,7 +1687,7 @@ class hmm_feature_selector():
|
|
|
1687
1687
|
|
|
1688
1688
|
class signal_analyser_object:
|
|
1689
1689
|
|
|
1690
|
-
def __init__(self, data,symbol_name, show_plot = True, save_path = False, save_aws = False, aws_credentials = False):
|
|
1690
|
+
def __init__(self, data,symbol_name, show_plot = True, save_path = False, save_aws = False, aws_credentials = False, return_fig = False):
|
|
1691
1691
|
"""
|
|
1692
1692
|
data: pandas df
|
|
1693
1693
|
symbol_name: str name of the asset
|
|
@@ -1695,6 +1695,7 @@ class signal_analyser_object:
|
|
|
1695
1695
|
save_path: str local path for saving e.g r'C:/path/to/the/file/'
|
|
1696
1696
|
save_aws: str remote key in s3 bucket path e.g. 'path/to/file/'
|
|
1697
1697
|
aws_credentials: dict
|
|
1698
|
+
return_fig: boolean return the image function as result
|
|
1698
1699
|
"""
|
|
1699
1700
|
self.data = data.copy()
|
|
1700
1701
|
self.ticket_name = symbol_name
|
|
@@ -1702,6 +1703,7 @@ class signal_analyser_object:
|
|
|
1702
1703
|
self.save_path = save_path
|
|
1703
1704
|
self.save_aws = save_aws
|
|
1704
1705
|
self.aws_credentials = aws_credentials
|
|
1706
|
+
self.return_fig = return_fig
|
|
1705
1707
|
|
|
1706
1708
|
def signal_analyser(self, test_size, feature_name, days_list, threshold = 0.05,verbose = False, signal_position = False):
|
|
1707
1709
|
data = self.data
|
|
@@ -1818,7 +1820,11 @@ class signal_analyser_object:
|
|
|
1818
1820
|
upload_file_to_aws(bucket = 'VIRGO_BUCKET', key = self.save_aws + result_plot_name, input_path = self.save_path + result_plot_name, aws_credentials = self.aws_credentials)
|
|
1819
1821
|
if not self.show_plot:
|
|
1820
1822
|
plt.close()
|
|
1823
|
+
|
|
1821
1824
|
del df
|
|
1825
|
+
|
|
1826
|
+
if self.return_fig:
|
|
1827
|
+
return fig
|
|
1822
1828
|
|
|
1823
1829
|
def create_backtest_signal(self,days_strategy, test_size, feature_name):
|
|
1824
1830
|
asset_1 = 'Close'
|
|
@@ -1918,6 +1924,9 @@ class signal_analyser_object:
|
|
|
1918
1924
|
plt.close()
|
|
1919
1925
|
|
|
1920
1926
|
del df1,df2,dft
|
|
1927
|
+
|
|
1928
|
+
if self.return_fig:
|
|
1929
|
+
return fig, messages
|
|
1921
1930
|
|
|
1922
1931
|
def execute_signal_analyser(test_data_size, feature_name, days_list, configuration, method, object_stock, signal_analyser_object, plot = False, backtest= False):
|
|
1923
1932
|
method(**configuration)
|
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
Metadata-Version: 2.1
|
|
2
|
-
Name: virgo-modules
|
|
3
|
-
Version: 0.0.
|
|
4
|
-
Summary: data processing and statistical modeling using stock market data
|
|
5
|
-
Home-page: https://github.com/miguelmayhem92/virgo_module
|
|
6
|
-
Author: Miguel Mayhuire
|
|
7
|
-
Author-email: miguelmayhem92@gmail.com
|
|
8
|
-
License: MIT
|
|
9
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
10
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
11
|
-
Classifier: Operating System :: OS Independent
|
|
12
|
-
Requires-Python: >=3.9, <3.10
|
|
13
|
-
Description-Content-Type: text/markdown
|
|
14
|
-
License-File: LICENSE
|
|
15
|
-
Requires-Dist: feature-engine ==1.6.1
|
|
16
|
-
Requires-Dist: matplotlib ==3.6.3
|
|
17
|
-
Requires-Dist: mlflow ==2.1.1
|
|
18
|
-
Requires-Dist: numpy ==1.23.5
|
|
19
|
-
Requires-Dist: optuna ==3.1.0
|
|
20
|
-
Requires-Dist: pandas ==1.5.3
|
|
21
|
-
Requires-Dist: plotly ==5.15.0
|
|
22
|
-
Requires-Dist: rsa ==4.9
|
|
23
|
-
Requires-Dist: scikit-learn ==1.2.1
|
|
24
|
-
Requires-Dist: scipy ==1.10.0
|
|
25
|
-
Requires-Dist: seaborn ==0.12.2
|
|
26
|
-
Requires-Dist: starlette ==0.22.0
|
|
27
|
-
Requires-Dist: statsmodels ==0.13.5
|
|
28
|
-
Requires-Dist: ta ==0.10.2
|
|
29
|
-
Requires-Dist: yfinance ==0.2.9
|
|
30
|
-
Requires-Dist: hmmlearn ==0.3.0
|
|
31
|
-
Requires-Dist: boto3
|
|
32
|
-
Provides-Extra: dev
|
|
33
|
-
Requires-Dist: pytest >=7.0 ; extra == 'dev'
|
|
34
|
-
|
|
35
|
-
# Virgo Package
|
|
36
|
-
|
|
37
|
-
this package contains the utils and helper functions that used in virgo project
|
|
38
|
-
|
|
39
|
-
### how to use
|
|
40
|
-
|
|
41
|
-
istall using
|
|
42
|
-
|
|
43
|
-
```
|
|
44
|
-
pip install virgo-modules
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
geting data:
|
|
48
|
-
|
|
49
|
-
```
|
|
50
|
-
obj = stock_eda_panel(stock_code = 'PEP', n_days = 20)
|
|
51
|
-
obj.get_data()
|
|
52
|
-
print(obj.df.shape)
|
|
53
|
-
```
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: virgo-modules
|
|
3
|
+
Version: 0.0.67
|
|
4
|
+
Summary: data processing and statistical modeling using stock market data
|
|
5
|
+
Home-page: https://github.com/miguelmayhem92/virgo_module
|
|
6
|
+
Author: Miguel Mayhuire
|
|
7
|
+
Author-email: miguelmayhem92@gmail.com
|
|
8
|
+
License: MIT
|
|
9
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
10
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
11
|
+
Classifier: Operating System :: OS Independent
|
|
12
|
+
Requires-Python: >=3.9, <3.10
|
|
13
|
+
Description-Content-Type: text/markdown
|
|
14
|
+
License-File: LICENSE
|
|
15
|
+
Requires-Dist: feature-engine (==1.6.1)
|
|
16
|
+
Requires-Dist: matplotlib (==3.6.3)
|
|
17
|
+
Requires-Dist: mlflow (==2.1.1)
|
|
18
|
+
Requires-Dist: numpy (==1.23.5)
|
|
19
|
+
Requires-Dist: optuna (==3.1.0)
|
|
20
|
+
Requires-Dist: pandas (==1.5.3)
|
|
21
|
+
Requires-Dist: plotly (==5.15.0)
|
|
22
|
+
Requires-Dist: rsa (==4.9)
|
|
23
|
+
Requires-Dist: scikit-learn (==1.2.1)
|
|
24
|
+
Requires-Dist: scipy (==1.10.0)
|
|
25
|
+
Requires-Dist: seaborn (==0.12.2)
|
|
26
|
+
Requires-Dist: starlette (==0.22.0)
|
|
27
|
+
Requires-Dist: statsmodels (==0.13.5)
|
|
28
|
+
Requires-Dist: ta (==0.10.2)
|
|
29
|
+
Requires-Dist: yfinance (==0.2.9)
|
|
30
|
+
Requires-Dist: hmmlearn (==0.3.0)
|
|
31
|
+
Requires-Dist: boto3
|
|
32
|
+
Provides-Extra: dev
|
|
33
|
+
Requires-Dist: pytest (>=7.0) ; extra == 'dev'
|
|
34
|
+
|
|
35
|
+
# Virgo Package
|
|
36
|
+
|
|
37
|
+
this package contains the utils and helper functions that used in virgo project
|
|
38
|
+
|
|
39
|
+
### how to use
|
|
40
|
+
|
|
41
|
+
istall using
|
|
42
|
+
|
|
43
|
+
```
|
|
44
|
+
pip install virgo-modules
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
geting data:
|
|
48
|
+
|
|
49
|
+
```
|
|
50
|
+
obj = stock_eda_panel(stock_code = 'PEP', n_days = 20)
|
|
51
|
+
obj.get_data()
|
|
52
|
+
print(obj.df.shape)
|
|
53
|
+
```
|
|
@@ -4,9 +4,9 @@ virgo_modules/src/aws_utils.py,sha256=GWmVdXM0mIJJPn-X-bEtM4KtNPCHM1D457hnuKxaM7
|
|
|
4
4
|
virgo_modules/src/edge_utils.py,sha256=Ihdmq7dyb8gOvG6CrDal7wsa15tqsdsFk6KINwM6578,7691
|
|
5
5
|
virgo_modules/src/pull_artifacts.py,sha256=5OPrgR7pcMSdpbevDRhf0ebk7g7ZRjff4NpTIIWAKjE,1989
|
|
6
6
|
virgo_modules/src/re_utils.py,sha256=s6fbjOI59Clw5f1sVfqexiviYJyRVGobYe7qFsC-tQo,52211
|
|
7
|
-
virgo_modules/src/ticketer_source.py,sha256=
|
|
8
|
-
virgo_modules-0.0.
|
|
9
|
-
virgo_modules-0.0.
|
|
10
|
-
virgo_modules-0.0.
|
|
11
|
-
virgo_modules-0.0.
|
|
12
|
-
virgo_modules-0.0.
|
|
7
|
+
virgo_modules/src/ticketer_source.py,sha256=_vJkF38yAl2FbxvcOWHbjG5n7o34lh8SdRR8zzIxChY,101408
|
|
8
|
+
virgo_modules-0.0.67.dist-info/LICENSE,sha256=pNgFyCYgmimaw0o6V20JupZLROycAnOA_HDDh1tX2V4,1097
|
|
9
|
+
virgo_modules-0.0.67.dist-info/METADATA,sha256=Y5PmJf9G5ZC04DYJcfP1lZJl6IL7oKU8MxIWqjc5FHg,1410
|
|
10
|
+
virgo_modules-0.0.67.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
|
|
11
|
+
virgo_modules-0.0.67.dist-info/top_level.txt,sha256=ZjI-qEkDtT-8mFwGAWnXfqPOKEGlIhWRW1es1VyXc60,14
|
|
12
|
+
virgo_modules-0.0.67.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|