I’ve been working with the following folder structure
- project_folder
|-- data
|---- data.py
|-- charts
|---- charts.py
|-- components
|---- components.py
-
data.py
: transforms raw data into aggregated views to feed intogo.Figure
objects -
charts.py
: calls functions fromdata.py
and createsgo.Figure
objects -
components.py
: transformsgo.Figure
objects intodcc.Graph
objects, ready to insert into layout
I’ve always wondered when would be the best time to load in the raw data, at the initial step or in the main app.py
file?
If I read it in app.py
, the server will take longer to start up, so I’m guessing it should be done at the raw data stage?