Skip to main content

The attachments module for building a SaaS product with Django

Project description

Django SaaS Attachments

The attachments module for building a SaaS product with Django.

Install

pip install django-saas-attachments

Then add it into your Django project settings.py:

INSTALLED_APPS = [
    # ...
    "saas",
    "saas_attachments",
]

SAAS_ATTACHMENTS = {
    "PROVIDERS": [
        {
            "backend": "saas_attachments.providers.s3.S3Provider",
            "options": {
                "name": "default",
                "bucket_name": "my-bucket",
                "region_name": "us-east-1",
                "access_key_id": "secret:AWS_ACCESS_KEY_ID",
                "secret_access_key": "secret:AWS_SECRET_ACCESS_KEY",
            }
        }
    ]
}

Features

  • Tenant Isolation: All attachments are linked to a tenant.
  • Async Uploads: Uses presigned URLs for direct-to-storage uploads.
  • Media Types: Specialized models for Image, Audio, and Video.
  • Provider Support: Extensible storage provider system (S3 included).
  • Cleanup: Built-in management command to clean up abandoned uploads.

Project details


Download files

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

Source Distribution

django_saas_attachments-0.1.0.tar.gz (17.1 kB view details)

Uploaded Source

Built Distribution

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

django_saas_attachments-0.1.0-py3-none-any.whl (16.6 kB view details)

Uploaded Python 3

File details

Details for the file django_saas_attachments-0.1.0.tar.gz.

File metadata

  • Download URL: django_saas_attachments-0.1.0.tar.gz
  • Upload date:
  • Size: 17.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for django_saas_attachments-0.1.0.tar.gz
Algorithm Hash digest
SHA256 567c68a2fef12e41b89a4ba2ad0a4273227c3d43e90e78d6bf10c3b1edd435d7
MD5 b1d5659c58842e745eb321d2f596b87b
BLAKE2b-256 4f8eda29369ffd199695b9d151e354b7aee86f1a91d8905c077efbf02897a5b4

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_saas_attachments-0.1.0.tar.gz:

Publisher: pypi.yml on django-saas/django-saas-attachments

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file django_saas_attachments-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for django_saas_attachments-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0b333c996a2759a3124b48d7ea022faba447eb4a4c0f7d7ce8b45127984f48ab
MD5 9b4e2249f3d58174d3ac0b301becca3c
BLAKE2b-256 cca1d2ac20518657c905981bea40bd54cc07e449d484939e4f257891ab6f9daa

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_saas_attachments-0.1.0-py3-none-any.whl:

Publisher: pypi.yml on django-saas/django-saas-attachments

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page