pgwait


Namepgwait JSON
Version 0.4 PyPI version JSON
download
home_pageNone
Summarywait for postgres defined in django settings to be up
upload_time2025-02-14 12:43:35
maintainerNone
docs_urlNone
authorNone
requires_python>=3.9
licenseMIT
keywords postgresql postgres cli database rdbms django
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            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:

```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.

```bash
pgwait path.to.settings
```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "pgwait",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": null,
    "keywords": "postgresql, postgres, cli, database, rdbms, django",
    "author": null,
    "author_email": "Evstifeev Roman <someuniquename@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/ad/b3/e434e07108dd88d3efeac570c70fa0493eb2df50649abc3f0e7004735574/pgwait-0.4.tar.gz",
    "platform": null,
    "description": "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.\n\n## Installation\n\n```\npip install pgwait\n```\n\n## Usage\nTo wait before migrations:\n\n```bash\npgwait && ./manage.py migrate\n```\n\n### Specifying settings path\n\nYou can either set `DJANGO_SETTINGS_MODULE` environment variable, or specify settings module path in the first command-line argument.\n\n```bash\npgwait path.to.settings\n```\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "wait for postgres defined in django settings to be up",
    "version": "0.4",
    "project_urls": null,
    "split_keywords": [
        "postgresql",
        " postgres",
        " cli",
        " database",
        " rdbms",
        " django"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "88f55d93f70af8b892b675c9522205f58e148c6b75d038bfee59093f5542afcb",
                "md5": "1373110a42c4a75f22fd778079f4275b",
                "sha256": "016fe3c8cf60f96422bd792190ce607c21d0ed8b625870f995cd9e747c719b5f"
            },
            "downloads": -1,
            "filename": "pgwait-0.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "1373110a42c4a75f22fd778079f4275b",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 2258,
            "upload_time": "2025-02-14T12:43:34",
            "upload_time_iso_8601": "2025-02-14T12:43:34.755439Z",
            "url": "https://files.pythonhosted.org/packages/88/f5/5d93f70af8b892b675c9522205f58e148c6b75d038bfee59093f5542afcb/pgwait-0.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "adb3e434e07108dd88d3efeac570c70fa0493eb2df50649abc3f0e7004735574",
                "md5": "b3a9f7bab50d431d6881e6d72a5552b3",
                "sha256": "e963f5bf8aa81f01edac3082c6790cc81464504066902d6e33e2d99e5f0a5148"
            },
            "downloads": -1,
            "filename": "pgwait-0.4.tar.gz",
            "has_sig": false,
            "md5_digest": "b3a9f7bab50d431d6881e6d72a5552b3",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 1862,
            "upload_time": "2025-02-14T12:43:35",
            "upload_time_iso_8601": "2025-02-14T12:43:35.799951Z",
            "url": "https://files.pythonhosted.org/packages/ad/b3/e434e07108dd88d3efeac570c70fa0493eb2df50649abc3f0e7004735574/pgwait-0.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-02-14 12:43:35",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "pgwait"
}
        
Elapsed time: 7.56105s