Is there a simple REST Api I can create in Redhat Linux with only default installed tools/utilities?

Shell
vfg34

Go to company page Shell

vfg34
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

Want to comment? LOG IN or SIGN UP
TOP 2 Comments
  • Red Hat
    C. Leclerc

    Go to company page Red Hat

    C. Leclerc
    Ofc... you can get away with python.
    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.
    Oct 6, 2020 0
  • Python, SQLite, and the bottle framework (downloads as a single file you can just paste into your app directory).

    Mariadb’s Python driver is not installed but default afaik
    Oct 6, 2020 0