Installation¶
This part of the documentation covers the installation of PyUploadcare.
Pip¶
Installing pyuploadcare is simple with pip:
$ pip install pyuploadcare
or, if you’re into vintage:
$ easy_install pyuploadcare
Get the Code¶
PyUploadcare is developed on GitHub. You can clone the public repository:
$ git clone git://github.com/uploadcare/pyuploadcare.git
After that you can install it:
$ python setup.py install
Update to version 2.0¶
Some caveats about migration process from version 1.x to 2.x.
A version 2.0 contains the next breaking changes:
- Now, you should import Django models’ fields (e.g
ImageField
) directly from thepyuploadcare.dj.models
module. - Changed initializing for the
FileList
andGroupList
classes. Thesince
anduntil
parameters have been removed. Use combination ofstarting_point
andordering
instead. - The
ucare list
CLI command has been renamed toucare list_files
. And, according to the previous change, thesince
anduntil
parameters have been removed. Thestarting_point
and ordering parameters added.
These last two changes are necessary for working with version 0.5 of REST API. So that means you can’t use these classes correctly with versions prior 0.5 (but that should not be an issue :)
Also, note that Django configuration option UPLOADCARE['widget_variant']
now is deprecated and it will be removed in next major release. Use
UPLOADCARE['widget_build']
instead.