{ "info": { "author": "Aleksandr Mezin", "author_email": "mezin.alexander@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Web Environment", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Utilities" ], "description": "django-db-quick-setup\r\n=====================\r\n\r\n.. image:: https://travis-ci.org/amezin/django-db-quick-setup.svg\r\n :target: https://travis-ci.org/amezin/django-db-quick-setup\r\n\r\n.. image:: https://img.shields.io/pypi/v/django-db-quick-setup.svg\r\n :target: https://pypi.python.org/pypi/django-db-quick-setup\r\n\r\nCreate and start MySQL/PostgreSQL containers with a single management command.\r\n\r\n* If an image isn't available, it will be pulled.\r\n* If a container with the specified configuration doesn't exist, it will be\r\n created.\r\n* If a container is not running, it will be started.\r\n\r\nNecessary settings are taken from settings.py.\r\n\r\n* SQLite databases are ignored.\r\n* For MySQL and PostgreSQL, one container is created per database.\r\n\r\nAlso, Docker settings are picked up from standard ``DOCKER_*`` environment\r\nvariables.\r\n\r\n\r\nUsage\r\n-----\r\n\r\n.. code:: shell\r\n\r\n ./manage.py db_quick_setup\r\n\r\n``'db_quick_setup'`` should be added to ``INSTALLED_APPS``:\r\n\r\n.. code:: python\r\n\r\n INSTALLED_APPS = (\r\n 'django.contrib.auth',\r\n 'django.contrib.contenttypes',\r\n 'django.contrib.sessions',\r\n 'django.contrib.sites',\r\n 'django.contrib.messages',\r\n 'django.contrib.staticfiles',\r\n 'django.contrib.admin',\r\n 'db_quick_setup'\r\n )\r\n\r\n``'HOST'`` in database settings should point to Docker hostname/IP. You can\r\nuse `find_docker_host()` to auto-detect it.\r\n\r\n.. code:: python\r\n\r\n from db_quick_setup import find_docker_host\r\n\r\n DATABASES = {\r\n 'default': {\r\n 'ENGINE': 'django.db.backends.mysql',\r\n 'NAME': 'mysql_db',\r\n 'USER': 'mysql_db',\r\n 'PASSWORD': 'mysql_db_pass',\r\n 'HOST': find_docker_host(),\r\n 'PORT': 53308\r\n }\r\n }\r\n\r\n``'NAME'``, ``'USER'``, ``'PASSWORD'`` and ``'PORT'`` can have arbitrary values,\r\nthe container will be configured accordingly.\r\n\r\n* For MySQL ``'NAME'`` and ``'USER'`` should have the same value, it's a\r\n limitation of the official image.\r\n\r\n\r\nSettings\r\n--------\r\n\r\n``DOCKER_MYSQL_IMAGE``: Docker image to use for MySQL databases. Default is the\r\nofficial image - ``mysql:latest``.\r\n\r\n``DOCKER_POSTGRES_IMAGE``: Docker image for PostgreSQL databases. Default is\r\nthe official image - ``postgresql:latest``.\r\n\r\n``DOCKER_ASSERT_HOSTNAME``: enable SSL hostname validation (boolean). ``True``\r\nby default.\r\n\r\n``DOCKER_PRIVILEGED``: create privileged containers. Currently used as a\r\nworkaround for permission problems on Travis CI. It is disabled by default,\r\nand shouldn't be enabled usually.", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/amezin/django-db-quick-setup/releases", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/amezin/django-db-quick-setup", "keywords": "django,mysql,postgresql,docker", "license": "BSD", "maintainer": "", "maintainer_email": "", "name": "django-db-quick-setup", "package_url": "https://pypi.org/project/django-db-quick-setup/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-db-quick-setup/", "project_urls": { "Download": "https://github.com/amezin/django-db-quick-setup/releases", "Homepage": "https://github.com/amezin/django-db-quick-setup" }, "release_url": "https://pypi.org/project/django-db-quick-setup/0.0.2/", "requires_dist": null, "requires_python": null, "summary": "Create and start MySQL/PostgreSQL containers with a single management command", "version": "0.0.2" }, "last_serial": 1732074, "releases": { "0.0.2": [ { "comment_text": "", "digests": { "md5": "86851e5fa9c4d43aba592a7f71f54114", "sha256": "b94947a9cb8655470b680c77bfbe22e70217a8af2c90a75d2defbebc7b926b9a" }, "downloads": -1, "filename": "django-db-quick-setup-0.0.2.tar.gz", "has_sig": false, "md5_digest": "86851e5fa9c4d43aba592a7f71f54114", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8404, "upload_time": "2015-09-20T22:24:48", "url": "https://files.pythonhosted.org/packages/8b/69/5d46f3bee3958dbf36d0a80eb76c6c9b2cef18e3ad69c2acf1d8a94e803b/django-db-quick-setup-0.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "86851e5fa9c4d43aba592a7f71f54114", "sha256": "b94947a9cb8655470b680c77bfbe22e70217a8af2c90a75d2defbebc7b926b9a" }, "downloads": -1, "filename": "django-db-quick-setup-0.0.2.tar.gz", "has_sig": false, "md5_digest": "86851e5fa9c4d43aba592a7f71f54114", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8404, "upload_time": "2015-09-20T22:24:48", "url": "https://files.pythonhosted.org/packages/8b/69/5d46f3bee3958dbf36d0a80eb76c6c9b2cef18e3ad69c2acf1d8a94e803b/django-db-quick-setup-0.0.2.tar.gz" } ] }