- Add
file.create_local_copy
andfile.create_remote_copy
methods. - Add new
make_public
andpattern
parameters to file.create_remote_copy method. - Add new
store
parameter to file.create_local_copy methods. - Update CDN link to the widget.
- Use wildcard
2.x
to always get the latest patch or minor version of widget version2
. See widget changelog. - Update bundled widget to version
2.10.3
. See widget changelog.
- Support auto storing in upload requests
- Updated widget to version 2.10.0 (see widget changelog).
- Drop support for Python 3.2
- Simplify and reduce test matrix in
.travis.yml
- Fixed issue with missing
ucare_cli
package.
- Added support for version 0.5 of REST API.
- Updated widget to version 2.8.1 (see widget changelog).
- Added the
ucare list_groups
command. - Removed deprecated entities.
NB: There are backward incompatible changes. For detailed information about the upgrade process see update to version 2.0.
- Fixed ZeroDivision error when trying to sync files with no size
- Added support of Django 1.9
- Removed indication of Unicode strings from output of ucare
- Fixed a group representation for ucare create_group command
- Fixed error with ucare sync when trying to processing of not image files
- Added storage operations
- Added request_limit to ucare_cli
- Expanded User-Agent
- Added sync command to ucare_cli
- Autogenerated documentation for ucare_cli
- update widget to 2.5.5 (see widget changelog)
- Default CDN base to https://ucarecdn.com
- Allow changing CDN base via Django settings
- update widget to 2.5.0 (see widget changelog)
- API version was updated up to 0.4.
- update widget to 2.4.0 (see widget changelog)
- update widget to 2.3.1 (see widget changelog)
- update widget to 1.5.5 (see widget changelog)
- improve synchronous upload API
- fix encoding issues with pip3
- update widget to 1.5.4 (see widget changelog)
- add AUTHORS.txt
- add synchronous upload from URL method to File
- UploadcareExceptions are __repr__'ed properly
- update widget to 1.5.3 (see widget changelog)
- fix "source" composition for copy requests
- let configure default throttle retry count via conf.retry_throttled
- handle responses for HEAD and OPTION requests
- update widget to 1.4.6
- 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 pyuploadcare.dj.models.ImageField crop validation
https://ucarecdn.com/
URL was returned to serve widget's assets.
- CDN URL has been changed to
http://www.ucarecdn.com/
. Previous URLhttps://ucarecdn.com/
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'http://httpbin.org/post',
... files={u'file': open('README.rst', 'rb')})
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc5 ...
Widget was updated up to 0.8.1.2.
It was invoking
File.store()
,FileGroup.store()
methods on every model instance saving, e.g.:photo.title = 'new title' photo.save()
Now it happens while saving by form, namely by calling
your_model_form.is_valid()
. There is other thing that can trigger storing -- callingphoto.full_clean()
directly.
- Python 3.2, 3.3 support were added.
- File Group creating was added.
- Methods per API field for File, FileGroup were added.
- Deprecated things were deleted. This version is not backward compatible. For detailed information see https://pyuploadcare.readthedocs.org/en/v0.19/deprecated.html
- Multiupload support was added.
argparse
was added intosetup.py
requirements.- Documentation was added and published on https://pyuploadcare.readthedocs.org
- Widget was updated up to 0.6.9.1.
ImageField
was added. It provides uploading only image files. Moreover, you can activate manual crop, e.g.ImageField(manual_crop='2:3')
.- More appropriate exceptions were added.
- Tests were separated from library and were restructured.
- Widget was updated up to 0.6.7.
- Issue of
FileField
'sblank
,null
attributes was fixed.
- Replace accept header for old api version
- Fix unicode issue on field render
- Add new widget to pyuploadcare.dj
- 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/tests.py
- Replaced upload API
- Replaced File.keep with File.store, File.keep is deprecated
- File.store uses new PUT request
- Added timeouts to File.store, 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
- Added PYUPLOADCARE_UPLOAD_BASE_URL setting
- Added PYUPLOADCARE_WIDGET_URL
- 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__