{ "info": { "author": "Dylan Stein", "author_email": "djstein@ncsu.edu", "bugtrack_url": null, "classifiers": [ "Programming Language :: Python", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy" ], "description": "\n# recreatedb\n\n## Useful for Testing Postgres Databases for Django Deployments\n\nCommand Line Interface tool that looks for a database backup in the form of an .sql file, removes a local Postgres database, recreates it, then adds the database data to the newly created one.\n\nTo use it assumes you have the Postgres command line tools available on your bash config/profile. If you do not have these tools follow the _Install Postgres App_ section.\n\n## Install recreatedb\n\nTo add `recreatedb` to the your path, clone it then run the following to create a simlink.\n\n```bash\n# Commands\npip3 install recreatedb\n```\n\n## Configure\n\n```bash\n# Commands\nrecreatedb configure\n```\n\nThis will create a JSON configuration file at `~/.recreatedb`:\n\n```\n{\n \"DATABASE_NAME\": \"\",\n \"DATABASE_USER\": \"\",\n \"DUMP_LOCATION\": \"\"\n}\n```\n\nPlease update this with your supplied data.\n\n## Usage\n\nTo use `recreatedb` please ensure you have installed Postgres, have updated the `.recreatedb` configuration file, and have a SQL file readily available you wish to load.\n\n```bash\n# Commands\nrecreatedb start\n```\n\n## Install Postgres App\n\nThis is a GUI interface for PostgreSQL databases. Find it here: https://postgresapp.com/\n\nPost installation it is important to add Postgres's tools to your system path. Based on the official docs run the following:\n\n```bash\n# Command\nsudo mkdir -p /etc/paths.d &&\necho /Applications/Postgres.app/Contents/Versions/latest/bin | sudo tee /etc/paths.d/postgresapp\n```\n\nUse which psql to confirm installation while in the virtualenv.\n\n## Development\n\n* To create edits please branch and clone the repository.\n* Cd into the directory and install + activate a new Pipenv.\n* To package use setup.py upload\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/modernproject/recreatedb", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "recreatedb", "package_url": "https://pypi.org/project/recreatedb/", "platform": "", "project_url": "https://pypi.org/project/recreatedb/", "project_urls": { "Homepage": "https://github.com/modernproject/recreatedb" }, "release_url": "https://pypi.org/project/recreatedb/2018.5.1/", "requires_dist": [ "click", "requests" ], "requires_python": "", "summary": "", "version": "2018.5.1" }, "last_serial": 3865701, "releases": { "0.0.0": [ { "comment_text": "", "digests": { "md5": "c6801d49dd4e8313dc6a6930ee2ae42f", "sha256": "68dce4d5c95402e3064534aa8325de8e6e0d275dff876e988848a2d62737b0e2" }, "downloads": -1, "filename": "recreatedb-0.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "c6801d49dd4e8313dc6a6930ee2ae42f", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4591, "upload_time": "2018-05-15T17:00:05", "url": "https://files.pythonhosted.org/packages/17/47/12f311be6d383d64a54ac78e984b0361079164bce42a2ee7b309434a5100/recreatedb-0.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9852c0e71e1778d1b57680869fe3eb5b", "sha256": "40df297047cc894de44007aa1fb9adc208be1116b3c4b069236e42132fb8b1df" }, "downloads": -1, "filename": "recreatedb-0.0.0.tar.gz", "has_sig": false, "md5_digest": "9852c0e71e1778d1b57680869fe3eb5b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4329, "upload_time": "2018-05-15T17:00:07", "url": "https://files.pythonhosted.org/packages/9f/95/021ea4dbff3a9863dc4b2551b4b80713432f8d63f8e745b19e622a53ad1a/recreatedb-0.0.0.tar.gz" } ], "2018.5.1": [ { "comment_text": "", "digests": { "md5": "23f8e73185ca68592331ca5fa09d3f90", "sha256": "ea1f378d890648832d2cf91c3110f5dbe6ecc059f9acdc449597e6148c63acbf" }, "downloads": -1, "filename": "recreatedb-2018.5.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "23f8e73185ca68592331ca5fa09d3f90", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4873, "upload_time": "2018-05-15T18:37:31", "url": "https://files.pythonhosted.org/packages/c0/3d/99c7162d36b88bd1e429eb64cc77a976eb3702dfea6a186b4dc8259e65b8/recreatedb-2018.5.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e09e4c58f6b8ba5af842bc5c5c47df99", "sha256": "15a7b1c33ac2d8c3dc004180c7e6bb68d78593b25da97d8efbf51a942a0b3e62" }, "downloads": -1, "filename": "recreatedb-2018.5.1.tar.gz", "has_sig": false, "md5_digest": "e09e4c58f6b8ba5af842bc5c5c47df99", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4400, "upload_time": "2018-05-15T18:37:32", "url": "https://files.pythonhosted.org/packages/77/af/9833f37b08b78c80806cce64450afa21b489ba17194663c8cac0afdc700e/recreatedb-2018.5.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "23f8e73185ca68592331ca5fa09d3f90", "sha256": "ea1f378d890648832d2cf91c3110f5dbe6ecc059f9acdc449597e6148c63acbf" }, "downloads": -1, "filename": "recreatedb-2018.5.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "23f8e73185ca68592331ca5fa09d3f90", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4873, "upload_time": "2018-05-15T18:37:31", "url": "https://files.pythonhosted.org/packages/c0/3d/99c7162d36b88bd1e429eb64cc77a976eb3702dfea6a186b4dc8259e65b8/recreatedb-2018.5.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e09e4c58f6b8ba5af842bc5c5c47df99", "sha256": "15a7b1c33ac2d8c3dc004180c7e6bb68d78593b25da97d8efbf51a942a0b3e62" }, "downloads": -1, "filename": "recreatedb-2018.5.1.tar.gz", "has_sig": false, "md5_digest": "e09e4c58f6b8ba5af842bc5c5c47df99", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4400, "upload_time": "2018-05-15T18:37:32", "url": "https://files.pythonhosted.org/packages/77/af/9833f37b08b78c80806cce64450afa21b489ba17194663c8cac0afdc700e/recreatedb-2018.5.1.tar.gz" } ] }