Skip to content

Latest commit

 

History

History

basic

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Cloudinary Python sample project

This sample is a synchronous script that shows the upload process from local file, remote URL, with different transformations and options.

Installing and running in 5 simple steps

  1. Install Python

  2. Install Cloudinary python egg

  3. Get a cloudinary account

  4. 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
    
  5. 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!