========= django-picsum
django-picsum is a library which helps you in rendering placeholder or actual images
in your Djangp Template without much of hassle
.. image:: https://coveralls.io/repos/github/zostera/django-fa/badge.svg?branch=master :target: https://coveralls.io/github/zostera/django-fa?branch=master
.. image:: https://travis-ci.org/zostera/django-fa.svg?branch=master :target: https://travis-ci.org/zostera/django-fa
Installation
-
Install using pip:
pip install django-picsum -
Add to INSTALLED_APPS in your
settings.py:'image_wrapper',
Example template
.. code:: Django
{% load image_wrapper %}
# Loads the tag
{% pic_rand height=300 width=400 %}
# A random image with a height of 300 and width of 400
{% pic_rand width=300 %}
# A random image with a height and width of 300 (300* 300 ) image
{% pix_image q="hi" min_width=100 %}
# A image from Pixabay
{% pic_rand width=500 class="avatar__img" %}
# You can pass class and id to the image to control it in your CSS it is completely optional
To use images from Pixabay declare your API Key in settings.py INSTALLED_APPS
PIXABAY_KEY =<YOUR KEY>
Requirements
Django >= 2.0 and a matching Python version
Bugs and requests
If you have found a bug or if you have a request for additional functionality, please use the issue tracker on GitHub.
https://github.com/VarthanV/django-picsum/issues
License
You can use this under the MIT License. See LICENSE <LICENSE>_ file for details.
Author
Developed and maintained by Vishnu Varthan Rao <https://zostera.nl/>_.
Metadata
Release files for django-picsum 1.2
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 |
|---|---|---|---|---|
| django-picsum-1.2.tar.gz | 5.3 kB | Without provenance | Details for django-picsum-1.2.tar.gz |
Release files / django-picsum-1.2.tar.gz
| Download URL | django-picsum-1.2.tar.gz |
|---|---|
| Size | 5.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
58c889cf91085d205852c3d23dfa41d92e01491de4a59bc0b5020e999184308a
|
|
BLAKE2b-256 checksum How to use checksums |
6cdcfdc04dad5307bddbf7922ab4038233f98abca565584a7914cf1d208c47f7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.8.1
|
Security for django-picsum 1.2
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.