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

Metadata

Release files for vinta-django-orgs 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vinta-django-orgs 0.5.0
File Size Uploaded Provenance
vinta_django_orgs-0.5.0.tar.gz 125.1 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for vinta-django-orgs 0.5.0
File Interpreter ABI Platform
vinta_django_orgs-0.5.0-py3-none-any.whl Python 3 none any Details

Total release size: 229.3 kB

Release files / vinta_django_orgs-0.5.0.tar.gz

Download URL vinta_django_orgs-0.5.0.tar.gz
Size 125.1 kB
Tags Source
SHA-256 checksum
How to use checksums
791f024ab8ef8b2cbbe4f98353113d0ac6db557bc03937c1dc73ceb7554585af
BLAKE2b-256 checksum
How to use checksums
787a7c03866d4f79334232e077f04b1c6fa16953ae2e0cd159e0f29040a59c79
Upload date
Uploaded using Trusted Publishing?
What is 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}

Release files / vinta_django_orgs-0.5.0-py3-none-any.whl

Download URL vinta_django_orgs-0.5.0-py3-none-any.whl
Size 104.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ec7ed4048c413a93b3dd84d77427b70440aa9f73545b71b452d948eb30f52e4b
BLAKE2b-256 checksum
How to use checksums
a0460b4aa940f80910fb26d64cbc6164371ef417f0922ee799f71e6886847694
Upload date
Uploaded using Trusted Publishing?
What is 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}

Security for vinta-django-orgs 0.5.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

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