Skip to main content

Description

This django app is an app tool that add an admin interface to manage archives of database’s json dumps and/or media datas.

Packages can be download with django-sendfile.

Install

You can retrieve it via pip:

pip install django-datadownloader

Usage

You need to add two libraries in your INSTALLED_APPS:

INSTALLED_APPS = (
    ...
    'drdump',
    'datadownloader',
    ...
)

Add this to your URLs:

urlpatterns = [
    ...
    url(r'^admin/datadownloader/', include('datadownloader.urls')),
    ...
]

You can add a few options:

DATA_DOWNLOADER_PATH = join(VAR_PATH, 'protected_medias/datas')
DATA_DOWNLOADER_DUMP_PATH = join(VAR_PATH, 'dumps')
DRDUMP_OTHER_APPS = True
DRDUMP_MAP_FILE = join(BASE_DIR, 'drdump.json')
DRDUMP_EXCLUDE_APPS = ['auth', 'sessions', 'contenttypes']

See DrDump documentation for more: https://github.com/emencia/dr-dump

Running tests

To run the tests, run the django test management command with the settings found inside datadownloader.tests.settings:

$ django-admin test --pythonpath=. --settings=datadownloader.tests.settings

You must install mock if you run python2 or python < 3.4.

Changelog

1.2.1 - 2022/03/16

Correct bug when DATA_DOWNLOADER_DUMP_PATH is not relative

1.2.0 - 2021/11/23

Add settings DATA_DOWNLOADER_DUMP_PATH for specify folder where drdump dumps are stored

1.1.0 - 2021/06/08

Package now depends on “six” instead of using the deprecated embedded “six” module from Django which are not available anymore since Django 3.0.

1.x will be the last serie to support Python 2 and Django<2.2 versions, new serie 2.x will only support recent Python3 and Django versions.

Also did some cleaning in package setup and dependancies to fit to supported versions:

  • six

  • django>=1.8

  • dr-dump>=1.1.0

  • django-sendfile>=0.3.11

1.0.0 - 2018/09/26

Rewrite version.

Previously only release on a private package mirror, it have been release publicy to official Pypi on 2021/06/07.

0.2.2

  • add some information into main page

  • fix bug in uwsgi execution env

0.2.1

  • Forgot to update MANIFEST.in on 0.2.0 release

0.2.0

  • Refactoring code

  • Adding tests

0.1.1

  • Use rst syntax for doc/descriptions rather markdown.

0.1.0

  • First version.

Metadata

Release files for django-datadownloader 1.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-datadownloader 1.2.1
File Size Uploaded Provenance Actions
django-datadownloader-1.2.1.tar.gz 21.7 kB Without provenance Details for django-datadownloader-1.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for django-datadownloader 1.2.1
File Interpreter ABI Platform Actions
django_datadownloader-1.2.1-py2.py3-none-any.whl Python 2, Python 3 none any Details for django_datadownloader-1.2.1-py2.py3-none-any.whl

Total release size: 42.3 kB

Release files / django-datadownloader-1.2.1.tar.gz

Download URL django-datadownloader-1.2.1.tar.gz
Size 21.7 kB
Tags Source
SHA-256 checksum
How to use checksums
a3cbc831529d2ad6dd688f48bbc2b57d39fd6e8e6eb15e62fd0d562c13019d02
BLAKE2b-256 checksum
How to use checksums
067f8c7bfec2880088f7b02cf5af6c8bcb14560da1047a1c54fc419686eda7e1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

Release files / django_datadownloader-1.2.1-py2.py3-none-any.whl

Download URL django_datadownloader-1.2.1-py2.py3-none-any.whl
Size 20.7 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
77e936c2bfae0692207f2cb426662f8d6feab2235b170de7be72de861e78f1f7
BLAKE2b-256 checksum
How to use checksums
8442a75a8d35c5ef40f168f9c909988a8d24a14b9ea67e7c0fd549e3f6f03ad3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

Security for django-datadownloader 1.2.1

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.

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