Skip to content

object_client parameter missing for datasets.open? #151

Open

Description

@sbalian

def open(project_path, mode="r", temp_dir=None, project_id=None, **kwargs):

Is there a reason this does not have a object_client parameter like the others? How else do you recommend using this outside of the Platform?

Activity

  1. acroz commented on Jan 6, 2020

    @acroz
    Contributor

    Is there a reason this does not have a object_client parameter like the others?

    Not particularly, no. open is a convenience function built on the others and I think we just didn't anticipate people using it in the advanced case described below.

    How else do you recommend using this outside of the Platform?

    The main reason for the object_client parameter is so that these methods can pass around a single client and avoid reconstructing it many times. People are mainly expected to use the profile mechanism and environment variables as the way to configure which deployment to interact with datasets, though this is mostly for historical reasons.

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