{ "info": { "author": "Uploadcare LLC", "author_email": "hello@uploadcare.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4" ], "description": "Pyuploadcare-wtforms\n=======================\n\n.. image:: https://img.shields.io/pypi/v/pyuploadcare-wtforms.svg\n :target: https://pypi.python.org/pypi/pyuploadcare-wtforms\n :alt: Latest PyPI version\n\n.. image:: https://travis-ci.org/uploadcare/pyuploadcare-wtforms.svg?branch=master\n :target: https://travis-ci.org/uploadcare/pyuploadcare-wtforms\n :alt: Build status\n\n\nInstallation\n------------\n\n.. code:: bash\n\n $ pip install pyuploadcare-wtforms\n\nUsage\n-----\n\nPackage provides several fields for ``WTForms`` which made integration with Uploadcare little more easily:\n\n* ``FileWidget``\n* ``FileField``\n* ``ImageField`` - you can set manual cropping for uploaded images\n* ``FileGroupField``\n\nIn common case for usage you need:\n\n* Use one of these fields in your form like this:\n\n.. code:: python\n\n # your_app/forms.py\n\n from wtforms import Form\n from pyuploadcare_wtforms import ImageField\n\n class YourSuperForm(Form):\n image = ImageField(manual_crop='200x200')\n ...\n\n* Set up keys:\n\n.. code:: python\n\n # your_project_config.py\n from pyuploadcare import conf\n\n conf.pub_key = 'demopublickey'\n conf.secret = 'demoprivatekey'\n\n\n* Put script to `your templates `_:\n\n.. code:: html\n\n \n\nLook at `that simplest example `_ for getting quick start. You can easily install it locally by:\n\n.. code:: bash\n\n $ make run_example\n\nContributing\n------------\n\n1. Fork the ``pyuploadcare-wtforms`` repo on GitHub.\n2. Clone your fork locally:\n\n.. code:: bash\n\n $ git clone git@github.com:your_name_here/pyuploadcare-wtforms.git\n\n3. Install your local copy into a virtualenv. Assuming you have ``virtualenvwrapper`` installed, this is how you set up your fork for local development:\n\n.. code:: bash\n\n $ mkvirtualenv pyuploadcare-wtforms\n $ cd pyuploadcare-wtforms/\n $ python setup.py develop\n\n4. Create a branch for local development:\n\n.. code:: bash\n\n $ git checkout -b name-of-your-bugfix-or-feature\n\n Now you can make your changes locally.\n\n5. When you're done making changes, check that your changes pass the tests, including testing other Python versions with tox:\n\n.. code:: bash\n\n $ pip install tox\n $ tox\n\n6. Commit your changes and push your branch to GitHub:\n\n.. code:: bash\n\n $ git add .\n $ git commit -m \"Your detailed description of your changes.\"\n $ git push origin name-of-your-bugfix-or-feature\n\n7. Submit a pull request through the GitHub website.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/uploadcare/pyuploadcare-wtforms", "keywords": "pyuploadcare wtforms", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "pyuploadcare-wtforms", "package_url": "https://pypi.org/project/pyuploadcare-wtforms/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/pyuploadcare-wtforms/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/uploadcare/pyuploadcare-wtforms" }, "release_url": "https://pypi.org/project/pyuploadcare-wtforms/0.5/", "requires_dist": null, "requires_python": null, "summary": "Custom fields for working with Uploadcare service.", "version": "0.5" }, "last_serial": 1812660, "releases": { "0.5": [ { "comment_text": "", "digests": { "md5": "4a8bc5893e876f5e02bb05288a527883", "sha256": "fcff4dad056e2f86d92ba4fc50276b554c6f635306fda9368777abbadcae84aa" }, "downloads": -1, "filename": "pyuploadcare-wtforms-0.5.tar.gz", "has_sig": false, "md5_digest": "4a8bc5893e876f5e02bb05288a527883", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3411, "upload_time": "2015-11-12T07:36:57", "url": "https://files.pythonhosted.org/packages/8c/26/8c19a982807498f0154b08efcff386dfe262b893459f5edb2085e2afb98f/pyuploadcare-wtforms-0.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "4a8bc5893e876f5e02bb05288a527883", "sha256": "fcff4dad056e2f86d92ba4fc50276b554c6f635306fda9368777abbadcae84aa" }, "downloads": -1, "filename": "pyuploadcare-wtforms-0.5.tar.gz", "has_sig": false, "md5_digest": "4a8bc5893e876f5e02bb05288a527883", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3411, "upload_time": "2015-11-12T07:36:57", "url": "https://files.pythonhosted.org/packages/8c/26/8c19a982807498f0154b08efcff386dfe262b893459f5edb2085e2afb98f/pyuploadcare-wtforms-0.5.tar.gz" } ] }