This command-line tool reads django settings, then tries to connect to configured postgresql server until connection succeeds. It is useful on service startup, when you want to launch migrations right after postgres database gets ready.
Installation
pip install pgwait
Usage
To wait before migrations:
pgwait && ./manage.py migrate
Specifying settings path
You can either set DJANGO_SETTINGS_MODULE environment variable, or specify settings module path in the first command-line argument.
pgwait path.to.settings
Metadata
Release files for pgwait 0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pgwait-0.4.tar.gz | 1.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pgwait-0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 4.1 kB
Release files / pgwait-0.4.tar.gz
| Download URL | pgwait-0.4.tar.gz |
|---|---|
| Size | 1.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e963f5bf8aa81f01edac3082c6790cc81464504066902d6e33e2d99e5f0a5148
|
|
BLAKE2b-256 checksum How to use checksums |
adb3e434e07108dd88d3efeac570c70fa0493eb2df50649abc3f0e7004735574
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
pdm/2.21.0 CPython/3.11.11 Linux/6.12.10-1-default
|
Release files / pgwait-0.4-py3-none-any.whl
| Download URL | pgwait-0.4-py3-none-any.whl |
|---|---|
| Size | 2.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
016fe3c8cf60f96422bd792190ce607c21d0ed8b625870f995cd9e747c719b5f
|
|
BLAKE2b-256 checksum How to use checksums |
88f55d93f70af8b892b675c9522205f58e148c6b75d038bfee59093f5542afcb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
pdm/2.21.0 CPython/3.11.11 Linux/6.12.10-1-default
|