Diskette

Latest version: v0.5.0

Safety actively analyzes 722491 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

0.5.0

**************************

* Added new option ``use_base_manager`` application definition which can be used to
bypass custom model manager from an application. Under the hood it just enables
option ``--all`` from ``dumpdata``;
* Fixed Dump admin download view that was not working well. Because of some wrong
response headers the downloaded archive was uncompressed by browsers but still named
as a ``tar.gz`` file and so Diskette failed to load them;
* Introduced new setting ``DISKETTE_ADMIN_ENABLED`` to allow disabling the Diskette
admin views. Diskette will still be usable only from its commands;
* Dump logs are not displayed in dump admin view. Instead a link is showed to display
it in a dedicated plain text view;
* Added new option ``--save`` to diskette dump command to save created archive to a new
DumpFile object that can be used from admin;
* Added new possible pattern ``date`` in dump filename to include a datetime like
``2025-02-03T175309``;

0.4.0

**************************

**Major release for new feature to create and manage dump from Django admin**,
there is no incompatibility with previous version.

* Added support for **Python 3.11**;
* Added support for **Django 5.1**;
* Added minimal version for all requirements;
* Fixed usage of settings ``DISKETTE_DUMP_PATH`` and ``DISKETTE_LOAD_STORAGES_PATH``
when there are empty value, Diskette code now fallbacks to ``Path.cwd()``;
* Added a dummy homepage in sandbox instead of the previous 404 page;
* Added new setting ``DISKETTE_DUMP_PERMISSIONS`` to define filesystem permissions to
apply on dump destination directory and archive file. It defaults to ``0o755``;
* Added Django admin interface to manage dumps:

* Added models to manage dump files and API keys;
* API keys is currently unused until command ``diskette_load`` has been updated;
* Added **django-sendfile2** to requirements and use it to serve dump file;
* Dump file are limited to a single availability for the same option set (with data,
with storages and with everything);
* Creating a new dump will deprecate other dumps with identical option set then and
purge files of deprecated dumps;
* Dump process logs everything into Dump object attribute ``logs``;
* Dump process is not safe yet because it is still included in the same transaction
than the object creation so if it fails, the object is never saved. However it
won't create ghost files;
* Available dump can be downloaded directly from their admin detail view;

0.3.6

**************************

* Minor fixes in Makefile, documentation and Pytest adopted options;
* Implemented loaddata option ``ignorenonexistent``;
* Added support for **Django 5.0**;

0.3.5

**************************

* Added option ``--exclude-data`` to ``diskette_load`` to exclude some dump filenames
from loading;
* Added setting ``DISKETTE_LOAD_MINIMAL_FILESIZE`` to filter out dumps with file size
under the size limit;

0.3.4

**************************

* Added options ``--app`` and ``--exclude`` to ``diskette_apps``;
* Removed forgotten debug print from dump code;

0.3.3

**************************

* Added option ``--check`` to ``diskette_dump`` to perform validation and checking
without to query database or writing anything onto filesystem;
* Added option ``--format`` to ``diskette_apps`` with additional ``python`` format
which is now the default one instead of ``json``;
* Changed ``diskette_dump`` and ``diskette_load`` so they output Diskette version
as an early debug log message;

Page 1 of 2

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.