A Git LFS client implementation in Python
Project description
Giftless Client
A Git LFS client library implemented in Python, compatible with the Giftless Git LFS server.
giftless-client
is tested on Python 2.7 and 3.6+.
Installation
You can install this library directly from pypi:
(venv) $ pip install giftless-client
API
This module exposes one main class: LfsClient
. Typically, you only need to use this class to perform most
Git LFS operations.
LfsClient
class
Instantiating a Client
from giftless_client import LfsClient
client = LfsClient(
lfs_server_url='https://git-lfs.example.com', # Git LFS server URL
auth_token='somer4nd0mT0ken==', # Bearer token if required by the server (optional)
transfer_adapters=['basic'] # Enabled transfer adapters (optional)
)
The transfer_adapters
parameter is optional, and represents a list of supported transfer adapters by priority
to negotiate with the server; Typically, there is no reason to provide this parameter.
Downloading a File from LFS storage
TBD
Uploading a File to LFS storage
TBD
Sending an LFS batch
API request
TBD
Usage in Command Line
While the main use for giftless-client
is as a client library for other projects, this module does include some
command line functionality.
Run the following command to get more information:
(venv) $ giftless-client --help
License
Giftless Client is free software distributed under the terms of the MIT license. See LICENSE for details.
Giftless Client is (c) 2020 Datopian / Viderum Inc.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for giftless_client-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 833118b45898a4f15e7146a7f2789ee255261b26e6e13980ebc314b8ed5e0d08 |
|
MD5 | c1bc0787e00f3a6bcbd8d0abac52312c |
|
BLAKE2b-256 | a87f7f5a82175fa85aa4512c4c3807a491a1acd6b69e613944fbd2411cfabb81 |