Wagtail Makeup
Tired of having no images locally when you need them? Don't want to fill your computer up with images? Use Wagtail Makeup ;)
Installation
Wagtail makeup depends on python unsplash:
pip install python-unsplash 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 😎
Contributing
Contributions are welcome, please see our contributing guide for more details.
Metadata
Release files for wagtailmakeup 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| wagtailmakeup-1.1.0.tar.gz | 6.4 kB | Without provenance | Details for wagtailmakeup-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| wagtailmakeup-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for wagtailmakeup-1.1.0-py3-none-any.whl |
Total release size: 13.3 kB
Release files / wagtailmakeup-1.1.0.tar.gz
| Download URL | wagtailmakeup-1.1.0.tar.gz |
|---|---|
| Size | 6.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
24e6c374c3021676520dd1eac1e85d2354b77454192ada102cd1a9f6635370cc
|
|
BLAKE2b-256 checksum How to use checksums |
2c368c9cb7b6e91777c178914924b26c3299cfc7d18c724b5a2e361175ad6674
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.2
|
Release files / wagtailmakeup-1.1.0-py3-none-any.whl
| Download URL | wagtailmakeup-1.1.0-py3-none-any.whl |
|---|---|
| Size | 6.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6e4eed51a83d51d6a79aedbe2fa1ccfc5546ca24dde67ed4010b36f6e90d5a95
|
|
BLAKE2b-256 checksum How to use checksums |
d7342602b981f442a0c722cb05564aa4d93b3efab76c07c626dc8cc25fe16030
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.12.2
|
Security for wagtailmakeup 1.1.0
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.