Is there a simple REST Api I can create in Redhat Linux with only default installed tools/utilities?
Oct 6, 2020
2 Comments
Such as the default version of Python without downloading any additional modules.
I have a Mariadb database that I want to expose for simple queries without using the mysql connector module.
comments
Use flask, request for api stuff, create virtual environment and install mariadb pip package. You’re then good to go.
You can get away not downloading any pip packages too. Just store the creds in your environment variables and use them in the python script, that could run general shell or DB queries, os, subprocess, etc.
Mariadb’s Python driver is not installed but default afaik