$ pip install pyuploadcare-wtforms
Package provides several fields for WTForms which made integration with Uploadcare little more easily:
In common case for usage you need:
# your_app/forms.py from wtforms import Form from pyuploadcare_wtforms import ImageField class YourSuperForm(Form): image = ImageField(manual_crop='200x200') ...
# your_project_config.py from pyuploadcare import conf conf.pub_key = 'demopublickey' conf.secret = 'demoprivatekey'
<script src="https://ucarecdn.com/widget/2.5.5/uploadcare/uploadcare.full.min.js" charset="utf-8"></script>
Look at that simplest example for getting quick start. You can easily install it locally by:
$ make run_example
$ git clone email@example.com:your_name_here/pyuploadcare-wtforms.git
$ mkvirtualenv pyuploadcare-wtforms $ cd pyuploadcare-wtforms/ $ python setup.py develop
$ git checkout -b name-of-your-bugfix-or-feature Now you can make your changes locally.
$ pip install tox $ tox
$ git add . $ git commit -m "Your detailed description of your changes." $ git push origin name-of-your-bugfix-or-feature
TODO: Figure out how to actually get changelog content.
Changelog content for this version goes here.