Skip to content

The Masked Manual app - Python backend for querying surgical masks, respirators from FDA, CDC

License

Notifications You must be signed in to change notification settings

smrfeld/the-masked-manual-python

Repository files navigation

The Masked Manual - Python backend

This application lets you easily search for a face mask's qualifications from federal agencies in the U.S. Both surgical masks and respirators are supported.

drawing

See also:

This is the Python backend for gathering the data. The data is gathered from:

You can read about the data source permissions on the application website here.

The list of currently indexed masks and respirators is below.

A Heroku hosted application reloads the data periodically and hosts it online.

Running

You can run the Python script:

python fetch_latest.py

It will likely prompt for more options.

Mask and respirator types

Developer

iOS mockups for website

Courtesy of smartmockups.

To-do

Currently, only N95 and surgical N95 respirators are indexed from the complete list here. TBD are:

  • N99
  • N100
  • R95
  • P95
  • P99
  • P100

Google Cloud Storage Python interface

Documentation can be found here.

Flask

Testing flask:

export FLASK_APP=app
export FLASK_ENV=development
flask run

The latest data is served on data_latest.

Scheduled task on Heroku

See guide here. Important to scale scheduler after deploying to Heroku:

heroku ps:scale scheduler=1

About

The Masked Manual app - Python backend for querying surgical masks, respirators from FDA, CDC

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published