Skip to main content

metadata.py

Source: src/sunholo/gcs/metadata.py

Functions

check_gcs_file_size(source: str) -> int

Check the size of a file in Google Cloud Storage without downloading the entire file.

Args: source: str The Google Cloud Storage URI of the file to check (e.g., 'gs://bucket_name/file_name').

Returns: int: The size of the file in bytes, or -1 if the size cannot be determined.

get_object_metadata(bucket_name, object_name)

No docstring available.

Sunholo Multivac

Get in touch to see if we can help with your GenAI project.

Contact us

Other Links

Sunholo Multivac - GenAIOps

Copyright ©

Holosun ApS 2025