Skip to main content

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

Project description

pookieStorage

Python Version License: MIT Documentation Status 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.1.tar.gz (7.8 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.1-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pookie_storage-0.1.1.tar.gz
  • Upload date:
  • Size: 7.8 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.1.tar.gz
Algorithm Hash digest
SHA256 af70abdf5a6dbd050fa5d39ae80ab8266ea537c6ba8a23be8bfe57f4ccf7101b
MD5 8dbc4493d67373f374e77a1e1673d01f
BLAKE2b-256 9f55ebf4450d2400bd68407c233c9c7cf2df9973d098fdb51fc01dfc0936c0bc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pookie_storage-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 78f854b873986a10a90ac984518263171054c9d286dbcfa8489d718904631d15
MD5 f90d4b66131e39dde8a3471f71f14cef
BLAKE2b-256 1b77e690e7d91c97774a5ac3ce92268e81f7cb5bee16ec87122c933bdb24dff7

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