Skip to main content

Dumps html pages and their corresponding assets into a tar file

Project description

https://badge.fury.io/py/django-html-dumper.svg https://travis-ci.org/adrienbrunet/django-html-dumper.svg?branch=master https://codecov.io/gh/adrienbrunet/django-html-dumper/branch/master/graph/badge.svg

Dumps html pages and their corresponding assets into a tar file

Documentation

The full documentation is at https://django-html-dumper.readthedocs.io.

Quickstart

Install HTML dumper:

pip install django-html-dumper

Add it to your INSTALLED_APPS:

INSTALLED_APPS = (
    ...
    'html_dumper.apps.HtmlDumperConfig',
    ...
)

Features

  • Add a django command dump_html

` python manage.py dump_html [path/to/my/page1 my/page2] (default to ['/', ]) `

This will create a directory HTML_OUTPUT (name can be customized via settings.SITE_OUTPUT_DIRECTORY) which will contain : - the content of the page under the given urls for all available languages - the static folder (copied from the output of collectstatic, beware of all the admin assets…)

Running Tests

Does the code actually work?

source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install tox
(myenv) $ tox

Credits

Tools used in rendering this package:

History

0.1.0 (2017-08-14)

  • First release on PyPI.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-html-dumper-0.2.1.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_html_dumper-0.2.1-py2.py3-none-any.whl (7.0 kB view details)

Uploaded Python 2Python 3

File details

Details for the file django-html-dumper-0.2.1.tar.gz.

File metadata

File hashes

Hashes for django-html-dumper-0.2.1.tar.gz
Algorithm Hash digest
SHA256 5ed7c8342a60ab0aa39fedef2169063da278c23c09211690e7fb23c47c332e28
MD5 a3631e44ac97696d17df9b879ede8b50
BLAKE2b-256 e15db791303933184f2ef9c50223ca34cd29e8a48d14044401a7b444e72b7a2d

See more details on using hashes here.

File details

Details for the file django_html_dumper-0.2.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for django_html_dumper-0.2.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 f694c369242f43ff7e4e1b0d1f8ba33b062a7757334ea392495398fb312af9ed
MD5 485f9d6227833c6a8c03f147df13b39d
BLAKE2b-256 e6e252ccffdbea361faaf21499099791644e9be4dfe05d31d0b1b06cbb13d304

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page