Skip to main content

Python library for Uploadcare.com

Project description

https://travis-ci.org/uploadcare/pyuploadcare.png?branch=master

The most important thing for us at Uploadcare is to make file uploading on the web really easy. Everyone is used to the routine work, related to allowing users upload their userpics or attach resumes: from installing image processing libraries to creating folder with right permissions to ensuring the server never goes down or out of space to enabling CDN. Feature like ability to simply use a picture from Facebook or manual cropping are much more burdensome, hence rare. Uploadcare’s goal is to change the status quo.

This library consists of an API interface for Uploadcare and a couple of Django goodies.

A simple Uploadcare ImageField can be added to an existing Django project in just a couple of simple steps. As a result, your users are going to be able to see the progress of the upload, choose files from Google Drive or Instagram, and edit form while files are uploading asynchornously.

from django.db import models

from pyuploadcare.dj import ImageField


class Candidate(models.Model):

    photo = ImageField(blank=True, manual_crop="")
https://ucarecdn.com/93b254a3-8c7a-4533-8c01-a946449196cb/-/preview/manual_crop.png

Features

  • Django widget with useful manual crop and multiupload;

  • ucare console utility;

  • hosted assets (Kudos to Sławek Ehlert!).

Installation

To install it, just run:

$ pip install pyuploadcare

or, if you’re into vintage:

$ easy_install pyuploadcare

Testing

Besides the Travis CI we use tox. In order to run tests just:

$ pip install tox
$ tox

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyuploadcare-0.19.tar.gz (149.4 kB view details)

Uploaded Source

File details

Details for the file pyuploadcare-0.19.tar.gz.

File metadata

  • Download URL: pyuploadcare-0.19.tar.gz
  • Upload date:
  • Size: 149.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pyuploadcare-0.19.tar.gz
Algorithm Hash digest
SHA256 decb805f8bd35fb9fa858756fb2c9abb76500e6add527fed4ae9c865da41bafd
MD5 509efb0401ec45680a3c55413121a440
BLAKE2b-256 27c088d032557bcd3883426c37290a01726304eec980737e3587f147d392c4f2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page