Skip to main content

Core module for the RunAPI Python SDK

Project description

RunAPI Core Python SDK

The RunAPI Core Python SDK provides shared authentication, HTTP, retry, error, and polling primitives for RunAPI model packages. Install runapi-core only when you are building SDK infrastructure or shared Python tooling; application code should normally install a concrete model package such as runapi-flux-2.

Install

pip install runapi-core

Notes

Use the core package for common client options, error classes, request helpers, file uploads, and task polling behavior that model SDKs share. Configure it globally or per client:

import runapi.core as runapi

runapi.configure(api_key="sk-...")  # or set RUNAPI_API_KEY in the environment
from runapi.core import FilesClient

files = FilesClient()  # reads RUNAPI_API_KEY, or pass api_key="sk-..."
uploaded = files.create(file="./input.png")
print(uploaded.url)

Public SDK docs live at https://runapi.ai/docs#runapi-sdks and the model catalog lives at https://runapi.ai/models.

License

Licensed under the Apache License, Version 2.0.

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

runapi_core-0.1.0.tar.gz (20.0 kB view details)

Uploaded Source

Built Distribution

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

runapi_core-0.1.0-py3-none-any.whl (19.3 kB view details)

Uploaded Python 3

File details

Details for the file runapi_core-0.1.0.tar.gz.

File metadata

  • Download URL: runapi_core-0.1.0.tar.gz
  • Upload date:
  • Size: 20.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.6

File hashes

Hashes for runapi_core-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f56e2812ca230a7a1df23957f2d64348763dc6812725cc866ea3711622eec1a0
MD5 1ad6420167d0a26333847a4343eb944e
BLAKE2b-256 fbb28345ca105fb66425eed9aae2b6d2d00c17d26e88690c95be4c917b472533

See more details on using hashes here.

File details

Details for the file runapi_core-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for runapi_core-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e0057e1b64908b913ded1309b0795c32a022de90c8ca84ac52804f2fde3c9437
MD5 986062a0bf33be85b4660b9d3e23f1fd
BLAKE2b-256 b3228798c280b38f272034802b6759470afd3fb7bab7fa79193dfbccf182dfc8

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