Official Python library for RunPod API & SDK.
Project description
Official Python library for RunPod API & SDK.
Table of Contents
Installation
pip install runpod
API Language Library
When interacting with the RunPod API you can use this library to make requests to the API.
import runpod
runpod.api_key = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
SDK - Serverless Worker
This python package can also be used to create a serverless worker that can be deployed to RunPod.
Quick Start
Create an python script in your project that contains your model definition and the RunPod worker start code. Run this python code as your default container start command:
import runpod
MODEL = 'YOUR_MODEL'
def run(job):
# Your inference code here
return MODEL.predict(job.input)
runpod.serverless.start({"handler": run})
Add the env variables found in serverless-worker to your project.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file runpod-0.7.4.tar.gz.
File metadata
- Download URL: runpod-0.7.4.tar.gz
- Upload date:
- Size: 11.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
64ac5f73801cd5f5f2d02e2a57f2b0fb81bb5293267a66b318c8640a0f3e1453
|
|
| MD5 |
af0b4333aa33fc277514cca2e85a5ee0
|
|
| BLAKE2b-256 |
28e996125e2aee261e2c7e231bf241087efbab3bcd8ed3159afd0add01c73514
|
File details
Details for the file runpod-0.7.4-py3-none-any.whl.
File metadata
- Download URL: runpod-0.7.4-py3-none-any.whl
- Upload date:
- Size: 14.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
26ce3ee0834df2b5fb385d5af87cfd472fc42c1295b158f9b37717e13ead7422
|
|
| MD5 |
6672ac353a41dd5f9cfe20a3fd3fdc82
|
|
| BLAKE2b-256 |
c1d1e53c5cd679b9986586c054f732cc3b52f0bdcc7c0d797181af9ac8acbcd7
|