Compare commits
5 commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
f654ebf2df | ||
![]() |
333d8a513e | ||
![]() |
b37911f7db | ||
![]() |
0fadd68fc2 | ||
![]() |
a3a0b80123 |
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1 +1,3 @@
|
||||||
|
*~
|
||||||
|
*.pyc
|
||||||
rattail_dash.egg-info/
|
rattail_dash.egg-info/
|
|
@ -5,6 +5,10 @@ All notable changes to rattail-dash will be documented in this file.
|
||||||
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
||||||
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
|
## [0.1.1] - 2021-12-20
|
||||||
|
### Added
|
||||||
|
- Bind to all interfaces when running Dash app.
|
||||||
|
|
||||||
## [0.1.0] - 2021-12-20
|
## [0.1.0] - 2021-12-20
|
||||||
### Added
|
### Added
|
||||||
- Initial version of the package, very basic demo only.
|
- Initial version of the package, very basic demo only.
|
||||||
|
|
12
README.md
Normal file
12
README.md
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
|
||||||
|
# rattail-dash
|
||||||
|
|
||||||
|
This package contains some helper logic, as well as a sample app, to
|
||||||
|
show how a [Dash](https://dash.plot.ly/) app can display Rattail (and
|
||||||
|
specifically Trainwreck) data.
|
||||||
|
|
||||||
|
Rattail is a retail software framework, released under the GNU General
|
||||||
|
Public License.
|
||||||
|
|
||||||
|
Please see Rattail's [home page](https://rattailproject.org/) for more
|
||||||
|
information.
|
16
README.rst
16
README.rst
|
@ -1,16 +0,0 @@
|
||||||
|
|
||||||
rattail-dash
|
|
||||||
============
|
|
||||||
|
|
||||||
This package contains some helper logic, as well as a sample app, to
|
|
||||||
show how a `Dash`_ app can display Rattail (and specifically
|
|
||||||
Trainwreck) data.
|
|
||||||
|
|
||||||
.. _Dash: https://dash.plot.ly/
|
|
||||||
|
|
||||||
Rattail is a retail software framework, released under the GNU General
|
|
||||||
Public License.
|
|
||||||
|
|
||||||
Please see Rattail's `home page`_ for more information.
|
|
||||||
|
|
||||||
.. _`home page`: https://rattailproject.org/
|
|
|
@ -1,3 +1,3 @@
|
||||||
# -*- coding: utf-8; -*-
|
# -*- coding: utf-8; -*-
|
||||||
|
|
||||||
__version__ = '0.1.0'
|
__version__ = '0.1.1'
|
||||||
|
|
|
@ -45,4 +45,4 @@ class RunDashApp(commands.Subcommand):
|
||||||
def run(self, args):
|
def run(self, args):
|
||||||
factory = self.app.load_object(args.spec)
|
factory = self.app.load_object(args.spec)
|
||||||
dashapp = factory(self.config)
|
dashapp = factory(self.config)
|
||||||
dashapp.run_server(debug=True)
|
dashapp.run_server(debug=True, host='0.0.0.0')
|
||||||
|
|
|
@ -25,7 +25,11 @@ Sample Dash App
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import pandas as pd
|
import pandas as pd
|
||||||
from dash import dcc, html
|
try:
|
||||||
|
from dash import dcc, html
|
||||||
|
except ImportError:
|
||||||
|
import dash_core_components as dcc
|
||||||
|
import dash_html_components as html
|
||||||
from dash.dependencies import Input, Output
|
from dash.dependencies import Input, Output
|
||||||
import plotly.express as px
|
import plotly.express as px
|
||||||
|
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -27,7 +27,7 @@ from setuptools import setup, find_packages
|
||||||
|
|
||||||
here = os.path.abspath(os.path.dirname(__file__))
|
here = os.path.abspath(os.path.dirname(__file__))
|
||||||
exec(open(os.path.join(here, 'rattail_dash', '_version.py')).read())
|
exec(open(os.path.join(here, 'rattail_dash', '_version.py')).read())
|
||||||
README = open(os.path.join(here, 'README.rst')).read()
|
README = open(os.path.join(here, 'README.md')).read()
|
||||||
|
|
||||||
|
|
||||||
requires = [
|
requires = [
|
||||||
|
|
44
tasks.py
Normal file
44
tasks.py
Normal file
|
@ -0,0 +1,44 @@
|
||||||
|
# -*- coding: utf-8; -*-
|
||||||
|
################################################################################
|
||||||
|
#
|
||||||
|
# Rattail -- Retail Software Framework
|
||||||
|
# Copyright © 2010-2021 Lance Edgar
|
||||||
|
#
|
||||||
|
# This file is part of Rattail.
|
||||||
|
#
|
||||||
|
# Rattail is free software: you can redistribute it and/or modify it under the
|
||||||
|
# terms of the GNU General Public License as published by the Free Software
|
||||||
|
# Foundation, either version 3 of the License, or (at your option) any later
|
||||||
|
# version.
|
||||||
|
#
|
||||||
|
# Rattail is distributed in the hope that it will be useful, but WITHOUT ANY
|
||||||
|
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||||
|
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
||||||
|
# details.
|
||||||
|
#
|
||||||
|
# You should have received a copy of the GNU General Public License along with
|
||||||
|
# Rattail. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
#
|
||||||
|
################################################################################
|
||||||
|
"""
|
||||||
|
Tasks for rattail-dash
|
||||||
|
"""
|
||||||
|
|
||||||
|
import os
|
||||||
|
import shutil
|
||||||
|
|
||||||
|
from invoke import task
|
||||||
|
|
||||||
|
|
||||||
|
here = os.path.abspath(os.path.dirname(__file__))
|
||||||
|
exec(open(os.path.join(here, 'rattail_dash', '_version.py')).read())
|
||||||
|
|
||||||
|
|
||||||
|
@task
|
||||||
|
def release(ctx):
|
||||||
|
"""
|
||||||
|
Release a new version of 'rattail-dash'.
|
||||||
|
"""
|
||||||
|
shutil.rmtree('rattail_dash.egg-info')
|
||||||
|
ctx.run('python setup.py sdist --formats=gztar')
|
||||||
|
ctx.run('twine upload dist/rattail_dash-{}.tar.gz'.format(__version__))
|
Loading…
Reference in a new issue