A non-persistent in-memory data storage backend for Django.
Project description
dj-inmemorystorage
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 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 with Django 1.5+.
Contributing
Ensure that you open a pull request
All feature additions/bug fixes MUST include tests
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file dj-inmemorystorage-1.0.3.tar.gz
.
File metadata
- Download URL: dj-inmemorystorage-1.0.3.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 52446189d4254f0088a7871ed8e894b906e3cdb89350f32fef3423208efc0d7a |
|
MD5 | 8549763c0cc1c8f865a68e7e8a4c8a56 |
|
BLAKE2b-256 | 47efbca3fa5ab2e4d4a82e9d9d758cab9d03b0c10daeea96582263798f1afe11 |
Provenance
File details
Details for the file dj_inmemorystorage-1.0.3-py2.py3-none-any.whl
.
File metadata
- Download URL: dj_inmemorystorage-1.0.3-py2.py3-none-any.whl
- Upload date:
- Size: 7.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c28abfd2605fc428daa6dae9038403893669859c73de2c2a51c4459bf231c4c |
|
MD5 | d74762192d9a213efd3a85640e38ab53 |
|
BLAKE2b-256 | c9d5d71367e5df190c7035a8c9db397ce2861b9816d2fa43f6f1255404b2f4b3 |