Metadata-Version: 2.0
Name: pgwait
Version: 0.3
Summary: wait for postgres defined in django settings to be up
Home-page: https://github.com/Fak3/pgwait
Author: Roman Evstifeev
Author-email: someuniquename@gmail.com
License: MIT
Description-Content-Type: UNKNOWN
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: OS Independent
Classifier: Operating System :: POSIX :: Linux
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Operating System :: Android
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Software Development
Classifier: Topic :: Utilities

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:

.. code:: bash

    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.

.. code:: bash

    pgwait path.to.settings


