Skip to main content

Wagtail Makeup

Project description

Wagtail Makeup

tests codecov

Tired of having no images locally when you need them? Don't want to fill your computer up with images? Use Wagtail Makeup ;)

Installation

pip install wagtailmakeup

Configuration

Sign up for an Unsplash api key and add this to your settings:

# settings.py
WAGTAIL_UNSPLASH = {
    "CLIENT_ID": "",
    "CLIENT_SECRET": ""
}

The API is rate limited to 50 request/hour... you can apply for a higher rate limit.

Using

You probably don't want this in your production settings, so add the following to you local.py settings:

INSTALLED_APPS.append('wagtailmakeup')

Wagtail Makeup works by providing a new management command:

python manage.py make_up [search query] [amount of images]

So you want to replace all your broken images on your site with dogs (who wouldn't) you can do it like this:

python manage.py make_up dogs 10

Note: the amount value is the number of images to download, the higher this is, the more variance you will get.

:cool:

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

wagtailmakeup-0.0.2.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

wagtailmakeup-0.0.2-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file wagtailmakeup-0.0.2.tar.gz.

File metadata

  • Download URL: wagtailmakeup-0.0.2.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.0 requests/2.20.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.6

File hashes

Hashes for wagtailmakeup-0.0.2.tar.gz
Algorithm Hash digest
SHA256 788ff3f7c9480424b172868867bfd44cf2a1a137a9dac15529bc2129f8aee4ef
MD5 644f5a6c1ba2fe5dca5b79960d58fba5
BLAKE2b-256 a054dd5aef04f77a76fa31cb3895c8eb8b9f19fae22b901de40b3783dd900a4b

See more details on using hashes here.

Provenance

File details

Details for the file wagtailmakeup-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: wagtailmakeup-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 6.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.0 requests/2.20.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.6

File hashes

Hashes for wagtailmakeup-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8a4c72b9848747bb8bd6fdfd5edbcd46b92294c9c5eb9db6a5c0de8f4b747b4a
MD5 bbf08a02f2ac9af3b4bb1400967a3887
BLAKE2b-256 d0a80d900cfd5a50a318282e80675552aa8359aa85dfccc85c2657b037abbc38

See more details on using hashes here.

Provenance

Supported by

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