Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vision semi-GAPIC #3373

Merged
merged 34 commits into from
Jun 2, 2017
Merged

Conversation

lukesneeringer
Copy link
Contributor

This commit removes the entire Vision manual layer and replaces it with a thin wrapper around the GAPIC.

It makes several other changes:

  • The GAPIC and Protos are packaged alongside the library, rather than being separate packages on PyPI. (I plan to move toward this generally, but not all at once.)
  • The docs are updated.
  • The system tests are dramatically thinned down; more should be ported from the old tests before this goes anywhere.

Tagging this "do not merge" for now while other questions about this are worked out.

@lukesneeringer lukesneeringer added api: vision Issues related to the Cloud Vision API. do not merge Indicates a pull request not ready for merge, due to either quality or timing. labels May 4, 2017
@lukesneeringer lukesneeringer self-assigned this May 4, 2017
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label May 4, 2017
@@ -2,7 +2,7 @@
branch = True

[report]
fail_under = 100
# fail_under = 100

This comment was marked as spam.

This comment was marked as spam.

@@ -1,4 +1,4 @@
include README.rst LICENSE
include README.rst LICENSE requirements.txt

This comment was marked as spam.

@@ -0,0 +1 @@
__import__('pkg_resources').declare_namespace(__name__)

This comment was marked as spam.

This comment was marked as spam.

_ALL_SCOPES = ('https://www.googleapis.com/auth/cloud-platform', )

def __init__(self,
service_path=SERVICE_ADDRESS,

This comment was marked as spam.

This comment was marked as spam.

@@ -1,4 +1,4 @@
# Copyright 2016 Google Inc.
# Copyright 2017, Google Inc. All rights reserved.

This comment was marked as spam.

This comment was marked as spam.


from __future__ import absolute_import

from google.cloud.gapic.vision.v1 import image_annotator_client as iac

This comment was marked as spam.

This comment was marked as spam.

from google.cloud.gapic.vision.v1 import enums

from google.cloud.proto.vision.v1 import geometry_pb2 as geometry
from google.cloud.proto.vision.v1 import image_annotator_pb2 as image_annotator

This comment was marked as spam.

This comment was marked as spam.

@add_single_feature_methods
class ImageAnnotatorClient(VisionHelpers, iac.ImageAnnotatorClient):
__doc__ = iac.ImageAnnotatorClient.__doc__
enums = enums

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

vision/setup.py Outdated
'zip_safe': False,
'classifiers': [
cur_dir = os.path.realpath(os.path.dirname(__file__))
with io.open('%s/requirements.txt' % cur_dir) as requirements_file:

This comment was marked as spam.

This comment was marked as spam.

@@ -1,4 +1,4 @@
include README.rst LICENSE
include README.rst LICENSE requirements.txt
recursive-include google *.json *.proto

This comment was marked as spam.

This comment was marked as spam.

@tseaver tseaver removed the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Jun 26, 2017
landrito pushed a commit to landrito/google-cloud-python that referenced this pull request Aug 21, 2017
landrito pushed a commit to landrito/google-cloud-python that referenced this pull request Aug 22, 2017
landrito pushed a commit to landrito/google-cloud-python that referenced this pull request Aug 22, 2017
atulep pushed a commit that referenced this pull request Apr 3, 2023
atulep pushed a commit that referenced this pull request Apr 18, 2023
parthea pushed a commit that referenced this pull request Jun 4, 2023
parthea pushed a commit that referenced this pull request Oct 21, 2023
parthea pushed a commit that referenced this pull request Oct 21, 2023
parthea pushed a commit that referenced this pull request Oct 21, 2023
parthea pushed a commit that referenced this pull request Oct 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: vision Issues related to the Cloud Vision API. cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants