bullishpy 0.24.0__py3-none-any.whl → 0.26.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.

bullish/cli.py CHANGED
@@ -12,7 +12,7 @@ from typing import Any
12
12
  import typer
13
13
  from dotenv import load_dotenv
14
14
 
15
- load_dotenv()
15
+ load_dotenv(dotenv_path=Path.cwd().joinpath(".env"))
16
16
 
17
17
  app = typer.Typer(add_completion=False)
18
18
  STREAMLIT_FILE = Path(__file__).parent.joinpath("app", "app.py")
@@ -22,7 +22,14 @@ STREAMLIT_FILE = Path(__file__).parent.joinpath("app", "app.py")
22
22
  def serve(
23
23
  host: str = typer.Option("0.0.0.0", help="Streamlit host"), # noqa: S104
24
24
  port: int = typer.Option(8501, help="Streamlit port"),
25
+ env_vars: Path = typer.Option( # noqa: B008
26
+ None, help="Environment variables file"
27
+ ),
25
28
  ) -> None:
29
+ if env_vars:
30
+ env_vars_path = Path(env_vars)
31
+ if env_vars_path.exists():
32
+ load_dotenv(dotenv_path=env_vars_path)
26
33
  children: list[subprocess.Popen] = [] # type: ignore
27
34
 
28
35
  def _shutdown(*_: Any) -> None:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: bullishpy
3
- Version: 0.24.0
3
+ Version: 0.26.0
4
4
  Summary:
5
5
  Author: aan
6
6
  Author-email: andoludovic.andriamamonjy@gmail.com
@@ -17,7 +17,7 @@ Requires-Dist: streamlit (>=1.45.1,<2.0.0)
17
17
  Requires-Dist: streamlit-file-browser (>=3.2.22,<4.0.0)
18
18
  Requires-Dist: streamlit-pydantic (>=v0.6.1-rc.3,<0.7.0)
19
19
  Requires-Dist: ta-lib (>=0.6.4,<0.7.0)
20
- Requires-Dist: tickermood (>=0.6.0,<0.7.0)
20
+ Requires-Dist: tickermood (>=0.9.0,<0.10.0)
21
21
  Requires-Dist: vectorbt (>=0.28.0,<0.29.0)
22
22
  Description-Content-Type: text/markdown
23
23
 
@@ -10,7 +10,7 @@ bullish/analysis/industry_views.py,sha256=3TwruMdRYtmBC5bRYFptLt18AN9PQSY9d-uWnT
10
10
  bullish/analysis/predefined_filters.py,sha256=FnEyWcVKlCSlDhE8LHGXGY3tFZmFTnExQmg78BW9ICs,12417
11
11
  bullish/app/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
12
12
  bullish/app/app.py,sha256=rIvz4A0aJu7wGXBSCqO3EBA4QGhV8GPYVOYLOd9WjnY,14253
13
- bullish/cli.py,sha256=ogT3BE1RkFa0hbK021lVdeZPCYZkP7OphVhql1xfdEA,2084
13
+ bullish/cli.py,sha256=0acx0VX0teyJrvwQZk4NGMPTuiULBCMdjJhlmKspWb0,2369
14
14
  bullish/database/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
15
15
  bullish/database/alembic/README,sha256=heMzebYwlGhnE8_4CWJ4LS74WoEZjBy-S-mIJRxAEKI,39
16
16
  bullish/database/alembic/alembic.ini,sha256=VuwqBJV5ObTyyRNrqv8Xr-TDIRfqPjP9R1mqewYM_xE,3695
@@ -51,7 +51,7 @@ bullish/jobs/models.py,sha256=S2yvBf69lmt4U-5OU5CjXCMSw0s9Ubh9xkrB3k2qOZo,764
51
51
  bullish/jobs/tasks.py,sha256=vXPbISYFUZlrYkMVUb7y-g-z0BBi91wQLm8RbYqR4I0,3691
52
52
  bullish/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
53
53
  bullish/utils/checks.py,sha256=Va10_xDVVnxYkOD2hafvyQ-TFV8FQpOkr4huJ7XgpDM,2188
54
- bullishpy-0.24.0.dist-info/METADATA,sha256=rPxiM4iXkDkEXRiTyy5dv2GHPOQfMBtIpmUMV1A6oVw,828
55
- bullishpy-0.24.0.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
56
- bullishpy-0.24.0.dist-info/entry_points.txt,sha256=eaPpmL6vmSBFo0FBtwibCXGqAW4LFJ83whJzT1VjD-0,43
57
- bullishpy-0.24.0.dist-info/RECORD,,
54
+ bullishpy-0.26.0.dist-info/METADATA,sha256=J3o-aMUOQjY9jobg8i3GwKq_iPAKl15LhZqNyLkqpfw,829
55
+ bullishpy-0.26.0.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
56
+ bullishpy-0.26.0.dist-info/entry_points.txt,sha256=eaPpmL6vmSBFo0FBtwibCXGqAW4LFJ83whJzT1VjD-0,43
57
+ bullishpy-0.26.0.dist-info/RECORD,,