Skip to main content

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)

Source distribution for pgwait 0.4
File Size Uploaded
pgwait-0.4.tar.gz 1.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pgwait 0.4
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.4 This release

2 release files

0.3

2 release files

0.2

2 release files

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page