Skip to main content

Use unsplash.com images in your Wagtail site

Project description

Wagtail Unsplash PyPI

Release Build status codecov Commit activity License

Screenshot showing wagtail-unsplash search results

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

This package uses the python-unsplash API wrapper

Getting started

Install using pip:

pip install wagtail-unsplashed

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

# settings.py

INSTALLED_APPS = [
    ...
    'wagtail_unsplashed',
    ...
]

and add the API credentials:

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

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

Getting started (development)

Pull the repo

git clone git@github.com:mintyPT/wagtail-unsplash.git

Set Up Your Development Environment

Then, install the environment and the pre-commit hooks with

make install

This will also generate your uv.lock file

Run the pre-commit hooks

Initially, the CI/CD pipeline might be failing due to formatting issues. To resolve those run:

uv run pre-commit run -a

After pushing

You are now ready to start development on your project! The CI/CD pipeline will be triggered when you open a pull request, merge to main, or when you create a new release.

To finalize the set-up for publishing to PyPI, see here. For activating the automatic documentation with MkDocs, see here. To enable the code coverage reports, see here.

Releasing a new version

  • Create an API Token on PyPI.
  • Add the API Token to your projects secrets with the name PYPI_TOKEN by visiting this page.
  • Create a new release on Github.
  • Create a new tag in the form *.*.*.

For more details, see here.


Repository initiated with fpgmaas/cookiecutter-uv.

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

wagtail_unsplashed-1.0.9.tar.gz (8.5 kB view details)

Uploaded Source

Built Distribution

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

wagtail_unsplashed-1.0.9-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

Details for the file wagtail_unsplashed-1.0.9.tar.gz.

File metadata

  • Download URL: wagtail_unsplashed-1.0.9.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.7

File hashes

Hashes for wagtail_unsplashed-1.0.9.tar.gz
Algorithm Hash digest
SHA256 e4d18f038e315af3270570817de2f39ebfa3c05c3bff3676107d67b298d6e53c
MD5 d121119b0f3906749fdd38d2c3bdf55c
BLAKE2b-256 4b2f7eaf190f5116119b231c8901502471a261159ce38bdc5b4981b4966d62b8

See more details on using hashes here.

File details

Details for the file wagtail_unsplashed-1.0.9-py3-none-any.whl.

File metadata

File hashes

Hashes for wagtail_unsplashed-1.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 3c606e13d4d70c826e5a7259e65f06ec8a9b153a84b79f6954a7ae190bef89ec
MD5 2c2e1084b2a108c1bac83d56fbaa6c2b
BLAKE2b-256 79840bbab3a5bd4c9fe93973f7b9b8ef9e8d0b1b86c3e621d53a9148296d863f

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