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

Why there is no deployments interfaces in SDK, only can be found in CLI? #399

Open
madfrog opened this issue Dec 30, 2023 · 1 comment
Open

Comments

@madfrog
Copy link

madfrog commented Dec 30, 2023

I want to use the SDK to operate deployments, but I found that the

deployment_client = sdk_client.DeploymentsClient()

listed in https://docs.paperspace.com/gradient/python-sdk/sdk-tutorial/ not work. There is also no corresponding file in the code. Has it been removed?

@cay89
Copy link

cay89 commented Jan 11, 2024

The document on docs.paperspace.com seems outdated. DeploymentsClient() doesn't really exist, but these do:

from gradient import api_sdk

api_sdk.create_deployment()
api_sdk.update_deployment()
api_sdk.get_deployment()
api_sdk.list_deployments()
api_sdk.delete_deployment()

I've tried to create a deployment via create_deployment(), but it does not work for me. It throws an error:

gql.transport.exceptions.TransportQueryError: {'message': 'One or more invalid values were supplied.', 'locations': [{'line': 1, 'column': 27}], 'extensions': {'code': 'BAD_USER_INPUT'}}

However, it doesn't specify the problem, making it difficult to identify the issue.

Nevertheless, I think this is a dead project, as it hasn't been updated in a year and a half. Additionally, the readme suggests using the Paperspace CLI instead. But it's not written in Python, so that's the end of the story.

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

No branches or pull requests

2 participants