python

package
v0.10.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 10, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package python provides Python specific functionality for librarian.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildClientDocumentationURI added in v0.8.4

func BuildClientDocumentationURI(libraryName, repoMetadataName string) string

BuildClientDocumentationURI builds the URI for the client documentation for the library. TODO(https://github.com/googleapis/librarian/issues/4175): make this function package-private (or inline it) after migration, when we won't need to determine whether or not to specify an override.

func Bump added in v0.8.1

func Bump(output, version string) error

Bump updates the version number in the library with the given output directory.

func Clean added in v0.8.4

func Clean(lib *config.Library) error

Clean removes all generated code from beneath the given library's output directory. If the output directory does not currently exist, this function is a no-op.

func DefaultLibraryName added in v0.8.1

func DefaultLibraryName(api string) string

DefaultLibraryName derives a library name from an API path by stripping the version suffix and replacing "/" with "-". For example: "google/cloud/secretmanager/v1" -> "google-cloud-secretmanager".

func DefaultOutput added in v0.8.4

func DefaultOutput(name, defaultOutput string) string

DefaultOutput derives an output path from a library name and a default output directory. Currently, this just assumes each library is a directory directly underneath the default output directory.

func Generate

func Generate(ctx context.Context, cfg *config.Config, library *config.Library, srcs *sources.Sources) error

Generate generates a Python client library.

func Install added in v0.10.0

func Install(ctx context.Context) error

Install installs Python pip tool dependencies.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL