https://www.pgadmin.org/download/pgadmin-4-python/
A Python package is available for those wishing to run pgAdmin as a web application in a Python environment. Note that the packages do not include the Desktop Runtime.
pgAdmin is available on PyPi. To install it, create a virtual environment as required, and then use pip to install. Note that pgAdmin will run in server mode, using system-wide paths so you may need to create them first:
$ sudo mkdir /var/lib/pgadmin $ sudo mkdir /var/log/pgadmin $ sudo chown $USER /var/lib/pgadmin $ sudo chown $USER /var/log/pgadmin $ python3 -m venv pgadmin4 $ source pgadmin4/bin/activate (pgadmin4) $ pip install pgadmin4 ... (pgadmin4) $ pgadmin4 NOTE: Configuring authentication for SERVER mode. Enter the email address and password to use for the initial pgAdmin user account: Email address: user@domain.com Password: Retype password: Starting pgAdmin 4. Please navigate to http://127.0.0.1:5050 in your browser. * Serving Flask app "pgadmin" (lazy loading) * Environment: production WARNING: Do not use the development server in a production environment. Use a production WSGI server instead. * Debug mode: off
Vélemény, hozzászólás?