The Masonry SDK — e-signatures, document processing, workflow automation, and more
Project description
masonry-sdk
The official Python SDK for The Masonry — e-signatures, document processing, workflow automation, and more in a single package.
Install
pip install masonry-sdk
Configuration
export MASONRY_API_KEY="msk_..."
# Or per-service:
export MASONRY_SIGN_URL="https://sign.themasonry.com"
export MASONRY_SIGN_API_KEY="msk_..."
export MASONRY_DOCUMENT_URL="https://document.themasonry.com"
export MASONRY_DOCUMENT_API_KEY="mdk_..."
SDK Usage
from masonry import sign, document, auth
# E-signatures
client = sign.MasonrySignClient()
session = client.create_session(signer_name="Jane Doe")
print(f"Sign here: {session.signing_url}")
# Document parsing
client = document.MasonryDocumentClient()
result = client.parse("contract.pdf")
print(f"Found {len(result.fields)} fields")
# Document filling
filled = client.fill("w9.pdf", data={"name": "John Doe", "ssn": "123-45-6789"})
with open("filled_w9.pdf", "wb") as f:
f.write(filled)
CLI
# Sign
masonry sign create-session --name "Jane Doe"
masonry sign status <session_id>
masonry sign enroll --email jane@example.com
# Document
masonry document parse contract.pdf
masonry document fill w9.pdf -d '{"name": "John Doe"}' -o filled.pdf
MCP Server
One config, all tools:
{
"mcpServers": {
"masonry": {
"command": "masonry",
"args": ["mcp-server"],
"env": {
"MASONRY_SIGN_API_KEY": "msk_...",
"MASONRY_DOCUMENT_API_KEY": "mdk_..."
}
}
}
}
Tools
| Tool | Primitive | Description |
|---|---|---|
create_signing_session |
Sign | Create an e-signature session |
get_session_status |
Sign | Check signing session status |
get_signature_image |
Sign | Download signature as PNG |
enroll_signer |
Sign | Start biometric enrollment |
create_auth_challenge |
Sign | Biometric sign-to-approve |
get_challenge_status |
Sign | Check challenge status |
parse_document |
Document | Extract fields from PDF/DOCX |
fill_document |
Document | Fill a template with data |
Development
git clone https://github.com/The-Masonry/sdk
cd sdk
python -m venv .venv && source .venv/bin/activate
pip install -e ".[dev]"
pytest
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
masonry_sdk-0.1.0.tar.gz
(24.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file masonry_sdk-0.1.0.tar.gz.
File metadata
- Download URL: masonry_sdk-0.1.0.tar.gz
- Upload date:
- Size: 24.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b037284d407dbe45d73a0ac573898cf00ad2bda6a06ad585158c3f8b317dc86d
|
|
| MD5 |
78c15cd3e25e628c396b11ceca0f6abe
|
|
| BLAKE2b-256 |
57ad85e7661f626643aa7f0007480cf299b2f9982318f818c7723cdd30da248c
|
File details
Details for the file masonry_sdk-0.1.0-py3-none-any.whl.
File metadata
- Download URL: masonry_sdk-0.1.0-py3-none-any.whl
- Upload date:
- Size: 29.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a6ae6c2e65cddddf392a2b1439c1fc3290a193db842616e23e31b9a20425648b
|
|
| MD5 |
8e93347c3d1a73f7e56d291be48887f5
|
|
| BLAKE2b-256 |
6b90d11e12a58d58d63f11a405b66dca2fcc04a997a72adc1a032edff5b6aaf6
|