Metadata-Version: 2.1
Name: wagtail-unsplash
Version: 0.4.0
Summary: Search for Unsplash images and upload to Wagtail
Home-page: https://github.com/jafacakes2011/wagtail-unsplash
Author: Cameron Lamb
Author-email: jafacakes2011@hotmail.co.uk
License: UNKNOWN
Keywords: wagtail,django
Platform: UNKNOWN
Requires-Python: >= 3.6
Description-Content-Type: text/markdown
Requires-Dist: Django (<3.1,>=2.2)
Requires-Dist: wagtail (<2.10,>=2.5)
Requires-Dist: python-unsplash (<1.2,>=1.1.0)

# [Wagtail Unsplash](https://pypi.org/project/wagtail-unsplash/)  [![PyPI](https://img.shields.io/pypi/v/wagtail-unsplash.svg)](https://pypi.org/project/wagtail-unsplash/)

![Screenshot showing wagtail-unsplash search results](https://i.imgur.com/q12TzZL.png)

Search for Unsplash images and upload to the Wagtail image library.

This package uses the [python-unsplash](https://github.com/yakupadakli/python-unsplash) API wrapper:

## Setup

Install using pip:

```sh
pip install wagtail-unsplash
```

After installing the package, add `wagtail_unsplash` to installed apps in your settings file:

```python
# settings.py

INSTALLED_APPS = [
    ...
    'wagtail_unsplash',
    ...
]
```

and add the API credentials: 

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

You can get the needed information by creating an application at https://unsplash.com/developers


