[
https://issues.apache.org/jira/browse/BEAM-2156?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15995610#comment-15995610
]
Ahmet Altay commented on BEAM-2156:
-----------------------------------
One idea is to have an internal api to check for some extra features and
optionally import stuff based on the available features.
> Clean up import guards for GCP libraries in the python SDK
> ----------------------------------------------------------
>
> Key: BEAM-2156
> URL: https://issues.apache.org/jira/browse/BEAM-2156
> Project: Beam
> Issue Type: Improvement
> Components: sdk-py
> Reporter: Vikas Kedigehalli
> Assignee: Ahmet Altay
> Priority: Minor
>
> For protecting against environments that do not have gcp libraries installed
> we have import guards like
> https://github.com/apache/beam/blob/master/sdks/python/apache_beam/io/gcp/datastore/v1/helper.py#L21
> which is ugly. Need to come up with a better approach to handle such
> scenarios.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)