class documentation
LFS client for HTTP/HTTPS operations.
| Method | __init__ |
Initialize HTTP LFS client. |
| Method | batch |
Perform batch operation to get transfer URLs. |
| Method | download |
Download an LFS object. |
| Method | upload |
Upload an LFS object. |
| Method | _get |
Get urllib3 pool manager with git config applied. |
| Method | _make |
Make an HTTP request to the LFS server. |
| Method | _parse |
Parse JSON response into LFSBatchResponse dataclass. |
| Instance Variable | _pool |
Undocumented |
Inherited from LFSClient:
| Class Method | from |
Create LFS client from git config. |
| Class Method | from |
Create appropriate LFS client based on URL scheme. |
| Instance Variable | config |
Undocumented |
| Property | url |
Get the LFS server URL without trailing slash. |
| Instance Variable | _base |
Undocumented |
def _get_pool_manager(self) ->
urllib3.PoolManager | urllib3.ProxyManager | AuthCallbackPoolManager:
¶
Get urllib3 pool manager with git config applied.
def _make_request(self, method:
str, path: str, data: bytes | None = None, headers: dict[ str, str] | None = None) -> bytes:
¶
Make an HTTP request to the LFS server.