All Projects → jackdbd → dash-fda

jackdbd / dash-fda

Licence: MIT License
A Plotly Dash application to interact with the API endpoints of openFDA

Programming Languages

python
139335 projects - #7 most used programming language
Dockerfile
14818 projects

Projects that are alternatives of or similar to dash-fda

Dash
Analytical Web Apps for Python, R, Julia, and Jupyter. No JavaScript Required.
Stars: ✭ 15,592 (+91617.65%)
Mutual labels:  plotly, dash
dash-flexbox-grid
Wrapper around react-flexbox-grid for Plotly Dash
Stars: ✭ 19 (+11.76%)
Mutual labels:  plotly, dash
Dash.jl
Dash for Julia - A Julia interface to the Dash ecosystem for creating analytic web applications in Julia. No JavaScript required.
Stars: ✭ 248 (+1358.82%)
Mutual labels:  plotly, dash
Dash Flask Login
Implementation of Flask-login on top of Dash.
Stars: ✭ 158 (+829.41%)
Mutual labels:  plotly, dash
bifrost
Connect gpus with your eyes.
Stars: ✭ 23 (+35.29%)
Mutual labels:  plotly, dash
Slapdash
Boilerplate for bootstrapping scalable multi-page Dash applications
Stars: ✭ 225 (+1223.53%)
Mutual labels:  plotly, dash
dash-mantine-components
Plotly Dash components based on Mantine React Components
Stars: ✭ 263 (+1447.06%)
Mutual labels:  plotly, dash
Dash Stock Tickers Demo App
Dash Demo App - Stock Tickers
Stars: ✭ 108 (+535.29%)
Mutual labels:  plotly, dash
dash-flask-login
A plugin to integrate Dash and Flask-Login
Stars: ✭ 54 (+217.65%)
Mutual labels:  plotly, dash
dash-google-auth
(Deprecated) Dash Extension for Google OAuth
Stars: ✭ 60 (+252.94%)
Mutual labels:  plotly, dash
Dash Oil And Gas Demo
Dash Demo App - New York Oil and Gas
Stars: ✭ 156 (+817.65%)
Mutual labels:  plotly, dash
dash-redis-celery-periodic-updates
Demo apps now maintained in https://github.com/plotly/dash-enterprise-docs
Stars: ✭ 47 (+176.47%)
Mutual labels:  plotly, dash
Real Time Sentiment Tracking On Twitter For Brand Improvement And Trend Recognition
A real-time interactive web app based on data pipelines using streaming Twitter data, automated sentiment analysis, and MySQL&PostgreSQL database (Deployed on Heroku)
Stars: ✭ 127 (+647.06%)
Mutual labels:  plotly, dash
dash-admin
CLI tool for initiating dash boilerplate
Stars: ✭ 22 (+29.41%)
Mutual labels:  plotly, dash
Dash Sample Apps
Open-source demos hosted on Dash Gallery
Stars: ✭ 2,090 (+12194.12%)
Mutual labels:  plotly, dash
2019-nCoV-dash
新型冠状病毒(2019-nCoV)肺炎(COVID-19)疫情展示
Stars: ✭ 13 (-23.53%)
Mutual labels:  plotly, dash
Fitly
Self hosted web analytics for endurance athletes
Stars: ✭ 65 (+282.35%)
Mutual labels:  plotly, dash
Hiitpi
A workout trainer Dash/Flask app that helps track your HIIT workouts by analyzing real-time video streaming from your sweet Pi using machine learning and Edge TPU..
Stars: ✭ 106 (+523.53%)
Mutual labels:  plotly, dash
app rasa chat bot
a stateless chat bot to perform natural language queries against the App Store top charts
Stars: ✭ 20 (+17.65%)
Mutual labels:  plotly, dash
dash-hello-world
The simplest dash app
Stars: ✭ 23 (+35.29%)
Mutual labels:  plotly, dash

Dash FDA

License: MIT Build Status Coverage Code style: black

A Dash app to visualize data from the openFDA elasticsearch API.

A GIF file showing a short demo on how to use the Dash FDA dashboard

App on CapRover.

Built with:

Data from openFDA.

API keys

This project requires to get some API keys from external services.

Installation

This project uses pyenv and pyenv-virtualenv to manage the Python virtual environment, and poetry to manage the project dependencies.

If you don't already have it, install python 3.8.5.

pyenv install 3.8.5

Create a virtual environment and activate it.

pyenv virtualenv 3.8.5 dash_fda
pyenv activate dash_fda

Remember to activate the virtual environment every time you work on this project.

Install all the dependencies from the poetry.lock file.

poetry install

Tasks

This project uses the task runner Poe the Poet to run poetry scripts.

Non-dockerized app

Run the app locally using a development server (Dash uses a Flask development server):

poetry run poe dev

# or, in alternative
python app.py

Run the app locally using a production server (gunicorn):

poetry run poe prod

Run all tests with pytest:

poetry run poe test

Format all code with black:

poetry run poe format

Dockerized app

Build the Docker image and give it a name and a version tag:

docker build -t dash-fda:v0.1.0 .

Run the Docker container:

docker run --env-file ./dash_fda/.env -p 5001:5000 dash-fda:v0.1.0

Deploy the dockerized app on CapRover (running on my DigitalOcean Droplet):

./deploy.sh

Troubleshooting

If you are on Ubuntu you might get ModuleNotFoundError: No module named '_bz2' and/or UserWarning: Could not import the lzma module. Your installed Python is incomplete. Attempting to use lzma compression will result in a RuntimeError. These errors are caused by pandas when it tries to import these compression libraries. If you get these errors you need to install the libbz2-dev package and the liblzma-dev package, then re-compile your python interpreter.

Here is how you can do it:

# deactivate and remove the virtual environment
pyenv deactivate
pyenv virtualenv-delete dash_fda

# remove the "broken" python interpreter
pyenv uninstall 3.8.5

# install the compression libreries
sudo apt-get install libbz2-dev liblzma-dev

# download and compile the python interpreter
pyenv install 3.8.5

# re-create the virtual environment and activate it
pyenv virtualenv 3.8.5 dash_fda
pyenv activate dash_fda

# re-install all the dependencies
poetry install

Disclaimer

This app is just an independent project, and it has not been evaluated by the Food and Drug Administration. This app is not intended to diagnose, treat, cure, or prevent any disease. Do not rely on this app to make any decision regarding medical care.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].