Skip to main content
https://badge.fury.io/py/vinta-django-orgs.svg https://github.com/hugobessa/django-shared-schema-organizations/actions/workflows/ci.yml/badge.svg https://codecov.io/gh/hugobessa/django-shared-schema-organizations/branch/master/graph/badge.svg

A lib to help in the creation applications with shared schema without suffering

Documentation

The full documentation is at [ReadTheDocs](https://vinta-django-orgs.readthedocs.io).

Quickstart

Install Django Shared Schema Organizations:

pip install vinta-django-orgs

Add it to your INSTALLED_APPS:

INSTALLED_APPS = (
    ...
    'vinta_orgs.apps.OrganizationsConfig',
    ...
)

Add Django Shared Schema Organizations’s URL patterns:

from django.urls import include, path


urlpatterns = [
    ...
    path('', include('vinta_orgs.urls')),
    ...
]

Add OrganizationMiddleware to your MIDDLEWARES:

MIDDLEWARES = [
    # ...
    'vinta_orgs.middleware.OrganizationMiddleware',
    # ...
]

Features

  • Organizations synced with django requests: The active organization can be extracted from the domain of the request and from a specific http header attribute.

  • Easy data isolation between organizations: You retrieve and create data the same way you do without organizations. The active organization can be retrieved from the request, and can also be forcedly set.

  • Partially shared data: If there is data that can be accessed from more then one organization in your applidation, you don’t need to duplicate it.

Running Tests

Does the code actually work?

$ uv sync
$ uv run tox

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vinta_django_orgs-0.4.0.tar.gz (121.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vinta_django_orgs-0.4.0-py3-none-any.whl (102.9 kB view details)

Uploaded Python 3

File details

Details for the file vinta_django_orgs-0.4.0.tar.gz.

File metadata

  • Download URL: vinta_django_orgs-0.4.0.tar.gz
  • Upload date:
  • Size: 121.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for vinta_django_orgs-0.4.0.tar.gz
Algorithm Hash digest
SHA256 8ac7fd1ae72bffd7b5a4d4c05149a5cffaa95b1e338505bdef94ef10fcf2a53e
MD5 3d9bc3b24b6d99a5d0b411f00f4deee1
BLAKE2b-256 c157da11932fea3a8355aa9578c77173aede7ec59a495497bde364b89ae983a8

See more details on using hashes here.

File details

Details for the file vinta_django_orgs-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: vinta_django_orgs-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 102.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for vinta_django_orgs-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6bd9c8fe444f15bc9d778cddffc62d5bcc24fef3c55cb0ffcb2796a95c7233c1
MD5 b8753499703304b859cfb27d5154df04
BLAKE2b-256 94ee8e5eae88f0eb88b4fa338954d375a26f75002d24915ad98e7e729251317a

See more details on using hashes here.

Release history Release notifications | RSS feed

0.5.0

2 files

This release

0.4.0 This release

2 files

0.3.0

2 files

0.2.0

2 files

0.1.1

2 files

0.0.3

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page