This sample is a synchronous script that shows the upload process from local file, remote URL, with different transformations and options.
-
Install Python
-
Install Cloudinary python egg
-
Setup the
CLOUDINARY_URL
environment variable by copying it from the Management Console:Using zsh/bash/sh
$ export CLOUDINARY_URL=cloudinary://API-Key:API-Secret@Cloud-name
Using tcsh/csh
$ setenv CLOUDINARY_URL cloudinary://API-Key:API-Secret@Cloud-name
Using Windows command prompt/PowerShell
> set CLOUDINARY_URL=cloudinary://API-Key:API-Secret@Cloud-name
-
Run the script:
$ python basic.py
In order to delete the uploaded images using Cloudinary's Admin API, run the script:
$ python basic.py cleanup
Good luck!