Clean up import guards for GCP libraries in the python SDK
- Dominant language
- Java
- Stars
- 8.7k
- Forks
- 4.7k
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 196
Description
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.
Imported from Jira [BEAM-2156](https://issues.apache.org/jira/browse/BEAM-2156). Original Jira may contain additional context.
Reported by: vikasrk.
Contributor guide
Research direction
Start with the import guard at sdks/python/apache_beam/io/gcp/datastore/v1/helper.py#L21 and review how similar GCP guards are handled across the Python SDK. The issue does not identify a proposed approach or tests; done would mean establishing a consistent way to support environments without GCP libraries.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- gcp, python
- Domain
- developer-experience, tooling
- Issue type
- Refactor
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100