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'])
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file signrequest-v0.0.1.tar.gz.
File metadata
- Download URL: signrequest-v0.0.1.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
09715e494ef877bbcc499cf5731d818427e76eb9b1de7cfdde5c495ef21eea6d
|
|
| MD5 |
fd504d16cd3051c3bcd603f09f3a4360
|
|
| BLAKE2b-256 |
c7d40f5aa9f6c0fdb2502b2f7e0ad2c03ada422516d139edfa7772e858820f2e
|