class documentation
class LFSClient:
Known subclasses: dulwich.lfs.FileLFSClient, dulwich.lfs.HTTPLFSClient
Constructors: LFSClient.from_url(url, config), LFSClient(url, config)
Base class for LFS client operations.
| Class Method | from |
Create LFS client from git config. |
| Class Method | from |
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 |
Undocumented |
Create LFS client from git config.
Returns the appropriate subclass (HTTPLFSClient or FileLFSClient) based on the URL scheme.
Create appropriate LFS client based on URL scheme.
| Parameters | |
url:str | LFS server URL (http://, https://, or file://) |
config:Config | None | Optional git config for authentication/proxy settings |
| Returns | |
LFSClient | HTTPLFSClient for http/https URLs, FileLFSClient for file URLs |
| Raises | |
ValueError | If URL is invalid or has unsupported scheme |