Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: implement CustomEndpoint #321

Conversation

giefferre
Copy link

@giefferre giefferre commented Jun 6, 2024

closes #318

This branch adds the possibility to use the runpod-python package also with regulard Pods running on adapted Serverless templates.

To do so, a CustomEndpoint class has been created.

Usage example follows

import runpod
import time

input_payload = {
    'input': {
        'foo':'bar'
    }
}

endpoint = runpod.CustomEndpoint("https://some-runpod-host-8000.proxy.runpod.net")
run_request = endpoint.run(input_payload, timeout=90)

print("STATUS: ", run_request.status())

@giefferre
Copy link
Author

hey @justinmerrell 👋

no intention to push - just checking if this PR will be ever reviewed :)
thanks in advance

@ef0xa ef0xa closed this Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use runpod-python package with Pods running serverless API endpoints
2 participants