django-pgschemas
================
.. image:: https://img.shields.io/badge/packaging-poetry-purple.svg
:alt: Packaging: poetry
:target: https://github.com/sdispater/poetry
.. image:: https://img.shields.io/badge/code%20style-black-black.svg
:alt: Code style: black
:target: https://github.com/ambv/black
.. image:: https://github.com/lorinkoz/django-pgschemas/workflows/code/badge.svg
:alt: Build status
:target: https://github.com/lorinkoz/django-pgschemas/actions
.. image:: https://readthedocs.org/projects/django-pgschemas/badge/?version=latest
:alt: Documentation status
:target: https://django-pgschemas.readthedocs.io/
.. image:: https://coveralls.io/repos/github/lorinkoz/django-pgschemas/badge.svg?branch=master
:alt: Code coverage
:target: https://coveralls.io/github/lorinkoz/django-pgschemas?branch=master
.. image:: https://badge.fury.io/py/django-pgschemas.svg
:alt: PyPi version
:target: http://badge.fury.io/py/django-pgschemas
.. image:: https://pepy.tech/badge/django-pgschemas/month
:alt: Downloads
:target: https://pepy.tech/project/django-pgschemas/
|
This app uses PostgreSQL schemas to support data multi-tenancy in a single
Django project. It is a fork of `django-tenants`_ with some conceptual changes:
- There are static tenants and dynamic tenants. Static tenants can have their
own apps and urlconf.
- Tenants can be simultaneously routed via subdomain and via subfolder on shared
subdomain.
- Public is no longer the schema for storing the main site data. Public should
be used only for true shared data across all tenants. Table "overriding" via
search path is no longer encouraged.
- Management commands can be run on multiple schemas via wildcards - the
multiproc behavior of migrations was extended to just any tenant command.
.. _django-tenants: https://github.com/tomturner/django-tenants
Documentation
-------------
https://django-pgschemas.readthedocs.io/
Contributing
------------
- Join the discussion at https://github.com/lorinkoz/django-pgschemas/discussions.
- PRs are welcome! If you have questions or comments, please use the discussions
link above.
- To run the test suite run ``make`` or ``make coverage``. The tests for this
project live inside a small django project called ``dpgs_sandbox``. Database
password and database host can be set through the environment variables
``DATABASE_PASSWORD`` and ``DATABASE_HOST``.
Credits
-------
* Tom Turner for `django-tenants`_.
* Bernardo Pires for `django-tenant-schemas`_.
.. _django-tenants: https://github.com/tomturner/django-tenants
.. _django-tenant-schemas: https://github.com/bernardopires/django-tenant-schemas
Raw data
{
"_id": null,
"home_page": "https://github.com/lorinkoz/django-pgschemas",
"name": "django-pgschemas",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.8.1,<4.0.0",
"maintainer_email": "",
"keywords": "django,tenants,schemas,multi-tenancy,postgresql",
"author": "Lorenzo Pe\u00f1a",
"author_email": "lorinkoz@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/2c/e0/1853c7d047bf1d31e9028a4c1c309dbbb4ec0d546464f27b847255a83c39/django_pgschemas-0.15.1.tar.gz",
"platform": null,
"description": "django-pgschemas\n================\n\n.. image:: https://img.shields.io/badge/packaging-poetry-purple.svg\n :alt: Packaging: poetry\n :target: https://github.com/sdispater/poetry\n\n.. image:: https://img.shields.io/badge/code%20style-black-black.svg\n :alt: Code style: black\n :target: https://github.com/ambv/black\n\n.. image:: https://github.com/lorinkoz/django-pgschemas/workflows/code/badge.svg\n :alt: Build status\n :target: https://github.com/lorinkoz/django-pgschemas/actions\n\n.. image:: https://readthedocs.org/projects/django-pgschemas/badge/?version=latest\n :alt: Documentation status\n :target: https://django-pgschemas.readthedocs.io/\n\n.. image:: https://coveralls.io/repos/github/lorinkoz/django-pgschemas/badge.svg?branch=master\n :alt: Code coverage\n :target: https://coveralls.io/github/lorinkoz/django-pgschemas?branch=master\n\n.. image:: https://badge.fury.io/py/django-pgschemas.svg\n :alt: PyPi version\n :target: http://badge.fury.io/py/django-pgschemas\n\n.. image:: https://pepy.tech/badge/django-pgschemas/month\n :alt: Downloads\n :target: https://pepy.tech/project/django-pgschemas/\n\n|\n\nThis app uses PostgreSQL schemas to support data multi-tenancy in a single\nDjango project. It is a fork of `django-tenants`_ with some conceptual changes:\n\n- There are static tenants and dynamic tenants. Static tenants can have their\n own apps and urlconf.\n- Tenants can be simultaneously routed via subdomain and via subfolder on shared\n subdomain.\n- Public is no longer the schema for storing the main site data. Public should\n be used only for true shared data across all tenants. Table \"overriding\" via\n search path is no longer encouraged.\n- Management commands can be run on multiple schemas via wildcards - the\n multiproc behavior of migrations was extended to just any tenant command.\n\n.. _django-tenants: https://github.com/tomturner/django-tenants\n\nDocumentation\n-------------\n\nhttps://django-pgschemas.readthedocs.io/\n\nContributing\n------------\n\n- Join the discussion at https://github.com/lorinkoz/django-pgschemas/discussions.\n- PRs are welcome! If you have questions or comments, please use the discussions\n link above.\n- To run the test suite run ``make`` or ``make coverage``. The tests for this\n project live inside a small django project called ``dpgs_sandbox``. Database\n password and database host can be set through the environment variables\n ``DATABASE_PASSWORD`` and ``DATABASE_HOST``.\n\nCredits\n-------\n\n* Tom Turner for `django-tenants`_.\n* Bernardo Pires for `django-tenant-schemas`_.\n\n.. _django-tenants: https://github.com/tomturner/django-tenants\n.. _django-tenant-schemas: https://github.com/bernardopires/django-tenant-schemas\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Multi-tenancy on Django using PostgreSQL schemas.",
"version": "0.15.1",
"project_urls": {
"Documentation": "https://django-pgschemas.readthedocs.io/",
"Homepage": "https://github.com/lorinkoz/django-pgschemas",
"Repository": "https://github.com/lorinkoz/django-pgschemas"
},
"split_keywords": [
"django",
"tenants",
"schemas",
"multi-tenancy",
"postgresql"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "7e783d53ce768b169d8ce3b038d267e471bf7d8ebee1d9ea2a68d221a57ee0bf",
"md5": "a9a86a82b4d74b18846fa3a374f88e2b",
"sha256": "90e4545b03f2de62266927c9b4fc6d43235073d46e972c46eb4db831f872ceaf"
},
"downloads": -1,
"filename": "django_pgschemas-0.15.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "a9a86a82b4d74b18846fa3a374f88e2b",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8.1,<4.0.0",
"size": 61951,
"upload_time": "2023-10-16T06:50:02",
"upload_time_iso_8601": "2023-10-16T06:50:02.428970Z",
"url": "https://files.pythonhosted.org/packages/7e/78/3d53ce768b169d8ce3b038d267e471bf7d8ebee1d9ea2a68d221a57ee0bf/django_pgschemas-0.15.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "2ce01853c7d047bf1d31e9028a4c1c309dbbb4ec0d546464f27b847255a83c39",
"md5": "f7b566381fada8e9712ad61a44fa581a",
"sha256": "82665201d096338262a6554000d5503299d7e3a3d65793574fd0585f4809e5d2"
},
"downloads": -1,
"filename": "django_pgschemas-0.15.1.tar.gz",
"has_sig": false,
"md5_digest": "f7b566381fada8e9712ad61a44fa581a",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8.1,<4.0.0",
"size": 49425,
"upload_time": "2023-10-16T06:50:03",
"upload_time_iso_8601": "2023-10-16T06:50:03.985632Z",
"url": "https://files.pythonhosted.org/packages/2c/e0/1853c7d047bf1d31e9028a4c1c309dbbb4ec0d546464f27b847255a83c39/django_pgschemas-0.15.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-10-16 06:50:03",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "lorinkoz",
"github_project": "django-pgschemas",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "django-pgschemas"
}