python

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2026 License: Apache-2.0 Imports: 12 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 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 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 DefaultOutputByName added in v0.8.1

func DefaultOutputByName(name, defaultOutput string) string

DefaultOutputByName 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, library *config.Library, googleapisDir string) error

Generate generates a Python client library.

Types

This section is empty.

Jump to

Keyboard shortcuts

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