Skip to content

Commit

Permalink
Merge pull request #12 from mayushii21/deployment
Browse files Browse the repository at this point in the history
Deployment
  • Loading branch information
mayushii21 authored Jul 11, 2024
2 parents 28bd90e + 2987460 commit fc97e42
Show file tree
Hide file tree
Showing 12 changed files with 1,399 additions and 295 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -141,4 +141,5 @@ cython_debug/
.vscode/

### Experiments ###
testing
testing
cache
1 change: 1 addition & 0 deletions .safe_env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DEV_ENV=true
20 changes: 0 additions & 20 deletions environment.yml

This file was deleted.

1,010 changes: 1,010 additions & 0 deletions pdm.lock

Large diffs are not rendered by default.

14 changes: 9 additions & 5 deletions pyproject.toml
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"}

Expand All @@ -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/"
Expand All @@ -36,4 +39,5 @@ Repository = "https://github.com/mayushii21/market-dashboard"
[tool.pytest.ini_options]
addopts = [
"--import-mode=importlib",
]
]
[tool.pdm]
13 changes: 11 additions & 2 deletions src/innov8/app.py
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,
)
Loading

0 comments on commit fc97e42

Please sign in to comment.