py -3.11 -m venv python_modules
python_modules\Scripts\activate
source python_modules/bin/activate
pip install -r requirements.txt
- Rename
.env.sample
to.env
. - Update
BASE_CONN
andBASE_CONN_ASYNC
with the correct database credentials.
mysql -u [username] -p < scripts/init_db.sql
To deactivate and reactivate:
deactivate
python_modules\Scripts\activate
source python_modules/bin/activate
notebooks/notebook_main_LS.ipynb
notebooks/notebook_main_LSTM_ASRS.ipynb
notebooks/notebook_main_LSTM_NTSB.ipynb
notebooks/notebook_main_LSTM_ASRS_NTSB.ipynb
uvicorn main:app --reload
curl -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.ipynb
http://0.0.0.0:8000/dashboard/simulator
To save installed dependencies into requirements.txt
:
pip freeze > requirements.txt
ASTAPM/
│
├── 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
.env
file 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:8000
by default. - The system processes both ASRS and NTSB data for aviation safety trend analysis.