Django-remote-image
=====
Django-remote-image is a Django app that adds a new form field for images.
The default widget is a text input, that accepts a URL of a image.
The image is downloaded and can be passed to a ``ImageField`` in a model. Pillow needs to be installed.
It is possible to whitelist and blacklist file extensions.
Examples are shown below.
Quick start
-----------
$ pip install django-remote-image
Using
-----------
Using the field in a form:
.. code:: python
import remote_image import RemoteImageField
class ExampleForm(forms.Form):
image = RemoteImageField()
Whitelisting file extensions (only the ones in the list will be permitted):
.. code:: python
import remote_image import RemoteImageField
class ExampleForm(forms.Form):
image = RemoteImageField(ext_whitelist=['png', 'jpg'])
Blacklisting file extensions (the ones in the list will be blocked):
.. code:: python
import remote_image import RemoteImageField
class ExampleForm(forms.Form):
image = RemoteImageField(ext_blacklist=['png', 'jpg'])
Metadata
Release files for django-remote-image 0.1
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-remote-image-0.1.tar.gz | 3.9 kB | Without provenance | Details for django-remote-image-0.1.tar.gz |
Release files / django-remote-image-0.1.tar.gz
| Download URL | django-remote-image-0.1.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
db673da84a520683df555eef4ffc813f07b97a68a0ecf13baf0bdd5eefadbcee
|
|
BLAKE2b-256 checksum How to use checksums |
eb6dc91f807d6c89bb1c42e9ee6ffcd1b8ca62333eb1144cc57f34df420111d6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django-remote-image 0.1
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.