If it’s essential to get up an internet server together with the database, and perhaps a couple of different elements, too, look to the XAMPP stack. This all-in-one answer comprises MariaDB plus the Apache net server, the PHP runtime, the Mercury SMTP mail server, web-based controls for all of the elements, and a service supervisor for the desktop. It even consists of OpenSSL for correct https assist.
PostgreSQL
Varied repackagings of PostgreSQL as a standalone software have come and gone over time (see this venture, as an example), but it surely takes comparatively little work to arrange your personal standalone PostgreSQL software. Receive the binaries minus the setup instruments, unpack them right into a listing, and run initdb to configure the essential setup. You possibly can then use pg_ctl to start out and cease the database as wanted.
Python builders have a really slick possibility for including a self-contained PostgreSQL occasion to an software: pgserver, a pip set up-able library that comprises a totally standalone occasion of PostgreSQL. Your complete app, binaries and all, lives in your Python program’s digital setting. It does add about 30MB to the bottom footprint of the venv, however the ensuing comfort is difficult to match.
