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

Signature Pad is a nice tool that allows users to provide a drawn signature. Because of the flakiness of some browsers, it’s probably recommend to generate an actual image of the signature on the server. And that’s what signapadpy does with a little help of Pillow (or PIL).

First install it:

pip install signapadpy

Next, import what you need (padding is optional):

from signapadpy import create_image, Padding

Then load the lines of the signature you want to convert into an image:

lines = load_signature_pad_output(from_something)

And create the image:

image = create_image(lines)

The image is an instance of PIL’s (or Pillow’s) Image, so you can choose to display it:

image.show()

Or save it:

image.save('signature.png')

If you’d like to render the image with Django, you could do it like this:

from django.http import HttpResponse
from django.shortcuts import get_object_or_404

from signapadpy import create_image


def view_signature(request, pk):
    # Django view, assuming a Sigature model with a lines attribute
    signature = get_object_or_404(Signature, pk=pk)
    return signature_to_response(signature.lines)

def signature_to_response(lines):
    image = create_image(lines)
    response = HttpResponse(mimetype='image/png')
    image.save(response, 'PNG')
    return response
Release History

Release History

0.0.2

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

0.0.1

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
signapadpy-0.0.2-py2.py3-none-any.whl (6.5 kB) Copy SHA256 Checksum SHA256 2.7 Wheel Feb 22, 2015
signapadpy-0.0.2.tar.gz (4.4 kB) Copy SHA256 Checksum SHA256 Source Feb 22, 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