Skip to content

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

Open

Description

@madfrog

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?

Activity

  1. cay89 commented on Jan 11, 2024

    @cay89

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions