Skip to main content

Official Python SDK for StarkRender — HTML to Image, Screenshot, and PDF API

Project description

StarkRender Python SDK

Official Python SDK for StarkRender — HTML to Image, URL Screenshot, and HTML to PDF API.

Install

pip install starkrender

Quick start

from starkrender import StarkRender

client = StarkRender("YOUR_API_KEY")

result = client.render(
    html="<div style='background:red;width:800px;height:400px'></div>",
    width=800,
    height=400,
)
print(result["url"])  # permanent image URL

Methods

Method Endpoint
render(**kwargs) POST /v1/render
render_full(**kwargs) POST /v1/render/full
render_fast(**kwargs) POST /v1/render/fast
render_batch(requests) POST /v1/render/batch
screenshot(**kwargs) POST /v1/screenshot
pdf(**kwargs) POST /v1/pdf
create_template(**kwargs) POST /v1/template
list_templates() GET /v1/template
get_template(id) GET /v1/template/{id}
delete_template(id) DELETE /v1/template/{id}
get_usage() GET /v1/usage

Docs

docs.starkrender.com

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

starkrender-1.0.0.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

starkrender-1.0.0-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

Details for the file starkrender-1.0.0.tar.gz.

File metadata

  • Download URL: starkrender-1.0.0.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for starkrender-1.0.0.tar.gz
Algorithm Hash digest
SHA256 f8cd60f21071d1c93e01cbe3b99301dd76c459fb2b6d24dd6d6c6d966bd48454
MD5 3afd7fc1218f6d0f66cb994359adc637
BLAKE2b-256 98cb10006684d570e0468ff90d9c11f14897dc416f6c9a4ed8c48a6827f0aa2c

See more details on using hashes here.

File details

Details for the file starkrender-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: starkrender-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 2.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for starkrender-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7bfdd3190000ae1969763bc997495b17a4f44a864a892e06eb5e6a6473195bc4
MD5 b69bfa0a21e9fc1ee04d061bc3fe9874
BLAKE2b-256 3109f960f265110479549ece625a9d4a499b6ced7b771f4048f41993be924561

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page