Skip to main content

A Django storage field that works everywhere. One import. Any backend. Zero plumbing.

Project description

pookieStorage

Python Version License: MIT PyPI version

A Django storage field that works everywhere. One import. Any backend. Zero plumbing.

Installation

pip install pookie-storage

Quick start

Add to INSTALLED_APPS:

INSTALLED_APPS = [
    ...
    "pookieStorage",
]

Configure your backends in settings.py:

POOKIE_STORAGE = {
    "local": "core.storage.LocalStorage",
    "cloud": "core.storage.MediaStorage",
}

POOKIE_STORAGE_BACKEND = "cloud"

Swap the import in your models:

from pookieStorage.fields import FileField

That is it. Your models, views, and business logic stay exactly the same.

License

MIT

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

pookie_storage-0.1.0.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

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

pookie_storage-0.1.0-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pookie_storage-0.1.0.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for pookie_storage-0.1.0.tar.gz
Algorithm Hash digest
SHA256 dcb58712cd3d49b0f3a79b8c1a8edee0cea3145410d1dfaafc10d15c402c5fe0
MD5 b7bab4b4ec8bb2b16418c70ac65f8773
BLAKE2b-256 3de479a364d59001379585cb922ede0b9e99ae17fda3f434af89ca8df1c6f058

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pookie_storage-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.3

File hashes

Hashes for pookie_storage-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 678278103141c48bc3c2931b893aeabff959fdcc92ddd94361ced491f5678865
MD5 22f7937c5a5ba3727bf8243383e6e6ba
BLAKE2b-256 f0bee24e3854d0d09f1f21b94a31955777eb2ab627f3c3a7eab1a64ae6d32dcd

See more details on using hashes here.

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