Skip to main content
Help improve PyPI by participating in a 5-minute user interface survey!

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 notifications

This version
History Node

0.0.1

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
signrequest-v0.0.1.tar.gz (4.0 kB) Copy SHA256 hash SHA256 Source None Sep 29, 2016

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page