Translate Webforms into 10 different languages with 1 click.Learn more.
Anvil Logo
Products
Industries
Resources
Developers

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.
Beyond giant hero assetGiant hero assetDesktop hero assetMobile hero assetTablet hero asset

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"))

Try e-signatures now


Upload a PDF, create a free etch packet, and send to your signers using the demo below to see what you can automate with Python and the Anvil e-signature API.

Sign up for a live demo

Request a 30-minute live demo today and we'll get in touch shortly. During the meeting our Sales team will help you find the right solution, including:
  • Simplifying data gathering
  • Streamlining document preparation
  • Requesting e-signatures
  • Building and scaling your business
Want to try Anvil first?Sign up for free
Want to try Anvil first?Sign up for free