Skip to content

FR: Cloud Bigtable Client class should be a Context Manager #1793

@tswast

Description

@tswast

It would be great if I could say:

with bigtable.Client() as client:
    cluster = client.cluster('us-central1-c', 'my-cluster')
    # ...

and the Client class would call start and stop for me. I believe we could make __enter__ call start and __exit__ call stop.

Metadata

Metadata

Labels

api: bigtableIssues related to the Bigtable API.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions