This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

Installation

$ pip install pyuploadcare-wtforms

Usage

Package provides several fields for WTForms which made integration with Uploadcare little more easily:

  • FileWidget
  • FileField
  • ImageField - you can set manual cropping for uploaded images
  • FileGroupField

In common case for usage you need:

  • Use one of these fields in your form like this:
# your_app/forms.py

from wtforms import Form
from pyuploadcare_wtforms import ImageField

class YourSuperForm(Form):
    image = ImageField(manual_crop='200x200')
    ...
  • Set up keys:
# 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

Contributing

  1. Fork the pyuploadcare-wtforms repo on GitHub.
  2. Clone your fork locally:
$ git clone git@github.com:your_name_here/pyuploadcare-wtforms.git
  1. Install your local copy into a virtualenv. Assuming you have virtualenvwrapper installed, this is how you set up your fork for local development:
$ mkvirtualenv pyuploadcare-wtforms
$ cd pyuploadcare-wtforms/
$ python setup.py develop
  1. Create a branch for local development:
 $ git checkout -b name-of-your-bugfix-or-feature

Now you can make your changes locally.
  1. When you’re done making changes, check that your changes pass the tests, including testing other Python versions with tox:
$ pip install tox
$ tox
  1. Commit your changes and push your branch to GitHub:
$ git add .
$ git commit -m "Your detailed description of your changes."
$ git push origin name-of-your-bugfix-or-feature
  1. Submit a pull request through the GitHub website.
Release History

Release History

0.5

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
pyuploadcare-wtforms-0.5.tar.gz (3.4 kB) Copy SHA256 Checksum SHA256 Source Nov 12, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting