dj-inmemorystorage
An 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'
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+ and Python 3.2/3.3/3.4 with Django 1.5+.
Contributing
Ensure that you open a pull request
All feature additions/bug fixes MUST include tests
Metadata
Release files for ambition-inmemorystorage 1.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ambition-inmemorystorage-1.4.0.tar.gz | 6.2 kB | Without provenance | Details for ambition-inmemorystorage-1.4.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ambition_inmemorystorage-1.4.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for ambition_inmemorystorage-1.4.0-py2.py3-none-any.whl |
Total release size: 14.7 kB
Release files / ambition-inmemorystorage-1.4.0.tar.gz
| Download URL | ambition-inmemorystorage-1.4.0.tar.gz |
|---|---|
| Size | 6.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5fdce2c9ef3782c315879b7a9309cc98b4f3951e92c66138c63ca99571320472
|
|
BLAKE2b-256 checksum How to use checksums |
dc14f080d55a485d523cb9e0ba046ac9807e863c491a6116f7d49044e1de50b4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / ambition_inmemorystorage-1.4.0-py2.py3-none-any.whl
| Download URL | ambition_inmemorystorage-1.4.0-py2.py3-none-any.whl |
|---|---|
| Size | 8.5 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
1c13461566f77e1e0b5bf55a16555af57b2aca0f9726a35a3700671df4dafbca
|
|
BLAKE2b-256 checksum How to use checksums |
425ca30e3af7a971dfc9811667e066de496709ae5dd930469df96ceb5f3e5e35
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for ambition-inmemorystorage 1.4.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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.