skip to navigation
skip to content

pyuploadcare 1.2.9

Python library for

Latest Version: 1.3.3

The most important thing for us at Uploadcare is to make file uploading on the web really easy. Everyone is used to the routine work, related to allowing users upload their userpics or attach resumes: from installing image processing libraries to creating folder with right permissions to ensuring the server never goes down or out of space to enabling CDN. Feature like ability to simply use a picture from Facebook or manual cropping are much more burdensome, hence rare. Uploadcare’s goal is to change the status quo.

This library consists of an API interface for Uploadcare and a couple of Django goodies.

A simple Uploadcare ImageField can be added to an existing Django project in just a couple of simple steps. As a result, your users are going to be able to see the progress of the upload, choose files from Google Drive or Instagram, and edit form while files are uploading asynchornously.

from django.db import models

from import ImageField

class Candidate(models.Model):

    photo = ImageField(blank=True, manual_crop="")


  • Django widget with useful manual crop and multiupload;
  • ucare console utility;
  • hosted assets (Kudos to Sławek Ehlert!).


To install it, just run:

$ pip install pyuploadcare

or, if you’re into vintage:

$ easy_install pyuploadcare


Besides the Travis CI we use tox. In order to run tests just:

$ pip install tox
$ tox



  • compatibility with Django 1.7


  • update widget to 1.4.0


  • handle rest api throttling


  • update widget to 1.2.3
  • fixed compatibility with six library version 1.7.0 and above


  • fixed setup script


  • update widget to 1.0.1
  • fixed logging when response contains unicode chars


  • update widget to 0.17.1


  • add File.copy()
  • add data attribute to UploadcareException
  • update widget to 0.13.2
  • update crop validation

1.2.1 URL was returned to serve widget’s assets.


  • CDN URL has been changed to Previous URL is depricated.
  • Widget was updated up to 0.10.1.


  • Widget was updated up to 0.10.
  • Default API version was updated up to 0.3.
  • Django settings were merged into UPLOADCARE dictionary.
  • Performance was improved by reusing requests’ session.


UnicodeDecodeError was fixed. This bug appears when request’s method param is unicode and requests.request() got files argument, e.g.:

>>> requests.request(u'post', u'',
...                  files={u'file': open('README.rst', 'rb')})
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc5 ...


  • Widget was updated up to

  • It was invoking, methods on every model instance saving, e.g.:

    photo.title = 'new title'

    Now it happens while saving by form, namely by calling your_model_form.is_valid(). There is other thing that can trigger storing – calling photo.full_clean() directly.




  • Widget was updated up to


  • ImageField was added. It provides uploading only image files. Moreover, you can activate manual crop, e.g. ImageField(manual_crop='2:3').
  • More apropriate exceptions were added.
  • Tests were separated from library and were restructured.
  • Widget was updated up to 0.6.7.
  • Issue of FileField’s blank, null attributes was fixed.


  • Replace accept header for old api version


  • Fix unicode issue on field render


  • Add new widget to
  • Remove old widget
  • Use https for all requests


  • Add cdn_base to Ucare.__init__
  • Get rid of api v.0.1 support
  • Add File.ensure_on_s3 and File.ensure_on_cdn helpers
  • Add File properties is_on_s3, is_removed, is_stored
  • Fix url construction
  • Add and correct waiting to upload and upload_from_url


  • Add console log handler to ucare
  • Add wait argument to ucare store and delete commands
  • Fix ucare arg handling


  • Add bunch of arguments to ucare upload and upload_via_url commands
  • Fix UploadedFile.wait()


  • Fix file storing for old API
  • Replaced Authentication header with Authorization
  • Log warnings found in HTTP headers
  • Replace old resizer with new CDN
  • Add verify_api_ssl, verify_upload_ssl options
  • Add custom HTTP headers to API and upload API requests


  • Added __version__
  • Added ‘User-Agent’ request header
  • Added ‘Accept’ request header
  • Added ucare config file parsing
  • Added pyuploadcare/
  • Replaced upload API
  • Replaced File.keep with, File.keep is deprecated
  • uses new PUT request
  • Added timeouts to, File.delete
  • Added upload and upload_from_url to ucare
  • Added tests during setup
  • Replaced httplib with requests, support https (certificates for api requests are verified)
  • Added api_version arg to UploadCare, default is 0.2


  • Added ucare cli utility
  • Updated widget assets to version 0.0.1
  • Made properties out of following pyuploadcare.file.File’s methods:
    • api_uri()
    • url()
    • filename()
  • Changed pyuploadcare.UploadCareException.__init__
File Type Py Version Uploaded on Size
pyuploadcare-1.2.9.tar.gz (md5) Source 2014-07-31 106KB
  • Downloads (All Versions):
  • 66 downloads in the last day
  • 784 downloads in the last week
  • 4273 downloads in the last month