Skip to main content

dj-inmemorystorage

image

PyPI

An in-memory data storage backend for Django.

Compatible with Django's storage API.

Supported Versions

  • Python 2.7 with Django 1.11
  • Python 3.5/3.6/3.7 with Django 1.11+
  • Python 3.8 with Django 2.2+

In general, we follow Python's supported versions and Django's supported versions. Any major change in version support will be released as a new major version.

Usage

In your test settings file, add

DEFAULT_FILE_STORAGE = 'inmemorystorage.InMemoryStorage'

By default, the InMemoryStorage backend is non-persistant, meaning that writes to it from one section of your code will not be present when reading from another section of your code, unless both are sharing the same instance of the storage backend.

If you need your storage to persist, you can add the following to your settings.

INMEMORYSTORAGE_PERSIST = True

Differences

This library is based on django-inmemorystorage by Cody Soyland, with modifications made by Seán Hayes with support for the url method, with additional support from Tore Birkeland for writing to the file.

Wave's modifications include packaging, and test modifications such that python setup.py test works. This version also bumps the version to 1.0.0 and renames it to dj-inmemorystorage such that it doesn't conflict on PyPI.

The biggest difference is that this package works with Django 1.4 now (previously only 1.5+). It also supports Python 2.6/2.7 with Django 1.4+, Python 3.2/3.3/3.4 with Django 1.5+ and Python 3.5/3.6 with Django 1.7+.

Contributing

  1. Ensure that you open a pull request
  2. All feature additions/bug fixes MUST include tests

Metadata

Release files for dj-inmemorystorage 2.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 dj-inmemorystorage 2.1.0
File Size Uploaded Provenance
dj-inmemorystorage-2.1.0.tar.gz 7.0 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for dj-inmemorystorage 2.1.0
File Interpreter ABI Platform
dj_inmemorystorage-2.1.0-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 13.1 kB

Release files / dj-inmemorystorage-2.1.0.tar.gz

Download URL dj-inmemorystorage-2.1.0.tar.gz
Size 7.0 kB
Tags Source
SHA-256 checksum
How to use checksums
1771801613414262803a1a1e97dafd2b7a563e78fbcbfa2b6f841c9d8e7b872a
BLAKE2b-256 checksum
How to use checksums
bb5b89366ae96a0213437fd40b2e76791e8adcf790eda597a879bd2595bc41a5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.8.0 tqdm/4.41.0 CPython/3.8.0

Release files / dj_inmemorystorage-2.1.0-py2.py3-none-any.whl

Download URL dj_inmemorystorage-2.1.0-py2.py3-none-any.whl
Size 6.1 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
81aa007a7cdb1899b3cd92404f656c82cd690a831b8698a43045f859d7276945
BLAKE2b-256 checksum
How to use checksums
6c9cf4246ff1b9f46940a4ade01c9563410e22b032fafc8115a560907c8662b0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.8.0 tqdm/4.41.0 CPython/3.8.0

Security for dj-inmemorystorage 2.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.

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