Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

file import via CGI

Project Description

Author Robert Sudwarts

For uploading files via web interface.

Basic scope of the problem

Functionality for:

  • uploading large files using buffered chunks
  • scaling down large images

Package Components

  1. upload.writefile() accepts a FieldStorage instance and writes in buffered chunks to the specified directory.
  2. Image files can be written ‘as is’ or scaled to a specified size and [at the same time] as a thumbnail image of a specified size.
  3. A Thumb class to check for existence of thumbnail/create/delete etc

Change Log

  • v.0.1.5 when scaling image to thumbnail image is given file extension .jpg
  • v.0.1.4 added “Pillow>=2.0.0” as a dependency to setup.py.
    This package is required instead of PIL
  • v.0.1.3 added conditional ‘scale’ to writefile() so that this package can be used for all types of files (not just images)
Release History

Release History

This version
History Node

0.1.5dev

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
cgiFileUpload-0.1.5dev.tar.gz (4.2 kB) Copy SHA256 Checksum SHA256 Source Jul 22, 2013

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS 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