How do I create a server application that takes command from a python application?

I want to make a program that acts as an API. Get the defined commands from the client and execute them.

In fact, because I can’t figure out the apis of tiny web db, that’s why I also want to make a program. I want other websites to be able to create or receive data on my Tiny Web DB server.