Use unsplash.com images in your Wagtail site
Project description
Wagtail Unsplash 
Search for Unsplash images and upload to the Wagtail image library.
This package uses the python-unsplash API wrapper
- Github repository: https://github.com/mintyPT/wagtail-unsplash/
- Documentation https://mintyPT.github.io/wagtail-unsplash/
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_TOKENby 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file wagtail_unsplashed-1.0.7.tar.gz.
File metadata
- Download URL: wagtail_unsplashed-1.0.7.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a83c808cf57e8df59de292e270f60f59dbe94787128a33491bf4bf36518e1888
|
|
| MD5 |
e7c94415a018bcb1061c012900b35c58
|
|
| BLAKE2b-256 |
f6880a70cf5bbd467b6a7f4d35b4cb671ab3a1c0960964c89d39a77f2dab58d8
|
File details
Details for the file wagtail_unsplashed-1.0.7-py3-none-any.whl.
File metadata
- Download URL: wagtail_unsplashed-1.0.7-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1e7faccc2c330880f0f1539b494a7482189dcdc4c6f7e740fe64a99f054ecb4d
|
|
| MD5 |
ea34105a43838f9b24742450e97fc7d6
|
|
| BLAKE2b-256 |
b7ae52dac1cb794bbf7a3b7f73540846b36d8206b18124154048cdb61cac8b54
|