google-cloud-python icon indicating copy to clipboard operation
google-cloud-python copied to clipboard

Tracking namespace change

Open daspecster opened this issue 10 years ago • 26 comments

Here's a place we can track updates to the future changing of the gcloud-python namespace.

This change could break things in the future.


Sub-projects already partially created:

daspecster avatar Jul 12 '16 19:07 daspecster

Is this in reference to changing to google.cloud?

theacodes avatar Jul 12 '16 19:07 theacodes

@jonparrott yup! I wasn't sure if that was finalized or not.

daspecster avatar Jul 12 '16 19:07 daspecster

@jgeewax can confirm, but from what I understand that is the way we want to go.

theacodes avatar Jul 12 '16 20:07 theacodes

We will want to update the User-Agent string as well for this right? Are there any other implications to that? i.e. people have that user-agent allowed in their apps/firewall.

daspecster avatar Jul 22 '16 15:07 daspecster

Let's leave the useragent string alone -- we would have a whole heap of stuff to fix if we change that....

Otherwise -- yes, we're definitely going forward with google.cloud as the import path

jgeewax avatar Jul 26 '16 20:07 jgeewax

Using the form I created

  • https://pypi.python.org/pypi/google-cloud
  • https://pypi.python.org/pypi/google-cloud-datastore
  • https://pypi.python.org/pypi/google-cloud-storage
  • https://pypi.python.org/pypi/google-cloud-pubsub
  • https://pypi.python.org/pypi/google-cloud-bigquery
  • https://pypi.python.org/pypi/google-cloud-bigtable
  • https://pypi.python.org/pypi/google-cloud-logging

with the gcloudpypi account on PyPI.

dhermes avatar Aug 15 '16 20:08 dhermes

@omaray I held off on grabbing the equivalents for dns, error_reporting, monitoring, resource_manager and translate, but I can do that as well if you like. I'm not sure if underscores are allowed in PyPI package names?

dhermes avatar Aug 15 '16 20:08 dhermes

@dhermes you can use underscores but it's preferable to use - for consistency.

google-cloud-error-reporting reads better than google-cloud-error_reporting, even if the import path is google.cloud.error_reporting.

theacodes avatar Aug 15 '16 20:08 theacodes

Thanks @jonparrott.

@tseaver @jgeewax @omaray, shall we use google-cloud-core for the code shared by all ~~modules~~ sub-packages?

dhermes avatar Aug 16 '16 21:08 dhermes

google-cloud-core SGTM.

tseaver avatar Aug 16 '16 21:08 tseaver

:+1: Just created https://pypi.python.org/pypi/google-cloud-core

dhermes avatar Aug 16 '16 22:08 dhermes

Just created https://pypi.python.org/pypi/google-cloud-happybase for #1762

dhermes avatar Aug 17 '16 16:08 dhermes

Thanks @dhermes. All sgtm. Not sure if we added speech, vision, and language - but I guess might as well.

omaray avatar Aug 17 '16 17:08 omaray

@omaray Just created https://pypi.python.org/pypi/google-cloud-vision and https://pypi.python.org/pypi/google-cloud-speech

Should it be called google-cloud-language or google-cloud-natural-language?

dhermes avatar Aug 18 '16 19:08 dhermes

+1 for google-cloud-natural-language.

tseaver avatar Aug 18 '16 19:08 tseaver

So Ruby and Node.js called it google-cloud-language:

Example: https://www.npmjs.com/package/@google-cloud/language

It's shorter indeed.

If it's easy to do, let's hold both! I'll check with the team.

omaray avatar Aug 18 '16 22:08 omaray

If it's easy to do, let's hold both! I'll check with the team.

It is easy but that would just be namespace squatting on PyPI; seems like it would be frowned upon. Though on the flipside, non-Google entities squatting on a name with google in it is also probably frowned upon.


I've noticed the Googlers keep calling it Language but that seems to be vague for people not already familiar with the API.

dhermes avatar Aug 18 '16 22:08 dhermes

It's fine to have both google-cloud-language and google-cloud-natural-language as long as you publish a metapackage to one that depends on the other.

(fyi, if we do run into a case where there's someone squatting on our name we can get that resolved).

theacodes avatar Aug 18 '16 22:08 theacodes

So @jonparrott as packaging wizard your opinion is that I should grab both (a) and we should publish to both (b)?

dhermes avatar Aug 18 '16 23:08 dhermes

Grab both and publish to one, and publish a metapackage to the other. But only if you feel like it's really necessary. I'd say don't. Just go with google-cloud-natural-language. Typically the metapackage magic is only done to deal with legacy stuff (like we'll eventually have to do with oauth2client and google-auth).

theacodes avatar Aug 18 '16 23:08 theacodes