Skip to main content

No project description provided

Project description

lfsData

PyPI Version Python Versions License Pylint Unit Test

This document provides instructions on how to work with Git Large File Storage (LFS) for the `qomnet` project.

Getting Started with Git LFS

Git LFS is a Git extension that improves handling of large files by replacing them with text pointers inside Git, while storing the file content on a remote server.

Downloading single file

Before execution of this script, create an access token with read_api capability and set it as an Environment Variable for GITLAB_ACCESS_TOKEN. Here's how, depending on your operating system: (Gitlab token creation tutorial)

  • On Windows:
$env:GITLAB_ACCESS_TOKEN="your_access_token_here"
  • On Linux:
export GITLAB_ACCESS_TOKEN="your_access_token_here"

It's also possible to set this variable in PyCharm. Check out this tutorial for guidance.

Once you've set the GITLAB_ACCESS_TOKEN, you can download a file using the following Python function, which includes these parameters:

  • host: The domain from which we want to download the dataset
  • id: The ID of the desired repository, which can be found on the first page of each repository
  • branch_name: The name of the branch where the desired file or data is stored
  • file_path: The address of the desired file in the repository
DataLoader().gitlab_download("https://git.arusha.dev", 123, "branch_name", "data/test.gz")

Executing this command initiates the file download process, which is accompanied by a progress bar. The downloaded file is placed in the HOME directory, at: .local/datasets/{project_id}/{branch_name}/{file_path}. You can locate your home directory path based on your operating system:

Operating system Path
Windows C:\Users<username>
Linux /home/
macOS /Users/

In addition, you might find this tutorial about LFS very helpful.

Installation

To install Git LFS, use the following command:

git lfs install

Clone Repository

To clone repository with only pointer files, use following commands:

  • Linux (bash):
GIT_LFS_SKIP_SMUDGE=1 git clone ssh://git@git.arusha.dev:9022/majd/datasets/qomnet.git
  • Windows:
$env:GIT_LFS_SKIP_SMUDGE="1"
git clone ssh://git@git.arusha.dev:9022/majd/datasets/qomnet.git

Tracking Files :

git lfs track "*.psd"
git add .gitattributes

Committing & Pushing Changes :

To commit and push changes, type:

git add file.psd
git commit -m "Add design file"
git push origin main

For more information about Git LFS, check here

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lfsdata-0.0.2.tar.gz (14.1 kB view details)

Uploaded Source

Built Distribution

lfsdata-0.0.2-py3-none-any.whl (15.2 kB view details)

Uploaded Python 3

File details

Details for the file lfsdata-0.0.2.tar.gz.

File metadata

  • Download URL: lfsdata-0.0.2.tar.gz
  • Upload date:
  • Size: 14.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for lfsdata-0.0.2.tar.gz
Algorithm Hash digest
SHA256 efc5ecd7dac87da9f4752c1c1be2e0043cf3914abffcb985344ae35189f2c1dc
MD5 137a993fb1feccbc79bc27d1438b72a8
BLAKE2b-256 1c4dc8e2a082159128f9f39f5c88e2b616e49dcb651848d7093d5c0a40b32277

See more details on using hashes here.

File details

Details for the file lfsdata-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: lfsdata-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 15.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for lfsdata-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 bc50eaec148287532adb632391c4ec54739d2261c5cf8c6a6b5d9fe12c98b1dd
MD5 004750daceec75362b32fb8f1d19137f
BLAKE2b-256 71461776160308d45abf7d5c88a4ebf4a52d70c7b68b3017b540618c74ddc7ca

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page