# Wagtail Makeup
![tests](https://github.com/kevinhowbrook/wagtail-makeup/workflows/Tests/badge.svg)
[![codecov](https://codecov.io/gh/kevinhowbrook/wagtail-makeup/branch/main/graph/badge.svg?token=A4H7PFEL9J)](https://codecov.io/gh/kevinhowbrook/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:
```bash
pip install python-unsplash wagtailmakeup
```
## Configuration
Sign up for an Unsplash api key and add this to your settings:
```python
# 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](https://help.unsplash.com/en/articles/3887917-when-should-i-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:
```python
INSTALLED_APPS.append('wagtailmakeup')
```
Wagtail Makeup works by providing a new management command:
```bash
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
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](docs/CONTRIBUTING.md) for more details.
Raw data
{
"_id": null,
"home_page": "https://github.com/kevinhowbrook/wagtail-makeup",
"name": "wagtailmakeup",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": "",
"keywords": "wagtail,django",
"author": "Kevin Howbrook",
"author_email": "",
"download_url": "https://files.pythonhosted.org/packages/2c/36/8c9cb7b6e91777c178914924b26c3299cfc7d18c724b5a2e361175ad6674/wagtailmakeup-1.1.0.tar.gz",
"platform": null,
"description": "# Wagtail Makeup\n\n![tests](https://github.com/kevinhowbrook/wagtail-makeup/workflows/Tests/badge.svg)\n[![codecov](https://codecov.io/gh/kevinhowbrook/wagtail-makeup/branch/main/graph/badge.svg?token=A4H7PFEL9J)](https://codecov.io/gh/kevinhowbrook/wagtail-makeup)\n\nTired of having no images locally when you need them? Don't want to fill your computer up with images?\nUse Wagtail Makeup ;)\n\n## Installation\n\nWagtail makeup depends on python unsplash:\n\n```bash\npip install python-unsplash wagtailmakeup\n```\n\n## Configuration\n\nSign up for an Unsplash api key and add this to your settings:\n\n```python\n# settings.py\nWAGTAIL_UNSPLASH = {\n \"CLIENT_ID\": \"\",\n \"CLIENT_SECRET\": \"\"\n}\n```\n\nThe API is rate limited to 50 request/hour... you can apply for a [higher rate limit](https://help.unsplash.com/en/articles/3887917-when-should-i-apply-for-a-higher-rate-limit).\n\n## Using\n\nYou probably don't want this in your production settings, so add the following to you local.py settings:\n\n```python\nINSTALLED_APPS.append('wagtailmakeup')\n```\n\nWagtail Makeup works by providing a new management command:\n\n```bash\npython manage.py make_up [search query] [amount of images]\n```\n\nSo you want to replace all your broken images on your site with dogs (who wouldn't)\nyou can do it like this:\n\n```python\npython manage.py make_up dogs 10\n```\n\nNote: the amount value is the number of images to download, the higher this is, the more variance you will get \ud83d\ude0e\n\n## Contributing\n\nContributions are welcome, please see our [contributing guide](docs/CONTRIBUTING.md) for more details.\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Wagtail Makeup",
"version": "1.1.0",
"project_urls": {
"Homepage": "https://github.com/kevinhowbrook/wagtail-makeup"
},
"split_keywords": [
"wagtail",
"django"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "d7342602b981f442a0c722cb05564aa4d93b3efab76c07c626dc8cc25fe16030",
"md5": "0b55973691016798894c4e65ce633ac7",
"sha256": "6e4eed51a83d51d6a79aedbe2fa1ccfc5546ca24dde67ed4010b36f6e90d5a95"
},
"downloads": -1,
"filename": "wagtailmakeup-1.1.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "0b55973691016798894c4e65ce633ac7",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 6892,
"upload_time": "2024-03-11T10:19:40",
"upload_time_iso_8601": "2024-03-11T10:19:40.549775Z",
"url": "https://files.pythonhosted.org/packages/d7/34/2602b981f442a0c722cb05564aa4d93b3efab76c07c626dc8cc25fe16030/wagtailmakeup-1.1.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "2c368c9cb7b6e91777c178914924b26c3299cfc7d18c724b5a2e361175ad6674",
"md5": "ca153aeb765271d66e095c500fbfdfc9",
"sha256": "24e6c374c3021676520dd1eac1e85d2354b77454192ada102cd1a9f6635370cc"
},
"downloads": -1,
"filename": "wagtailmakeup-1.1.0.tar.gz",
"has_sig": false,
"md5_digest": "ca153aeb765271d66e095c500fbfdfc9",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 6430,
"upload_time": "2024-03-11T10:19:42",
"upload_time_iso_8601": "2024-03-11T10:19:42.178891Z",
"url": "https://files.pythonhosted.org/packages/2c/36/8c9cb7b6e91777c178914924b26c3299cfc7d18c724b5a2e361175ad6674/wagtailmakeup-1.1.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-03-11 10:19:42",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "kevinhowbrook",
"github_project": "wagtail-makeup",
"travis_ci": false,
"coveralls": true,
"github_actions": true,
"tox": true,
"lcname": "wagtailmakeup"
}