├── pytest.ini ├── resource └── wbryamlgenerator-0.1.tar.gz ├── src ├── web │ ├── static │ │ ├── workingbackwards_rgb_logo_wide_blue.png │ │ ├── icons │ │ │ ├── json.svg │ │ │ └── publish.svg │ │ ├── unit_test_wbr.html │ │ ├── demo_uploads │ │ │ ├── 2-wbr-sample-config-with-filter.yaml │ │ │ └── 1-wbr-sample-config.yaml │ │ ├── unit_test_wbr.js │ │ ├── wbr.css │ │ └── wbr.html │ └── templates │ │ └── login.html ├── unit_test_case │ ├── scenario_3 │ │ ├── config.yaml │ │ └── testconfig.yml │ ├── scenario_2 │ │ ├── config.yaml │ │ └── testconfig.yml │ ├── scenario_8 │ │ ├── config.yaml │ │ └── testconfig.yml │ ├── scenario_1 │ │ ├── config.yaml │ │ └── testconfig.yml │ ├── scenario_9 │ │ ├── testconfig.yml │ │ └── config.yaml │ ├── scenario_7 │ │ ├── config.yaml │ │ └── testconfig.yml │ ├── scenario_5 │ │ ├── config.yaml │ │ └── testconfig.yml │ ├── scenario_6 │ │ ├── testconfig.yml │ │ └── config.yaml │ └── scenario_4 │ │ ├── config.yaml │ │ └── testconfig.yml ├── validator.py ├── publish_utility.py └── controller.py ├── deploy.sh ├── requirements.txt ├── Dockerfile ├── .gitignore ├── docs └── API_DOCUMENTATION.md ├── README.md └── LICENSE.md /pytest.ini: -------------------------------------------------------------------------------- 1 | [pytest] 2 | log_cli = true 3 | filterwarnings = 4 | ignore::DeprecationWarning 5 | ignore::FutureWarning 6 | -------------------------------------------------------------------------------- /resource/wbryamlgenerator-0.1.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/working-backwards/wbr-app/HEAD/resource/wbryamlgenerator-0.1.tar.gz -------------------------------------------------------------------------------- /src/web/static/workingbackwards_rgb_logo_wide_blue.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/working-backwards/wbr-app/HEAD/src/web/static/workingbackwards_rgb_logo_wide_blue.png -------------------------------------------------------------------------------- /deploy.sh: -------------------------------------------------------------------------------- 1 | git reset --hard 2 | git pull 3 | docker build -t wbr:dev . 4 | docker rm -f wbr || true 5 | docker run -d -v ~/.aws:/root/.aws/ --env environment='organisation' --name wbr -p 5001:5001 wbr:dev 6 | 7 | -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | python-dateutil==2.9.0 2 | pytz==2024.2 3 | PyYAML==6.0.2 4 | six==1.16.0 5 | pandas==2.2.3 6 | numpy==2.1.2 7 | matplotlib==3.9.2 8 | flask==3.0.3 9 | Werkzeug==3.0.6 10 | pytest==8.3.3 11 | setuptools==75.2.0 12 | flask_cors==5.0.0 13 | fiscalyear==0.4.0 14 | cryptography==44.0.1 15 | boto3==1.35.49 16 | google-cloud-storage==2.18.2 17 | azure-storage-blob==12.23.1 18 | azure-identity==1.19.0 19 | waitress==3.0.1 -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM python:3.12.2-bookworm 2 | 3 | WORKDIR /python-docker 4 | 5 | COPY requirements.txt requirements.txt 6 | COPY resource/wbryamlgenerator-0.1.tar.gz resource/wbryamlgenerator-0.1.tar.gz 7 | RUN python -m pip install --upgrade pip 8 | RUN pip --no-cache-dir install -r requirements.txt 9 | RUN pip install resource/wbryamlgenerator-0.1.tar.gz 10 | 11 | COPY . . 12 | 13 | EXPOSE 5001 14 | 15 | CMD ["waitress-serve", "--port=5001", "src.controller:app"] 16 | -------------------------------------------------------------------------------- /src/web/static/icons/json.svg: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/web/static/icons/publish.svg: -------------------------------------------------------------------------------- 1 | 5 | -------------------------------------------------------------------------------- /src/web/static/unit_test_wbr.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 | 7 | 8 |File containing weekly data converted from a spreadsheet or other 56 | aggregator
57 |Upload a new one every week.
61 |A markup file that configures how your WBR deck is built
78 |Update the 82 | week_ending and week_number in your configuration file, then upload
83 |You can always upload a new when you want to 84 | update a structure of your report
85 |Generate a simple YAML config file stub 175 | from a local csv data file and download to your computer
176 | 177 | 178 |