module documentation

Git Large File Storage (LFS) support.

This module provides support for Git LFS, which is a Git extension for versioning large files. It replaces large files with text pointers inside Git, while storing the file contents on a remote server.

Key components: - LFS pointer file parsing and creation - LFS object storage and retrieval - HTTP client for LFS server communication - Integration with dulwich repositories

Class FileLFSClient LFS client for file:// URLs that accesses local filesystem.
Class HTTPLFSClient LFS client for HTTP/HTTPS operations.
Class LFSAction LFS action structure.
Class LFSBatchObject LFS batch object structure.
Class LFSBatchResponse LFS batch response structure.
Class LFSClient Base class for LFS client operations.
Class LFSErrorInfo LFS error structure.
Class LFSFilterDriver LFS filter driver implementation.
Class LFSPointer Represents an LFS pointer file.
Class LFSStore Stores objects on disk, indexed by SHA256.
Exception LFSError LFS-specific error.
Variable logger Undocumented
Function _get_lfs_user_agent Get User-Agent string for LFS requests, respecting git config.
Function _is_valid_lfs_url Check if a URL is valid for LFS.
logger =

Undocumented

def _get_lfs_user_agent(config: Config | None) -> str:

Get User-Agent string for LFS requests, respecting git config.

def _is_valid_lfs_url(url: str) -> bool:

Check if a URL is valid for LFS.

Git LFS supports http://, https://, and file:// URLs.

Parameters
url:strURL to validate
Returns
boolTrue if URL is a valid LFS URL, False otherwise