bullishpy 0.38.0__py3-none-any.whl → 0.39.0__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 bullishpy might be problematic. Click here for more details.

@@ -1,5 +1,6 @@
1
1
  import json
2
2
  import logging
3
+ import re
3
4
  import time
4
5
  from datetime import date, datetime
5
6
  from itertools import batched, chain
@@ -507,6 +508,11 @@ def json_loads(value: Any) -> Any:
507
508
  return value
508
509
 
509
510
 
511
+ def scrub(text: str) -> str:
512
+ strip_markup = re.compile(r"[\\`*_{}\[\]()>#+\-.!|~:$;\"\'<>&]").sub
513
+ return strip_markup("", text)
514
+
515
+
510
516
  class SubjectAnalysis(BaseModel):
511
517
  high_price_target: Optional[float] = None
512
518
  low_price_target: Optional[float] = None
@@ -525,7 +531,7 @@ class SubjectAnalysis(BaseModel):
525
531
  return None
526
532
  return "".join(
527
533
  [
528
- f"<p>{t.get('content')}</p>"
534
+ f"<p>{scrub(t.get('content').replace("\n",""))}</p>" # type: ignore
529
535
  for t in self.news_summary
530
536
  if t.get("content")
531
537
  ]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: bullishpy
3
- Version: 0.38.0
3
+ Version: 0.39.0
4
4
  Summary:
5
5
  Author: aan
6
6
  Author-email: andoludovic.andriamamonjy@gmail.com
@@ -1,6 +1,6 @@
1
1
  bullish/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  bullish/analysis/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
- bullish/analysis/analysis.py,sha256=O7bTqZfgRBj3jMXhcm8COy8M5u9rUQuKKMBsicr1N70,23600
3
+ bullish/analysis/analysis.py,sha256=8FMEaDlgFERrgRPYq5zqIRgoeBvJVh3C91Zxl8eD7HU,23788
4
4
  bullish/analysis/backtest.py,sha256=x91ek5kOzJHvYq0TmJh1Q8wBDDduIaieE0zDaoZFXew,14325
5
5
  bullish/analysis/constants.py,sha256=X3oCyYNA6B-jsZSYJLeGQ94S453Z7jIVNPmv3lMPp8Q,9922
6
6
  bullish/analysis/filter.py,sha256=mGWizTda_QHEmusDmB_xvOhjlsOKcbILfKLjJLAnCnE,9285
@@ -54,7 +54,7 @@ bullish/jobs/models.py,sha256=S2yvBf69lmt4U-5OU5CjXCMSw0s9Ubh9xkrB3k2qOZo,764
54
54
  bullish/jobs/tasks.py,sha256=jqiTTe9PV4x9ebV5QPRBiGyANhOoAymigYqs44WWH9k,3714
55
55
  bullish/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
56
56
  bullish/utils/checks.py,sha256=Va10_xDVVnxYkOD2hafvyQ-TFV8FQpOkr4huJ7XgpDM,2188
57
- bullishpy-0.38.0.dist-info/METADATA,sha256=egDaIIcxG8oKLLvNhrZETkS7JkvPX6f5Q5m7_bf49ZI,830
58
- bullishpy-0.38.0.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
59
- bullishpy-0.38.0.dist-info/entry_points.txt,sha256=eaPpmL6vmSBFo0FBtwibCXGqAW4LFJ83whJzT1VjD-0,43
60
- bullishpy-0.38.0.dist-info/RECORD,,
57
+ bullishpy-0.39.0.dist-info/METADATA,sha256=IMv3i6VaCnGsaBH4F3SuYXNGQzkFclHglk8AklF4ngw,830
58
+ bullishpy-0.39.0.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
59
+ bullishpy-0.39.0.dist-info/entry_points.txt,sha256=eaPpmL6vmSBFo0FBtwibCXGqAW4LFJ83whJzT1VjD-0,43
60
+ bullishpy-0.39.0.dist-info/RECORD,,