Skip to content

feat(docs): publish Client libraries help to reference documentation#16575

Open
bshaffer wants to merge 7 commits into
googleapis:mainfrom
bshaffer:client-libraries-help
Open

feat(docs): publish Client libraries help to reference documentation#16575
bshaffer wants to merge 7 commits into
googleapis:mainfrom
bshaffer:client-libraries-help

Conversation

@bshaffer

@bshaffer bshaffer commented Apr 7, 2026

Copy link
Copy Markdown
Contributor

b/450298584

Publishes documentation to https://cloud.google.com/python/docs/reference under "Client libraries help".

This currently only contains the README.rst contents from the root of this repo. We will expand this to add more once we've confirmed this is deploying as expected.

@bshaffer bshaffer requested review from a team as code owners April 7, 2026 23:23

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds a new help package for documentation, including a DocFX helper script and Nox configuration. Key feedback includes concerns about shadowing the built-in help() function, unused imports and parameters in docfx_helper.py, and the need for explicit encoding during file operations. Improvements were also suggested for argument parsing and the removal of legacy Python 2 imports.

Comment thread packages/help/setup.py Outdated
Comment thread packages/help/docfx_helper.py Outdated
Comment thread packages/help/docfx_helper.py Outdated
Comment thread packages/help/docfx_helper.py Outdated
Comment thread packages/help/docfx_helper.py Outdated
Comment thread packages/help/docfx_helper.py Outdated
Comment thread packages/help/noxfile.py Outdated
@bshaffer bshaffer force-pushed the client-libraries-help branch from a61bd74 to 4aa9b08 Compare April 8, 2026 18:10
Comment thread packages/help/setup.py Outdated
@bshaffer bshaffer marked this pull request as draft April 20, 2026 19:45
@bshaffer bshaffer changed the title feat(docs): publish Client libraries help to python reference documen… feat(docs): publish Client libraries help to reference documentation Apr 20, 2026
@bshaffer bshaffer marked this pull request as ready for review April 22, 2026 22:20
@bshaffer

bshaffer commented May 4, 2026

Copy link
Copy Markdown
Contributor Author

@parthea this is ready for review 🙏 !

Comment thread docs/devsite-help/getting-started.md Outdated
Comment thread docs/devsite-help/getting-started.md Outdated
Comment thread docs/devsite-help/getting-started.md
Comment thread docs/devsite-help/getting-started.md Outdated
Comment thread docs/devsite-help/getting-started.md Outdated
Comment thread docs/devsite-help/getting-started.md Outdated
Comment thread docs/devsite-help/getting-started.md
Comment thread docs/devsite-help/getting-started.md Outdated
bshaffer and others added 2 commits May 11, 2026 09:41
Co-authored-by: Anthonios Partheniou <partheniou@google.com>
Co-authored-by: Brent Shaffer <betterbrent@google.com>
@bshaffer bshaffer assigned parthea and unassigned bshaffer May 11, 2026

@daniel-sanche daniel-sanche left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added a few suggestions for the doc contents, but overall LGTM

[google-cloud-spanner](https://docs.cloud.google.com/python/docs/reference/spanner/latest))
are mostly higher level abstractions over the underlying API. See the documentation
for those individual libraries for details; the documentation here is primarily
aimed at the autogenerated libraries.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See the documentation for those individual libraries for details; the documentation here is primarily aimed at the autogenerated libraries.

nit: the wording here is a little awkward, referring to both as the documentation


All Google Cloud Libraries for Python are available from [PyPI](https://pypi.org) and can be installed
using `pip`. If you wish to install a pre-release version, you can specify the version explicitly
with the installation command.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: it might be useful to show examples here:

All Google Cloud Libraries for Python are available from PyPI and can be installed using pip:
pip install google-cloud-translate
If you wish to install a pre-release version, you can specify the version explicitly with the installation command:
pip install google-cloud-translate==3.13.0rc0

with the installation command.

The libraries can be installed in any regular environment, including virtual environments (recommended),
containerized applications, and web frameworks like Django or Flask.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure what that part about web frameworks is referring to. Web frameworks wouldn't be a deployment target like the others

For the translation example, we'll create a new directory, set up a virtual environment,
and install the package.

Note that for simplicity, the sample code below uses synchronous calls. Most libraries also provide

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe the part about synchronous calls should be moved closer to the code, in the "Create a client" section?


## Make requests

The Google Cloud Libraries use [Protocol Buffers](https://protobuf.dev)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe worth mentioning most libraries also support rest transports?

@parthea parthea assigned bshaffer and unassigned parthea Jun 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants