Skip to main content

Buildout recipe for Dr Dump to generate bash script to dump or load Django data dump.

So this recipe will create two bash scripts, one to dump datas from defined eggs in buildout config and another to load these dumped datas.

This will use the defined eggs list in your buildout config to find the apps to manage dumps so be careful that it can’t retrieve apps that are not defined in your eggs to install, it will not follow eggs dependancies but if needed you can force some apps using the extra_apps option.

recipe

Required, fill it with emencia-recipe-drdump.

eggs

Optional, ‘eggs’ variable from buildout. Default use ${buildout:eggs}.

dump_dir

Optional, a path to the directory that will contains dumped datas, this is always a relative path from the buildout project. If not defined the dumps dir will be dumps.

dependancies_map

Required, a path to a JSON file containing datas dependancies map between apps. This can be either a file name existing in Dr Dump or a path (relative or absolute) to an external JSON file.

extra_apps

Optional, a string of app names formatted like the egg names in ${buildout:eggs}. This will be used to defined additional apps that can’t be retrieved from the installed eggs.

django_instance

Required, a path to the django script, usually the one generated by djangorecipe.

silent

Optional, false or true to define respectively if Dr Dump raise or not an exception when asked dumps does not exists in the used map.

dump_other_apps

Optional, false or true to define if Dr Dump will dump not specify apps in a last dump.

exclude_apps

Optional, a string of app names formatted like the egg names in ${buildout:eggs}. This will be used to defined additional apps that can’t be dump if dump_other_apps is True.

bin_directory

Optional, binary directory path where the scripts will be written, defaut use ${buildout:bin-directory}.

Here is a sample to use this recipe :

[drdump]
recipe                  = emencia-recipe-drdump
dump_dir                = dumps
dependancies_map        = djangocms-3.json
silent                  = true
dump_other_apps         = true
exclude_apps            = auth sessions contenttypes menus.cachekey filebrowser
django_instance         = ${buildout:directory}/bin/django-instance
extra_apps              = cmsplugin-various
bin_directory           = ${buildout:bin-directory}

Metadata

Release files for emencia-recipe-drdump 0.3.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 emencia-recipe-drdump 0.3.1
File Size Uploaded
emencia-recipe-drdump-0.3.1.tar.gz 4.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for emencia-recipe-drdump 0.3.1
File Interpreter ABI Platform
emencia_recipe_drdump-0.3.1-py2.7.egg Legacy Egg format - - Details

Total release size: 10.8 kB

Release files / emencia-recipe-drdump-0.3.1.tar.gz

Download URL emencia-recipe-drdump-0.3.1.tar.gz
Size 4.4 kB
Tags Source
SHA-256 checksum
How to use checksums
b69498f6ad7ef4d35c62d2f38c69c09cdf78342c5b471f2b819741157a6c5ce8
BLAKE2b-256 checksum
How to use checksums
9f8e2a40a170228f2342e58821f5bfbd8037a6fb53f5a8bd5ab0de60b2c2deb0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / emencia_recipe_drdump-0.3.1-py2.7.egg

Download URL emencia_recipe_drdump-0.3.1-py2.7.egg
Size 6.3 kB
Tags Egg
SHA-256 checksum
How to use checksums
f365334e62584da216c72e444945cc53968c904cd3afcd10356623786ef639b6
BLAKE2b-256 checksum
How to use checksums
52d822667eb78d43783a051b8ac9c355f826a9742909ebd0a2d99947e505c60d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.3.1 This release

2 release files

0.3

0.2

1 release file

0.1

1 release file

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