Skip to main content

A non-persistent in-memory data storage backend for Django.

Project description

dj-inmemorystorage

https://travis-ci.org/waveaccounting/dj-inmemorystorage.png?branch=master

A non-persistent in-memory data storage backend for Django.

Compatible with Django’s storage API.

Supported Versions

Python 2.6/2.7 with Django 1.4+ Python 3.2/3.3/3.4 with Django 1.5+

Usage

In your test settings file, add

DEFAULT_FILE_STORAGE = 'inmemorystorage.InMemoryStorage'

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+ and Python 3.2/3.3/3.4 with Django 1.5+.

Contributing

  1. Ensure that you open a pull request

  2. All feature additions/bug fixes MUST include tests

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

dj_inmemorystorage-1.2.0-py2.py3-none-any.whl (7.9 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file dj_inmemorystorage-1.2.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for dj_inmemorystorage-1.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 89a4f8a1b86fe71136050e160c5883e6c340bca3888d0b5138a6b6b3e6fc373d
MD5 52cca46738abfc833fbf632d57939ef9
BLAKE2b-256 b2df2ee5343a1731e4687b5271174e36fcce5e6ccce29bdb2af6b8f191b1e205

See more details on using hashes here.

Supported by

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