Skip to content

render-oss/sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sdk

The official SDK for Render

Warning

Early Access: This SDK is in early access and subject to breaking changes without notice.

SDK support is provided for the following languages

Language README Package
TypeScript ./typescript @renderinc/sdk
Python ./python render_sdk

With the following features

Feature Python TypeScript
REST API ✔️ ✔️
Workflows ⚠️ Early Access client ⚠️ Early Access client
Object Storage ⚠️ Early Access client ⚠️ Early Access client

Quickstart

To get started you'll need a couple things:

Python

To start, get the latest SDK from pypi

pip install render_sdk
# or
uv add render_sdk
# or
poetry add render_sdk

Then initialize a SDK client with your API key

from render import Render

render = Render(token="rnd_...")

You may also provide a RENDER_API_KEY environment variable instead of providing the key to the constructor.

For more detail see the Python SDK README

TypeScript

To start get the latest SDK from npm

npm i @renderinc/sdk
# or
pnpm add @renderinc/sdk
# or
yarn add @renderinc/sdk

Then initialize a SDK client with your API key

import { Render } from "@renderinc/sdk";

const render = new Render({token: "rnd_..."})

You may also provide a RENDER_API_KEY environment variable instead of providing the key to the constructor.

For more detail see the TypeScript SDK README

Contributing

Development

Folder structure

.
├── python/
│   ├── example
│   └── render_sdk
├── typescript/
│   ├── examples
│   └── src
├── openapi/
│   └── openapi.yaml # Local API Schema for Workflows
└── go/
    ├── example
    └── pkg

Setup

For Python we support a minimum of 3.10, and use poetry to manage our dependecies - see more in our pyproject.toml

For TypeScript we support a minimum node version of 18.0.0 and use npm to manage our dependecies - see more in our package.json

To install pre-commit hooks, run:

pre-commit install
pre-commit autoupdate

API Documentation

To view workflow API documentation from the OpenAPI spec:

npx @redocly/cli preview-docs openapi/openapi.yaml

About

The official SDK for Render Workflows

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 10