virgo-modules 0.0.65__tar.gz → 0.0.66__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.

Potentially problematic release.


This version of virgo-modules might be problematic. Click here for more details.

Files changed (17) hide show
  1. {virgo_modules-0.0.65 → virgo_modules-0.0.66}/PKG-INFO +1 -1
  2. {virgo_modules-0.0.65 → virgo_modules-0.0.66}/setup.py +1 -1
  3. {virgo_modules-0.0.65 → virgo_modules-0.0.66}/virgo_app/virgo_modules/src/ticketer_source.py +14 -2
  4. {virgo_modules-0.0.65 → virgo_modules-0.0.66}/virgo_app/virgo_modules.egg-info/PKG-INFO +1 -1
  5. {virgo_modules-0.0.65 → virgo_modules-0.0.66}/LICENSE +0 -0
  6. {virgo_modules-0.0.65 → virgo_modules-0.0.66}/README.md +0 -0
  7. {virgo_modules-0.0.65 → virgo_modules-0.0.66}/setup.cfg +0 -0
  8. {virgo_modules-0.0.65 → virgo_modules-0.0.66}/virgo_app/virgo_modules/__init__.py +0 -0
  9. {virgo_modules-0.0.65 → virgo_modules-0.0.66}/virgo_app/virgo_modules/src/__init__.py +0 -0
  10. {virgo_modules-0.0.65 → virgo_modules-0.0.66}/virgo_app/virgo_modules/src/aws_utils.py +0 -0
  11. {virgo_modules-0.0.65 → virgo_modules-0.0.66}/virgo_app/virgo_modules/src/edge_utils.py +0 -0
  12. {virgo_modules-0.0.65 → virgo_modules-0.0.66}/virgo_app/virgo_modules/src/pull_artifacts.py +0 -0
  13. {virgo_modules-0.0.65 → virgo_modules-0.0.66}/virgo_app/virgo_modules/src/re_utils.py +0 -0
  14. {virgo_modules-0.0.65 → virgo_modules-0.0.66}/virgo_app/virgo_modules.egg-info/SOURCES.txt +0 -0
  15. {virgo_modules-0.0.65 → virgo_modules-0.0.66}/virgo_app/virgo_modules.egg-info/dependency_links.txt +0 -0
  16. {virgo_modules-0.0.65 → virgo_modules-0.0.66}/virgo_app/virgo_modules.egg-info/requires.txt +0 -0
  17. {virgo_modules-0.0.65 → virgo_modules-0.0.66}/virgo_app/virgo_modules.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: virgo_modules
3
- Version: 0.0.65
3
+ Version: 0.0.66
4
4
  Summary: data processing and statistical modeling using stock market data
5
5
  Home-page: https://github.com/miguelmayhem92/virgo_module
6
6
  Author: Miguel Mayhuire
@@ -5,7 +5,7 @@ with open("virgo_app/README.md", "r") as f:
5
5
 
6
6
  setup(
7
7
  name="virgo_modules",
8
- version="0.0.65",
8
+ version="0.0.66",
9
9
  description="data processing and statistical modeling using stock market data",
10
10
  package_dir={"": "virgo_app"},
11
11
  packages=find_packages(where="virgo_app"),
@@ -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,14 @@ 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
1828
+
1829
+
1830
+
1822
1831
 
1823
1832
  def create_backtest_signal(self,days_strategy, test_size, feature_name):
1824
1833
  asset_1 = 'Close'
@@ -1918,6 +1927,9 @@ class signal_analyser_object:
1918
1927
  plt.close()
1919
1928
 
1920
1929
  del df1,df2,dft
1930
+
1931
+ if self.return_fig:
1932
+ return fig
1921
1933
 
1922
1934
  def execute_signal_analyser(test_data_size, feature_name, days_list, configuration, method, object_stock, signal_analyser_object, plot = False, backtest= False):
1923
1935
  method(**configuration)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: virgo-modules
3
- Version: 0.0.65
3
+ Version: 0.0.66
4
4
  Summary: data processing and statistical modeling using stock market data
5
5
  Home-page: https://github.com/miguelmayhem92/virgo_module
6
6
  Author: Miguel Mayhuire
File without changes
File without changes
File without changes