Skip to content

Releases: runpod/runpod-python

0.9.2

12 Apr 04:22
Compare
Choose a tag to compare

Improvements

  • General code cleanup and refactoring
  • Improved documentation with end-to-end examples
  • Removed outdated docs
  • Enhanced logging verbosity for a better developer experience

Expanded Worker Functions

  • refresh_worker can now be set within the start_work configuration

Download Utility

  • (BREAKING CHANGE) Renamed download_input_objects to download_files_from_urls for additional clarity
  • download_files_from_urls now requires the additional input parameter job_id
  • Enhanced download_files_from_urls to support both string input and list of strings
  • Improved download_files_from_urls performance by downloading files in parallel
  • download_files_from_urls now saves files to jobs/{job_id}/downloaded_files
  • download_files_from_urls uses the file name from URL as a fallback if unavailable in Content-Disposition

Upload Utility

  • (BREAKING CHANGE) Renamed file to upload_file_to_bucket for added clarity
  • (NEW) Added upload_in_memory_object to upload files directly from memory to bucket storage
  • Ability to define bucket name and file path

Housekeeping

  • Future releases will automatically be versioned with the GitHub tag

What's Changed

New Contributors

Full Changelog: 0.9.1...0.9.2

0.9.1

16 Mar 18:27
Compare
Choose a tag to compare

SDK

  • Improved verbose feedback

Upload Utility

  • Faster file uploads

Download Utility

  • Accepts URLs that have file attachments vs only files in paths

Upload Utility

  • Upload status shown when uploading file to S3 bucket

Language Library - Endpoints

  • Endpoints can now be interacted with natively within Python
import runpod

runpod.api_key = "YOUR_API_KEY"
endpoint = runpod.Endpoint("ENDPOINT_ID")

run_request = endpoint.run(
    {"YOUR_MODEL_INPUT_JSON": "YOUR_MODEL_INPUT_VALUE"}
)

# Check the status of the endpoint run request
print(run_request.status())

# Get the output of the endpoint run request, blocking until the endpoint run is complete.
print(run_request.output())
import runpod

runpod.api_key = "YOUR_API_KEY"
endpoint = runpod.Endpoint("ENDPOINT_ID")

run_request = endpoint.run_sync(
    {"YOUR_MODEL_INPUT_JSON": "YOUR_MODEL_INPUT_VALUE"}
)

# Returns the job results if completed within 90 seconds, otherwise, returns the job status.
print(run_request )

Full Changelog: 0.8.4...0.9.1

0.9.0

21 Feb 20:59
Compare
Choose a tag to compare

New Feature:

  • Returning "refresh_worker" in the output will trigger the worker to terminate at the end of the job.

Validation Utility:

  • (BREAKING CHANGE) runpod.serverless.utils.validator renamed to runpod.serverless.utils.rp_validator
  • (BREAKING CHANGE) The validator utility now returns an object with "errors" that contains the list of errors or "validated_input" with a cleaned input based on the provided schema.

Download Utility:

  • (BREAKING CHANGE) runpod.serverless.utils.download renamed to runpod.serverless.utils.rp_download
  • Added single file downloader and extractor with improved object based return.

Upload Utility:

  • (BREAKING CHANGE) runpod.serverless.utils.upload renamed to runpod.serverless.utils.rp_upload`
  • Added single file upload functionality

Improvement:

  • Errors that are raised by the handler are marked. Additionally, traceback is also provided.
  • Tips have been introduced to assist users in developing their endpoints.

Refactor:

  • Heartbeat ping mechanism consolidated to a single callable function.

Full Changelog: 0.8.4...0.9.0

0.8.4

30 Jan 14:01
Compare
Choose a tag to compare

What's Changed

  • Fix log message for test_inputs.json by @jimgoo in #10

New Contributors

Full Changelog: 0.8.3...0.8.4

0.8.3

27 Jan 18:52
Compare
Choose a tag to compare

Full Changelog: 0.8.2...0.8.3

0.8.2

26 Jan 03:48
Compare
Choose a tag to compare

Full Changelog: 0.8.1...0.8.2

0.8.1

26 Jan 03:31
Compare
Choose a tag to compare

Features:

  • Logging level implements

Fix:

  • Wraps errors with a string

Changes:

  • Realtime endpoint is now {endpoint_id}/realtime

Full Changelog: 0.8.0...0.8.1

0.8.0

24 Jan 03:42
Compare
Choose a tag to compare
  • Realtime Worker
    • FastAPI natively available within the serverless worker

What's Changed

New Contributors

Full Changelog: 0.7.6...0.8.0

0.7.6

19 Jan 06:38
Compare
Choose a tag to compare

Full Changelog: 0.7.5...0.7.6

feature:

  • utility function to upload to custom bucket

0.7.5

17 Jan 20:38
Compare
Choose a tag to compare

Full Changelog: 0.7.4...0.7.5

Clean up:

  • Improved verbose formatting
  • Does not try to to post results while testing

Fix:

  • Handles bool returns