lfsData
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 datasetid: The ID of the desired repository, which can be found on the first page of each repositorybranch_name: The name of the branch where the desired file or data is storedfile_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
Metadata
Release files for lfsdata 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| lfsdata-0.0.2.tar.gz | 14.1 kB | Without provenance | Details for lfsdata-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| lfsdata-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for lfsdata-0.0.2-py3-none-any.whl |
Total release size: 29.3 kB
Release files / lfsdata-0.0.2.tar.gz
| Download URL | lfsdata-0.0.2.tar.gz |
|---|---|
| Size | 14.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
efc5ecd7dac87da9f4752c1c1be2e0043cf3914abffcb985344ae35189f2c1dc
|
|
BLAKE2b-256 checksum How to use checksums |
1c4dc8e2a082159128f9f39f5c88e2b616e49dcb651848d7093d5c0a40b32277
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.18
|
Release files / lfsdata-0.0.2-py3-none-any.whl
| Download URL | lfsdata-0.0.2-py3-none-any.whl |
|---|---|
| Size | 15.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bc50eaec148287532adb632391c4ec54739d2261c5cf8c6a6b5d9fe12c98b1dd
|
|
BLAKE2b-256 checksum How to use checksums |
71461776160308d45abf7d5c88a4ebf4a52d70c7b68b3017b540618c74ddc7ca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.18
|
Security for lfsdata 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.