'How can I connect to a SQLite server with python from a remote location?

I would like to know if I can host a SQLite server and then use python to connect to it remotely.

Thanks, Colin



Solution 1:[1]

SQLite is not an actual DB Server Application in the classical sense. It is a "passive" data store on the file system. You could simply connect to whichever remote server has the SQLite file on it and FTP (or scp) it down and then use Python to connect to it using some SQLite driver.

Because an SQLite database is a single compact file in a well-defined cross-platform format, it is often used as a container for transferring content from one system to another. The sender gathers content into an SQLite database file, transfers that one file to the receiver, then the receiver uses SQL to extract the content as needed.

Source: https://www.sqlite.org/whentouse.html

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 adamarla