{"id":13411517,"url":"https://github.com/lorinkoz/django-pgschemas","last_synced_at":"2025-04-08T16:09:22.596Z","repository":{"id":33952323,"uuid":"162996334","full_name":"lorinkoz/django-pgschemas","owner":"lorinkoz","description":"Django multi-tenancy through Postgres schemas","archived":false,"fork":false,"pushed_at":"2024-10-29T19:29:11.000Z","size":1324,"stargazers_count":144,"open_issues_count":1,"forks_count":19,"subscribers_count":13,"default_branch":"master","last_synced_at":"2024-10-30T07:42:44.858Z","etag":null,"topics":["django","multi-tenancy","postgres","python"],"latest_commit_sha":null,"homepage":"https://django-pgschemas.readthedocs.io/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lorinkoz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["lorinkoz"]}},"created_at":"2018-12-24T14:04:14.000Z","updated_at":"2024-10-29T19:28:56.000Z","dependencies_parsed_at":"2023-11-21T08:24:34.020Z","dependency_job_id":"8870cf92-2a23-4fcd-9b3a-f00002ef12d4","html_url":"https://github.com/lorinkoz/django-pgschemas","commit_stats":{"total_commits":370,"total_committers":7,"mean_commits":"52.857142857142854","dds":0.06756756756756754,"last_synced_commit":"464d18fb4268a3c1a6d63fb32c3d3308d36fc163"},"previous_names":[],"tags_count":42,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lorinkoz%2Fdjango-pgschemas","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lorinkoz%2Fdjango-pgschemas/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lorinkoz%2Fdjango-pgschemas/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lorinkoz%2Fdjango-pgschemas/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lorinkoz","download_url":"https://codeload.github.com/lorinkoz/django-pgschemas/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247878022,"owners_count":21011158,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["django","multi-tenancy","postgres","python"],"created_at":"2024-07-30T20:01:14.204Z","updated_at":"2025-04-08T16:09:22.575Z","avatar_url":"https://github.com/lorinkoz.png","language":"Python","funding_links":["https://github.com/sponsors/lorinkoz"],"categories":["Web Development"],"sub_categories":["Python"],"readme":"# django-pgschemas\n\n[![Packaging: poetry](https://img.shields.io/badge/packaging-poetry-purple.svg)](https://python-poetry.org/)\n[![Build status](https://github.com/lorinkoz/django-pgschemas/workflows/code/badge.svg)](https://github.com/lorinkoz/django-pgschemas/actions)\n[![Documentation status](https://readthedocs.org/projects/django-pgschemas/badge/?version=latest)](https://django-pgschemas.readthedocs.io/)\n[![Code coverage](https://coveralls.io/repos/github/lorinkoz/django-pgschemas/badge.svg?branch=master)](https://coveralls.io/github/lorinkoz/django-pgschemas?branch=master)\n[![PyPi version](https://badge.fury.io/py/django-pgschemas.svg)](http://badge.fury.io/py/django-pgschemas)\n[![Downloads](https://pepy.tech/badge/django-pgschemas/month)](https://pepy.tech/project/django-pgschemas/)\n\nThis package uses Postgres schemas to support data multi-tenancy in a single Django project. It is a fork of [django-tenants](https://github.com/django-tenants/django-tenants) with some conceptual changes:\n\n- There are static tenants and dynamic tenants. Static tenants can have their own apps and urlconf.\n- Tenants can be routed via:\n  - URL using subdomain or subfolder on shared subdomain\n  - Session\n  - Headers\n- Public schema should not be used for storing the main site data, but the true shared data across all tenants. Table \"overriding\" via search path is not encouraged.\n- Management commands can be run on multiple schemas via wildcards, either sequentially or in parallel using multithreading.\n\n## Documentation\n\nhttps://django-pgschemas.readthedocs.io/\n\nVersion 1.0 has several breaking changes from the 0.\\* series. Please refer to [this discussion](https://github.com/lorinkoz/django-pgschemas/discussions/277) for details and bug reports.\n\n## Contributing\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 link above.\n- To run the test suite run `make` or `make coverage`. The tests for this project live inside a small django project called `sandbox`.\n\n## Credits\n\n- Tom Turner for [django-tenants](https://github.com/django-tenants/django-tenants).\n- Bernardo Pires for [django-tenant-schemas](https://github.com/bernardopires/django-tenant-schemas).\n- Denish Patel for [pg-clone-schema](https://github.com/denishpatel/pg-clone-schema)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Florinkoz%2Fdjango-pgschemas","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Florinkoz%2Fdjango-pgschemas","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Florinkoz%2Fdjango-pgschemas/lists"}