PythonのO/RマッパーでSQLを操作できるSQLAlchemyを紹介します。他のPythonライブラリとの連動もしやすいため非常に便利なライブラリです。 O/Rマッパーのメリット/デメリットの記事を参考に貼っておきます。 なおサンプルデータは下記を使用していきます。
A task-management API (users, projects, tasks) built with FastAPI, SQLAlchemy 2.0 and PostgreSQL. It is the companion to the Laravel implementation: the same domain, a different stack. A user owns ...