Skip to main content

ironfang-renderwolf

The official Python client for the Renderwolf API: screenshots, PDFs, QR codes, template images, clips and site previews from a URL or from HTML you send. No dependencies; Python 3.10 and later.

pip install ironfang-renderwolf
import os
from ironfang_renderwolf import Renderwolf

with Renderwolf(api_key=os.environ["IRONFANG_API_KEY"]) as rw:
    shot = rw.screenshot(url="https://example.com", full_page=True)
    shot.save("page.png")
    print(shot.credits, shot.render_ms, shot.request_id)

Every render returns the bytes plus what the API reports about them: content type, credits charged (zero on a cache hit), render time and the request id to quote to support. Long outputs stream: save() and iter_bytes() never hold a whole clip in memory.

Durable jobs

job = rw.submit_job("pdf", {"html": invoice_html, "paper_format": "a4"}, idempotency_key=f"invoice-{invoice.id}")
done = rw.wait_for_job(job["id"])
if done["status"] == "succeeded":
    rw.job_result(job["id"]).save(f"invoice-{invoice.id}.pdf")

Verifying a webhook

Run the check over the raw request body, before parsing it.

from ironfang_renderwolf import verify_webhook

ok = verify_webhook(
    secret=os.environ["RENDERWOLF_WEBHOOK_SECRET"],
    timestamp=request.headers["Renderwolf-Timestamp"],
    signature=request.headers["Renderwolf-Signature"],
    payload=request.get_data(),
)

Errors

Failures raise RenderwolfError with status, the API's code (quota_exhausted, render_failed, ...) and request_id. Synchronous renders are never retried by the client: a render that timed out may already have been charged, and retrying it blind doubles the bill.

Metadata

Release files for ironfang-renderwolf 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ironfang-renderwolf 0.1.0
File Size Uploaded Provenance
ironfang_renderwolf-0.1.0.tar.gz 10.7 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for ironfang-renderwolf 0.1.0
File Interpreter ABI Platform
ironfang_renderwolf-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 19.3 kB

Release files / ironfang_renderwolf-0.1.0.tar.gz

Download URL ironfang_renderwolf-0.1.0.tar.gz
Size 10.7 kB
Tags Source
SHA-256 checksum
How to use checksums
5ea2432a5cc7522ad5617fe7be8bf950d09bafa4c13297d73270514b559ed2ca
BLAKE2b-256 checksum
How to use checksums
39c7707b88b57fdc197f1211dfa8ba23175899d9f9abcf00d6d07b8c395023b2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Release files / ironfang_renderwolf-0.1.0-py3-none-any.whl

Download URL ironfang_renderwolf-0.1.0-py3-none-any.whl
Size 8.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8ba52d7aa869c071c3c1a8904dc06f9c527503d1930cbde9fcdacb54c01bbaa7
BLAKE2b-256 checksum
How to use checksums
14f3d4b8039398b39b6bd3ea48356d51e52be9235542b3b51ed90e3c7fa057d5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Security for ironfang-renderwolf 0.1.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A 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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page