BoldSign API
Project description
boldsign
Easily integrate BoldSign's e-signature features into your Python applications. This package simplifies sending documents for signature, embedding signing ceremonies, tracking document status, downloading signed documents, and managing e-signature workflows.
Prerequisites
- Python 3.7+
- Free developer account
Documentation
Installation & Usage
You can install this package by using the pip tool:
pip install boldsign
(You may need to run pip with root permission: sudo pip install boldsign)
Then import the package:
import boldsign
Dependencies
This package requires the following dependencies to function properly. They will be installed automatically when you install the package:
- urllib3<2.1.0,>=1.25.3
- python-dateutil
- pydantic>=2
- typing-extensions>=4.7.1
Getting Started
Please follow the installation procedure and then run the following:
import boldsign
from boldsign.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.boldsign.com
# See configuration.py for a list of all supported configuration parameters.
configuration = boldsign.Configuration(
host = "https://api.boldsign.com",
api_key = "***your_api_key***"
)
# Configure with access_token generated using OAuth.
# configuration = boldsign.Configuration(
# host = "https://api.boldsign.com",
# access_token = "***your_access_token***"
# )
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Enter a context with an instance of the API client
with boldsign.ApiClient(configuration) as api_client:
# Create an instance of the DocumentApi class
api_instance = boldsign.DocumentApi(api_client)
# Define the signature field to be added to the document
signatureField = boldsign.FormField(
id="sign",
fieldType="Signature", # Field type is Signature
pageNumber=1, # Specify the page number
bounds=boldsign.Rectangle(x=100, y=100, width=100, height=50), # Position and size of the signature field
isRequired=True, # Mark this field as required
font="Helvetica" # Specify the font
)
# Define the signer with a name and email address
signer = boldsign.DocumentSigner(
name="David", # Name of the signer
emailAddress="david@example.com", # Signer's email address
signerType="Signer", # Specify the signer type
formFields=[signatureField] # Assign the signature field to the signer
)
# Prepare the request body for sending the document for signature
send_for_sign = boldsign.SendForSign(
title="Agreement", # Title of the document
signers=[signer], # List of signers
files=["/documents/agreement.pdf"] # Path to the document file to be signed
)
try:
# Send the document for signature and capture the response
api_response = api_instance.send_document(send_for_sign=send_for_sign)
print("The response from DocumentApi->send_document:\n")
pprint(api_response)
except Exception as e:
# Print an error message if an exception occurs
print(f"Exception when calling DocumentApi->send_document: {e}\n")
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
Built Distribution
File details
Details for the file boldsign-1.0.0b0.tar.gz
.
File metadata
- Download URL: boldsign-1.0.0b0.tar.gz
- Upload date:
- Size: 114.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 71ef76367446e7645caf6b593d55d6d154f67f6dbe1ccd98d5ad4abc744af079 |
|
MD5 | 30508573636bce6f3c40bc85ce1ead43 |
|
BLAKE2b-256 | f4a4a3276bc5823301a302fc6419dbcf2c609779df6928cf5ff851aeefddd71e |
File details
Details for the file boldsign-1.0.0b0-py3-none-any.whl
.
File metadata
- Download URL: boldsign-1.0.0b0-py3-none-any.whl
- Upload date:
- Size: 313.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ed45d5fbe577db630e40a555c1e7db92e5f714b41c6e96f2e0580629d850c51 |
|
MD5 | cfb7e831a8fa51e7f88bf16033d62642 |
|
BLAKE2b-256 | a3b1f6e9896fe8ac486990ac14f6dad8b8d7a28b01ac79fbe15c28028d2038eb |