Skip to main content

Munch Swift storage backend

This module contains Swift storage backends to be used with Munch.

Install

Todo.

SwiftPrivateStorage

This one is meant to be used as the default Django storage backend. It merely wraps django-storage-swift by:

  • providing an extra Django setting for the container name

  • ensuring a blank URL is returned for the file (since container is private)

  • forcing auto_overwrite of files

We prefer to use a different setting for the container name rather than upstream’s SWIFT_CONTAINER_NAME so that we can cleanly configure multiple Swift backends.

Usage

# Add the following in Django settings
DEFAULT_FILE_STORAGE = 'munch_storage_swift.SwiftPrivateStorage'
DEFAULT_SWIFT_CONTAINER_NAME = 'private'

SWIFT_AUTH_URL = 'https://auth.cloud.ovh.net/v2.0'
SWIFT_AUTH_VERSION = '2.0'
SWIFT_USERNAME = 'username'
SWIFT_KEY = 'XXXXXXXXXX'
SWIFT_TENANT_NAME = 'tenant_name'
SWIFT_TENANT_ID = 'tenant_id'

SwiftUploadStorage

This one will do all of most of the above, except returning a blank URL. Instead, we will return a URL using the provided base_url, regardless of the URL computed by upstream.

Usage

# Add the following in Django settings
UPLOAD_STORE_BACKEND = 'munch_storage_swift.SwiftUploadStorage'
UPLOAD_STORE_SWIFT_CONTAINER_NAME = 'upload'

SWIFT_AUTH_URL = 'https://auth.cloud.ovh.net/v2.0'
SWIFT_AUTH_VERSION = '2.0'
SWIFT_USERNAME = 'username'
SWIFT_KEY = 'XXXXXXXXXX'
SWIFT_TENANT_NAME = 'tenant_name'
SWIFT_TENANT_ID = 'tenant_id'

Metadata

Release files for munch-storage-swift 0.1.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 munch-storage-swift 0.1.0
File Size Uploaded Provenance Actions
munch-storage-swift-0.1.0.tar.gz 3.9 kB Without provenance Details for munch-storage-swift-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for munch-storage-swift 0.1.0
File Interpreter ABI Platform Actions
munch_storage_swift-0.1.0-py3-none-any.whl Python 3 none any Details for munch_storage_swift-0.1.0-py3-none-any.whl

Total release size: 10.0 kB

Release files / munch-storage-swift-0.1.0.tar.gz

Download URL munch-storage-swift-0.1.0.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
1649e2afa7ce4007fa795be7965dc671c176b17b085308e15d1a86c6c7c34486
BLAKE2b-256 checksum
How to use checksums
bb627eec9a8fe4ee676d2e30d987d5e53ae0abbbd9a3505119cb2f9969223526
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / munch_storage_swift-0.1.0-py3-none-any.whl

Download URL munch_storage_swift-0.1.0-py3-none-any.whl
Size 6.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8bd31f73660305c904afcba1cd7da2240c7f3bbf12d3a8854c12bdeab1b90c1d
BLAKE2b-256 checksum
How to use checksums
74c5c77f0865af3f1c3c9fb5e056d16b24a4284e1eee2b58f42d08c93b2a0763
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for munch-storage-swift 0.1.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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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