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!

Unofficial client for SignRequest API

Project Description

Unofficial python client for SignRequest’s API.

Currently only supports two features I needed for a specific proof of concept:

  • Create document from base64 encoded file content
  • Sending signature requests for a document

If I somehow continue using this I will include tests and other features.

Features

Create document from base64 encoded document content:

import base64

from signrequest import SignRequest

sr = SignRequest('API_KEY')

with open('/tmp/pdf-sample.pdf', 'rb') as file:
    file_encoded_string = base64.b64encode(file.read())

doc = sr.create_document(file=file_encoded_string,
                         document_id='pdf_sample',
                         document_name='pdf-sample.pdf')

Send signature request for the document created in step one:

sr.send_sign_request(from_email='john@johnssohn.com',
                     message='Please sign this thing.',
                     signers='james@jamessohn.com') # Can also be an array of emails

You can also send a document without creating it first if you got an URL, for that specify it as argument when calling method for sending a sign request:

from signrequest import SignRequest

document = 'https://signrequest.com/api/v1/documents/c27f3e0b-616a-4a74-9182-c00d4e3aa16a/'
sr = SignRequest('API_KEY').send_sign_request(document=document,
                                              from_email='john@johnssohn.com',
                                              message='Please sign this thing.',
                                              signers=['a@eiou.com', 'z@yz.com'])
Release History

Release History

This version
History Node

0.0.1

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
signrequest-v0.0.1.tar.gz (4.0 kB) Copy SHA256 Checksum SHA256 Source Sep 29, 2016

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