class documentation

Base class for LFS client operations.

Class Method from_config Create LFS client from git config.
Class Method from_url Create appropriate LFS client based on URL scheme.
Method __init__ Initialize LFS client.
Method download Download an LFS object.
Method upload Upload an LFS object.
Instance Variable config Undocumented
Property url Get the LFS server URL without trailing slash.
Instance Variable _base_url Undocumented
def from_config(cls, config: Config) -> LFSClient | None:

Create LFS client from git config.

Returns the appropriate subclass (HTTPLFSClient or FileLFSClient) based on the URL scheme.

def from_url(cls, url: str, config: Config | None = None) -> LFSClient:

Create appropriate LFS client based on URL scheme.

Parameters
url:strLFS server URL (http://, https://, or file://)
config:Config | NoneOptional git config for authentication/proxy settings
Returns
LFSClientHTTPLFSClient for http/https URLs, FileLFSClient for file URLs
Raises
ValueErrorIf URL is invalid or has unsupported scheme
def __init__(self, url: str, config: Config | None = None):

Initialize LFS client.

Parameters
url:strLFS server URL (http://, https://, or file://)
config:Config | NoneOptional git config for authentication/proxy settings
def download(self, oid: str, size: int, ref: str | None = None) -> bytes:

Download an LFS object.

Parameters
oid:strObject ID (SHA256)
size:intExpected size
ref:str | NoneOptional ref name
Returns
bytesObject content
def upload(self, oid: str, size: int, content: bytes, ref: str | None = None):

Upload an LFS object.

Parameters
oid:strObject ID (SHA256)
size:intObject size
content:bytesObject content
ref:str | NoneOptional ref name
config =

Undocumented

url: str =

Get the LFS server URL without trailing slash.

_base_url =

Undocumented