-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from mayushii21/deployment
Deployment
- Loading branch information
Showing
12 changed files
with
1,399 additions
and
295 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -141,4 +141,5 @@ cython_debug/ | |
.vscode/ | ||
|
||
### Experiments ### | ||
testing | ||
testing | ||
cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
DEV_ENV=true |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,26 @@ | ||
[project] | ||
name = "innov8" | ||
version = "0.0.9-beta" | ||
version = "0.1.0-beta" | ||
description = "an interactive market dashboard" | ||
authors = [ | ||
{name = "mayushii21", email = "[email protected]"}, | ||
] | ||
dependencies = [ | ||
"dash==2.12.1", | ||
"dash[diskcache]==2.16.1", | ||
"dash-bootstrap-components", | ||
"dash-bootstrap-templates", | ||
"dash-tvlwc>=0.1.1", | ||
"dash-trich-components", | ||
"requests", | ||
"beautifulsoup4", | ||
"lxml", | ||
"pandas", | ||
"yfinance", | ||
"tqdm", | ||
"python-dotenv>=1.0.1", | ||
"loguru>=0.7.2", | ||
] | ||
requires-python = ">=3.8" | ||
requires-python = ">=3.9" | ||
readme = "README.md" | ||
license = {text = "BSD-3-Clause"} | ||
|
||
|
@@ -26,7 +29,7 @@ requires = ["pdm-backend"] | |
build-backend = "pdm.backend" | ||
|
||
[project.scripts] | ||
innov8 = 'innov8.run:main' | ||
innov8 = 'innov8.run:cli' | ||
|
||
[project.urls] | ||
Homepage = "http://innov8finance.pythonanywhere.com/" | ||
|
@@ -36,4 +39,5 @@ Repository = "https://github.com/mayushii21/market-dashboard" | |
[tool.pytest.ini_options] | ||
addopts = [ | ||
"--import-mode=importlib", | ||
] | ||
] | ||
[tool.pdm] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,21 @@ | ||
import dash_bootstrap_components as dbc | ||
from dash import Dash | ||
import diskcache | ||
from dash import Dash, DiskcacheManager | ||
|
||
# Initiate dash app with default theme (visible for a split second before theme from ThemeChangerAIO takes over) | ||
default_theme = dbc.themes.CYBORG | ||
# css for styling dcc and html components with dbc themes | ||
dbc_css = ( | ||
"https://cdn.jsdelivr.net/gh/AnnMarieW/[email protected]/dbc.min.css" | ||
) | ||
|
||
cache = diskcache.Cache("./cache") | ||
background_callback_manager = DiskcacheManager(cache) | ||
|
||
app = Dash( | ||
__name__, external_stylesheets=[default_theme, dbc_css], title="innov8finance" | ||
__name__, | ||
external_stylesheets=[default_theme, dbc_css], | ||
title="innov8finance", | ||
background_callback_manager=background_callback_manager, | ||
suppress_callback_exceptions=True, | ||
) |
Oops, something went wrong.