Introduction
The client library for Python offers an easy-to-use interface to interact with Sunra’s services.Installation
To integrate the client into your project, install it using pip:Features
Calling Endpoints
Sunra manages endpoint requests through a queue system, ensuring reliability and scalability. Use thesubscribe method to submit a request and await the result.
Example:
Queue Management
Manage your requests with these methods:Submitting a Request
Submit a request and retrieve therequest_id for later use.
Example:
Checking Request Status
Retrieve the status of a request. Example:Retrieving Request Results
Fetch the result of a completed request. Example:File Uploads
Upload files to obtain URLs for use in asynchronous requests. This is essential for models that process files, such as image-to-video or speech-to-text converters.Maximum file size: 100MB
Uploading a Local File
You can easily upload a file from your local filesystem. This is useful for scripts or applications that process local data.Uploading In-Memory Data
You can also upload data that is held in memory, such as the content of an image created with PIL (Pillow) or a file received in a web request.Support
Join our community for help or discussions:- Discord Community: Join us
- GitHub Repository: Visit here