Stop Running psql Commands by Hand — Build a REST API for PostgreSQL User Management - DEV Community
A walkthrough of pg-user-api, a lightweight Flask API that provisions PostgreSQL roles across dev/qa/uat/prod with an audit trail, no static config files, and notification hooks.