feat: Add new gcloud commands, API clients, and third-party libraries across various services.

This commit is contained in:
2026-01-01 20:26:35 +01:00
parent 5e23cbece0
commit a19e592eb7
25221 changed files with 8324611 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
Release Notes
=============
.. include:: ../Changes.rst

View File

@@ -0,0 +1,42 @@
import os
project = "argcomplete"
copyright = "Andrey Kislyuk and argcomplete contributors"
author = "Andrey Kislyuk"
version = ""
release = ""
language = "en"
master_doc = "index"
extensions = [
"sphinx.ext.autodoc",
"sphinx.ext.viewcode",
"sphinx.ext.intersphinx",
"sphinx_copybutton",
"sphinxext.opengraph",
]
source_suffix = [".rst", ".md"]
exclude_patterns = ["_build", "Thumbs.db", ".DS_Store"]
pygments_style = "sphinx"
autodoc_member_order = "bysource"
autodoc_typehints = "description"
autodoc_typehints_description_target = "documented_params"
intersphinx_mapping = {
"python": ("https://docs.python.org/3", None),
}
templates_path = [""]
ogp_site_url = "https://kislyuk.github.io/" + project
if "readthedocs.org" in os.getcwd().split("/"):
with open("index.rst", "w") as fh:
fh.write("Documentation for this project has moved to https://kislyuk.github.io/" + project)
else:
html_theme = "furo"
html_sidebars = {
"**": [
"sidebar/brand.html",
"sidebar/search.html",
"sidebar/scroll-start.html",
"toc.html",
"sidebar/scroll-end.html",
]
}

View File

@@ -0,0 +1,24 @@
#!/usr/bin/env python
# PYTHON_ARGCOMPLETE_OK
import argparse
import pprint
import requests
import argcomplete
def github_org_members(prefix, parsed_args, **kwargs):
resource = "https://api.github.com/orgs/{org}/members".format(org=parsed_args.organization)
return (member["login"] for member in requests.get(resource).json() if member["login"].startswith(prefix))
parser = argparse.ArgumentParser()
parser.add_argument("--organization", help="GitHub organization")
parser.add_argument("--member", help="GitHub member").completer = github_org_members
argcomplete.autocomplete(parser)
args = parser.parse_args()
pprint.pprint(requests.get("https://api.github.com/users/{m}".format(m=args.member)).json())

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

View File

@@ -0,0 +1,20 @@
.. include:: ../README.rst
API documentation
=================
.. autofunction:: argcomplete.autocomplete
.. automodule:: argcomplete
:members:
:imported-members:
:special-members:
:exclude-members: __weakref__
Change log
==========
.. toctree::
:maxdepth: 5
changelog