pandafile
The official Python SDK for Pandafile: send files of any size with resumable uploads, collect files with file requests, get documents signed and react to webhooks.
- Python 3.9+, one dependency (
httpx). Sync and async clients. transfers.send()does everything: create, upload (tus, chunked, parallel, resumable), complete, return the link.- Automatic
Idempotency-Keyon every POST/PATCH/PUT, retries with backoff on 429/5xx honouringRetry-After, typed errors, auto-pagination, webhook signature verification, TypedDicts generated from the OpenAPI document.
The API is included with Pandafile Pro and Team. Create a key in Dashboard → Domain & API.
Install
pip install pandafile
Quick start
from pandafile import Pandafile
pf = Pandafile() # reads PANDAFILE_API_KEY (pf_live_… or pf_test_…)
result = pf.transfers.send(
["final-cut.mov", "stills/"], # folders keep their structure
recipients=["client@example.com"],
title="Final cut",
on_progress=lambda p: print(f"{p.percent:.1f} %"),
)
print(result.url) # https://pandafile.co/d/k3x9q2m7ab
Files can be paths, (name, bytes), {"name": ..., "data": ...}, {"path": ..., "name": ...} or binary file objects.
Async
import asyncio
from pandafile import AsyncPandafile
async def main():
async with AsyncPandafile() as pf:
result = await pf.transfers.send(["film.mov"])
async for t in pf.transfers.list():
print(t["id"], t["title"])
asyncio.run(main())
Resumable sends
import json, pathlib
p = pathlib.Path("send-state.json")
state = json.loads(p.read_text()) if p.exists() else None
result = pf.transfers.send(["huge.mxf"], state=state, on_state=lambda s: p.write_text(json.dumps(s)))
Finished files are skipped and the unfinished one continues at the byte the server has.
Every endpoint
pf.me.retrieve()
for t in pf.transfers.list(view="active"): # auto-pagination
...
page = pf.transfers.list(limit=50).page() # one page: page.data, page.has_more, page.next_page()
pf.transfers.retrieve("k3x9q2m7ab")
pf.transfers.update("k3x9q2m7ab", title="v2", password="blue-river-42")
pf.transfers.add_recipients("k3x9q2m7ab", ["producer@example.com"])
pf.transfers.delete("k3x9q2m7ab")
pf.requests.create(title="Photos from the wedding")
draft = pf.signatures.create("nda.pdf")
pf.signatures.send(draft["id"], signers=[{"name": "Ada", "email": "ada@example.com"}],
fields=[{"signer": 0, "kind": "signature", "page": 0, "x": 0.1, "y": 0.8, "w": 0.3, "h": 0.06}])
pf.branding.update(name="Studio Nord", color="#1F7A4D")
pf.team.invite(["sam@example.com"])
pf.events.list(since="2026-11-25T00:00:00Z", type="transfer.downloaded")
pf.hooks.create(url="https://example.com/pandafile-webhook", events=["transfer.ready"])
pf.request("GET", "/me") # anything else, by hand
Responses are plain dicts; pandafile.types has a TypedDict for each (Transfer, TransferDetail, Event, …).
Errors
from pandafile import NotFoundError, PandafileError
try:
pf.transfers.retrieve("nope1234")
except NotFoundError as e:
print(e.code) # resource_missing
except PandafileError as e:
print(e.type, e.code, e.status, e.request_id, e.param)
Classes: InvalidRequestError (NotFoundError), AuthenticationError, PermissionDeniedError, IdempotencyError,
RateLimitError (retry_after), APIError, APIConnectionError, UploadError, SignatureVerificationError.
Webhooks
from flask import Flask, request, abort
from pandafile import webhooks
app = Flask(__name__)
@app.post("/pandafile-webhook")
def hook():
body = request.get_data() # the raw bytes
if not webhooks.verify(body, request.headers.get("Pandafile-Signature"), SECRET, tolerance=300):
abort(400)
event = request.get_json()
return "", 200
webhooks.construct_event(body, header, secret) verifies and parses (raises SignatureVerificationError).
Pandafile.webhooks is the same module.
Options
Pandafile(api_key="pf_live_…", base_url="https://pandafile.co", max_retries=3, timeout=60.0, http_client=None)
pf.last_response["headers"] holds the ratelimit-* headers of the last call.
Links
- Guide: https://pandafile.co/developers
- API reference: https://pandafile.co/developers/api
- SDKs and CLI: https://pandafile.co/developers/sdks
Metadata
Release files for pandafile 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pandafile-0.2.0.tar.gz | 30.9 kB | With provenance | Details for pandafile-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pandafile-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for pandafile-0.2.0-py3-none-any.whl |
Total release size: 59.8 kB
Release files / pandafile-0.2.0.tar.gz
| Download URL | pandafile-0.2.0.tar.gz |
|---|---|
| Size | 30.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ac1cd85bfe3c31de8f50846a65a7197811ec7a5076219fbfff68b18a68925d7c
|
|
BLAKE2b-256 checksum How to use checksums |
1a53d43367f4b9cb395c4f645053ea4e499cf5b7e04bf522adef292b4bb77e1f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.
Transparency logRelease files / pandafile-0.2.0-py3-none-any.whl
| Download URL | pandafile-0.2.0-py3-none-any.whl |
|---|---|
| Size | 28.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b8f981a6f8f8ae54d1e3681362e3c1e95ddef25d71c4e985e81995024dda66ec
|
|
BLAKE2b-256 checksum How to use checksums |
197b1e2640064df3bb28fe98d85f58fee12424b5ac53cb2a50f91aa67b4d4be5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.
Transparency logSecurity for pandafile 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for pandafile-0.2.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.