py -3.11 -m venv python_modulespython_modules\Scripts\activatesource python_modules/bin/activatepip install -r requirements.txt- Rename
.env.sampleto.env. - Update
BASE_CONNandBASE_CONN_ASYNCwith the correct database credentials.
mysql -u [username] -p < scripts/init_db.sqlTo deactivate and reactivate:
deactivatepython_modules\Scripts\activatesource python_modules/bin/activatenotebooks/notebook_main_LS.ipynbnotebooks/notebook_main_LSTM_ASRS.ipynbnotebooks/notebook_main_LSTM_NTSB.ipynbnotebooks/notebook_main_LSTM_ASRS_NTSB.ipynbuvicorn main:app --reloadcurl -X 'POST' \
'http://0.0.0.0:8000/data-sources/extracts/1' \
-H 'accept: application/json' \
-d ''curl -X 'POST' \
'http://0.0.0.0:8000/data-sources/extracts/2' \
-H 'accept: application/json' \
-d ''curl -X 'POST' \
'http://0.0.0.0:8000/data-sources/loads/1' \
-H 'accept: application/json' \
-d ''curl -X 'POST' \
'http://0.0.0.0:8000/data-sources/loads/2' \
-H 'accept: application/json' \
-d ''notebooks/notebook_main_LS.ipynbhttp://0.0.0.0:8000/dashboard/simulatorTo save installed dependencies into requirements.txt:
pip freeze > requirements.txtASTAPM/
│
├── data/
│ ├── local_ex/
│ └── local_im/
│
├── src/
│ ├── core/
│ ├── extensions/
│ ├── modules/
│ │ ├── __init__.py
│ │ ├── dependencies.py
│ │ ├── exceptions.py
│ │ ├── models.py
│ │ ├── router.py
│ │ ├── schemas.py
│ │ ├── service.py
│ ├── data_source/
│ │ ├── __init__.py
│ │ ├── dependencies.py
│ │ ├── exceptions.py
│ │ ├── models.py
│ │ ├── router.py
│ │ ├── schemas.py
│ │ ├── service.py
│ ├── __init__.py
│ ├── config.py
│ ├── constant.py
│ ├── database.py
│ ├── app.py
│
├── tests/
├── notebooks/
├── web/
│
├── .gitignore
├── README.md
└── requirements.txt
- Ensure the
.envfile is correctly set up before running the application. - MySQL database must be running and accessible.
- The API server runs on
http://0.0.0.0:8000by default. - The system processes both ASRS and NTSB data for aviation safety trend analysis.