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 Provenance Actions
pgwait-0.4.tar.gz 1.9 kB Without provenance Details for pgwait-0.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pgwait 0.4
File Interpreter ABI Platform Actions
pgwait-0.4-py3-none-any.whl Python 3 none any Details for pgwait-0.4-py3-none-any.whl

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

Security for pgwait 0.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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