Hi Brandon,
In order for this to work, you'd need to reimplement a Python
DBAPI-compatible wrapper around your REST API with support for a bunch
of non-trivial features, such as correct parameter substitution, or
type handling. Also, you'd probably need to implement transaction
handling somehow, which will be a non-trivial thing, because
transactions by definition rely on some state of a database
connection, whereas REST is supposed to be stateless.
Overall, this does not sound like a good idea to me, and I would
strongly recommend using a regular Postgres database connection
instead.
Cheers,
Michal