{ "info": { "author": "Hugo Bessa", "author_email": "hugo@bessa.me", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Framework :: Django", "Framework :: Django :: 1.10", "Framework :: Django :: 1.11", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Natural Language :: English", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6" ], "description": "=============================\nDjango Shared Schema Tenants\n=============================\n\n.. image:: https://badge.fury.io/py/django-shared-schema-tenants.svg\n :target: https://badge.fury.io/py/django-shared-schema-tenants\n\n.. image:: https://travis-ci.org/hugobessa/django-shared-schema-tenants.svg?branch=master\n :target: https://travis-ci.org/hugobessa/django-shared-schema-tenants\n\n.. image:: https://codecov.io/gh/hugobessa/django-shared-schema-tenants/branch/master/graph/badge.svg\n :target: https://codecov.io/gh/hugobessa/django-shared-schema-tenants\n\nA lib to help in the creation applications with shared schema without suffering\n\nDocumentation\n-------------\n\nThe full documentation is at https://django-shared-schema-tenants.readthedocs.io.\n\nQuickstart\n----------\n\nInstall Django Shared Schema Tenants::\n\n pip install django-shared-schema-tenants\n\nAdd it to your `INSTALLED_APPS`:\n\n.. code-block:: python\n\n INSTALLED_APPS = (\n ...\n 'shared_schema_tenants.apps.SharedSchemaTenantsConfig',\n ...\n )\n\nAdd Django Shared Schema Tenants's URL patterns:\n\n.. code-block:: python\n\n from shared_schema_tenants import urls as shared_schema_tenants_urls\n\n\n urlpatterns = [\n ...\n url(r'^', include(shared_schema_tenants_urls)),\n ...\n ]\n\n\nAdd TenantMiddleware to your `MIDDLEWARES`:\n\n.. code-block:: python\n\n MIDDLEWARES = [\n # ...\n 'shared_schema_tenants.middleware.TenantMiddleware',\n # ...\n ]\n\n\nFeatures\n--------\n\n* **Tenants synced with django requests:** The active tenant can be extracted from the domain of the request and from a specific http header attribute.\n* **Easy data isolation between tenants:** You retrieve and create data the same way you do without tenants. The active tenant can be retrieved from the request, and can also be forcedly set.\n* **Partially shared data:** If there is data that can be accessed from more then one tenant in your applidation, you don't need to duplicate it.\n\n\nRunning Tests\n-------------\n\nDoes the code actually work?\n\n::\n\n source /bin/activate\n (myenv) $ pip install tox\n (myenv) $ tox\n\nCredits\n-------\n\nTools used in rendering this package:\n\n* Cookiecutter_\n* `cookiecutter-djangopackage`_\n\n.. _Cookiecutter: https://github.com/audreyr/cookiecutter\n.. _`cookiecutter-djangopackage`: https://github.com/pydanny/cookiecutter-djangopackage\n\n\n\n\nHistory\n-------\n\n0.1.0 (2017-08-10)\n++++++++++++++++++\n\n* First release on PyPI.\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/hugobessa/django-shared-schema-tenants", "keywords": "django-shared-schema-tenants", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "django-shared-schema-tenants", "package_url": "https://pypi.org/project/django-shared-schema-tenants/", "platform": "", "project_url": "https://pypi.org/project/django-shared-schema-tenants/", "project_urls": { "Homepage": "https://github.com/hugobessa/django-shared-schema-tenants" }, "release_url": "https://pypi.org/project/django-shared-schema-tenants/0.1.0/", "requires_dist": null, "requires_python": "", "summary": "A lib to help in the creation of shared schema multi tenants applications without suffering", "version": "0.1.0" }, "last_serial": 3294159, "releases": { "0.0.2": [ { "comment_text": "", "digests": { "md5": "c85a68cf92e004a8a6577b9a3879dffb", "sha256": "194282414cbf1cbe4c49dcd07c1c7c089bc1e46d598c3b728041426436a0f2fd" }, "downloads": -1, "filename": "django_shared_schema_tenants-0.0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "c85a68cf92e004a8a6577b9a3879dffb", "packagetype": "bdist_wheel", "python_version": "3.5", "requires_python": null, "size": 21849, "upload_time": "2017-08-29T02:21:18", "url": "https://files.pythonhosted.org/packages/23/82/e8009af75be5723f205965b4b5effa090f578fe3c9b39bbb3eb4e7584f25/django_shared_schema_tenants-0.0.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e77d69d16292af9d67ef84b0074b0bb9", "sha256": "3c6e7b295fdec09f2aff926f59a232ad1010b622c2461a9efbaa5d2060438d90" }, "downloads": -1, "filename": "django-shared-schema-tenants-0.0.2.tar.gz", "has_sig": false, "md5_digest": "e77d69d16292af9d67ef84b0074b0bb9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15888, "upload_time": "2017-08-29T02:21:13", "url": "https://files.pythonhosted.org/packages/4b/2a/f6f162edd71e954019477ebdcdd3c52d099646e9e059f3681a1d9496ce58/django-shared-schema-tenants-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "0d0438e7d50df4516a03308f9445c40d", "sha256": "e5b13e36ea8939bf922e60c268878dec5606d8ed9ef3e855431d36a4cbaae445" }, "downloads": -1, "filename": "django_shared_schema_tenants-0.0.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "0d0438e7d50df4516a03308f9445c40d", "packagetype": "bdist_wheel", "python_version": "3.5", "requires_python": null, "size": 22156, "upload_time": "2017-08-29T15:21:29", "url": "https://files.pythonhosted.org/packages/d9/67/f69da039faec5feeaadba781d75346b13561b115608029bddc8826524ba4/django_shared_schema_tenants-0.0.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "576ef46a85297ed8c0e36f41d5afb3cc", "sha256": "3e874e35a4c843058c10fae3b85f31a4a8f15d0987d0d78d612bc813c8fef90d" }, "downloads": -1, "filename": "django-shared-schema-tenants-0.0.3.tar.gz", "has_sig": false, "md5_digest": "576ef46a85297ed8c0e36f41d5afb3cc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16176, "upload_time": "2017-08-29T15:21:25", "url": "https://files.pythonhosted.org/packages/5e/23/5c28bf08ab43a27779669c7f2041485784f4449ccaa1139eeb6f6d538266/django-shared-schema-tenants-0.0.3.tar.gz" } ], "0.1.0": [ { "comment_text": "", "digests": { "md5": "b8428c5cf6461ce446743cd22de9b67f", "sha256": "b6cd6530e4e0817f4733ea84a1f19d0c501f1de51c666efd298fdb76944c4ff0" }, "downloads": -1, "filename": "django_shared_schema_tenants-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "b8428c5cf6461ce446743cd22de9b67f", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 22112, "upload_time": "2017-10-31T12:53:57", "url": "https://files.pythonhosted.org/packages/6f/7c/8de8adad4f1c25914351575970d54dbbfeee34e1a95cd03ffdc5b43cd35c/django_shared_schema_tenants-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "fc0f29871db2d8ef73731b0dcdfb13af", "sha256": "8e390be390ae2df1fb8089091e733c49318f6f9b4a9be6e8ea330d285aad7778" }, "downloads": -1, "filename": "django-shared-schema-tenants-0.1.0.tar.gz", "has_sig": false, "md5_digest": "fc0f29871db2d8ef73731b0dcdfb13af", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16089, "upload_time": "2017-10-31T12:53:54", "url": "https://files.pythonhosted.org/packages/04/57/b709db76d31ec095156732a46bc3caaf47fcfe754bb987cbc9a3ffc0c700/django-shared-schema-tenants-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b8428c5cf6461ce446743cd22de9b67f", "sha256": "b6cd6530e4e0817f4733ea84a1f19d0c501f1de51c666efd298fdb76944c4ff0" }, "downloads": -1, "filename": "django_shared_schema_tenants-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "b8428c5cf6461ce446743cd22de9b67f", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 22112, "upload_time": "2017-10-31T12:53:57", "url": "https://files.pythonhosted.org/packages/6f/7c/8de8adad4f1c25914351575970d54dbbfeee34e1a95cd03ffdc5b43cd35c/django_shared_schema_tenants-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "fc0f29871db2d8ef73731b0dcdfb13af", "sha256": "8e390be390ae2df1fb8089091e733c49318f6f9b4a9be6e8ea330d285aad7778" }, "downloads": -1, "filename": "django-shared-schema-tenants-0.1.0.tar.gz", "has_sig": false, "md5_digest": "fc0f29871db2d8ef73731b0dcdfb13af", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 16089, "upload_time": "2017-10-31T12:53:54", "url": "https://files.pythonhosted.org/packages/04/57/b709db76d31ec095156732a46bc3caaf47fcfe754bb987cbc9a3ffc0c700/django-shared-schema-tenants-0.1.0.tar.gz" } ] }