startup
"/home/yossef/notes/full-stack/python-backend/fastapi/curd_sql/startup.md"
path: full-stack/python-backend/fastapi/curd_sql/startup.md
- **fileName**: startup
- **Created on**: 2025-04-15 17:14:16
creating curd system using fastapi , PyMySQL, sqlalchemy
structure for project
(fastapi-test) ➜ fastapi_test git:(master) ✗ tree
[4.0K] ./
├── [4.0K] __pycache__/
│ └── [2.4K] main.cpython-310.pyc
├── [4.0K] src/
│ ├── [4.0K] __pycache__/
│ │ ├── [2.0K] curd.cpython-310.pyc
│ │ ├── [ 767] database.cpython-310.pyc
│ │ ├── [1.1K] models.cpython-310.pyc
│ │ └── [1.8K] scheme.cpython-310.pyc
│ ├── [2.0K] curd.py
│ ├── [1.4K] database.py
│ ├── [1.0K] models.py
│ └── [ 942] scheme.py
├── [4.0K] templates/
│ └── [ 314] index.html
├── [2.7K] main.py # main file
├── [ 315] pyproject.toml
├── [ 0] README.md
└── [135K] uv.lock
content of pyproject.toml:
(fastapi-test) ➜ fastapi_test git:(master) ✗ cat pyproject.toml
[project]
name = "fastapi-test"
version = "0.1.0"
description = "Add your description here"
readme = "README.md"
requires-python = ">=3.10"
dependencies = [
"dotenv>=0.9.9",
"fastapi[standard]>=0.115.12",
"pydantic>=2.11.3",
"pymysql>=1.1.1",
"python-dotenv>=1.1.0",
"sqlalchemy>=2.0.40",
]
continue:./scheme.md
before:[[]]