E-signatures with Python

A simple API for signing PDFs from your app. Set up an etch e-signature packet and use Python to send or embed the e-sign experience.

Embed or send e-signature requests

Simple, legally binding e-signatures. Generate or upload a PDF, define the signers, and send out an e-signature request all over API.


Python to signature

Use Python to set up an Etch e-signature packet. Then send the packet for signature over email or directly from your app.

packet = CreateEtchPacket(
    name=f"Test Docs - {signer_name}",
    signature_email_subject="Custom email subject",
    signature_email_body="Custom please sign these documents....",
)
sample_template = EtchCastRef(
    # Our ID we will use to reference and fill it with data.
    id="sampleTemplate",
    cast_eid=PDF_TEMPLATE_ID,
)
packet.add_file_payloads("sampleTemplate", dict(
    data=dict(
        name=signer_name,
        email=signer_email,
    )
))
packet.add_signer(EtchSigner(
    id="signer1",
    name="Testy Signer",
    email="testy@signer.com",
    fields=[
        SignerField(
            file_id="sampleTemplate",
            field_id="signature"
        )
    ]
))
packet.add_file(sample_template)

anvil = Anvil(api_key=API_KEY)
res = anvil.create_etch_packet(payload=packet)
packet_details = res["data"]["createEtchPacket"]
print("Visit the new packet on your dashboard:", packet_details.get("detailsURL"))

Create & send an e-sign packet in seconds with Document AI

Upload any PDF and watch Anvil Document AI identify input and signature fields, identify signers and connects them to fields. It's free - no signup required.

Get a demo
(from a real person)

Schedule some time on our calendar to talk through your specific use case and see which Anvil products can help.
    Want to try Anvil first?
    Want to try Anvil first?