-
-
Save T4rk1n/604500e6ee2ed205fbe5f3e351455be2 to your computer and use it in GitHub Desktop.
cx_Freeze dash app
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
import dash | |
import dash_html_components as html | |
import dash_core_components as dcc | |
app = dash.Dash(__name__) | |
server = app.server | |
app.layout = html.Div([ | |
'Home' | |
]) | |
if __name__ == '__main__': | |
app.run_server(host='0.0.0.0', port=8049) |
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
dash | |
dash-core-components | |
dash-html-components==0.13.2 | |
cx_Freeze | |
cx_Logging | |
waitress |
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
from waitress import serve | |
from app import server | |
serve(server) |
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
from setuptools import find_packages | |
from cx_Freeze import setup, Executable | |
options = { | |
'build_exe': { | |
'includes': [ | |
'cx_Logging', 'idna', | |
], | |
'packages': [ | |
'asyncio', 'flask', 'jinja2', 'dash', 'plotly', 'waitress' | |
], | |
'excludes': ['tkinter'] | |
} | |
} | |
executables = [ | |
Executable('server.py', | |
base='console', | |
targetName='halliburton_dash_rig.exe') | |
] | |
setup( | |
name='halliburton_dash_rig', | |
packages=find_packages(), | |
version='0.4.0', | |
description='rig', | |
executables=executables, | |
options=options | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment