Skip to main content

Download manager for genomscan portal

Project description

GSport

GSport is a command-line tool designed to accelerate file downloads from the GenomeScan Customer Portal. It leverages multiprocessing to significantly improve download speeds and efficiency. Works on linux, windows and macOS.

WARNING: This is version 2.0, some of the command line interface has changed partially in preparation for version 3.0 that will be released (hopefully end of 2025) when we start using our new customer portal. Verion 1.x should still be usable during version 2.0, but when version 3.0 is introduced both version 1 and 2 will no longer work.

Prerequisites

Ensure you have the following installed:

  • Python 3.8.X
  • Pip (Python package manager)
  • python-venv (Linux/ macOS) or virtualenv(windows)

Installation

There are 2 options for installing GSport.

  • Pip install
  • Manual installation

Pip install

pip install gsport

Manual install

Linux/macOS

git clone https://github.com/genomescan/gsport.git
cd gsport
python3 -m venv env
source env/bin/activate
pip install -r requirements.txt

Windows

git clone https://github.com/genomescan/gsport.git
cd gsport
virtualenv env
env\Scripts\activate.bat
pip install -r requirements.txt

Usage

To see all available options, run:

python gsport.py --help

This will print a full list of available options and flags.

List Files

# shows all the files associated with the project from the top level but not any directory or files within directories
gsport list 100000
 # shows all the folders/directories under that project but not their content   
gsport list 100000 -m
# shows all the files under a directory for that project, no subfolder or files in there
gsport list 100000 -d directory
# shows all the files and folders under a directory for that project but not the content of the folders
gsport list 100000 -m -d directory
# shows all the files and folders in a tree like structure
gsport list 100000 -r
# shows all the files and folders in a tree like structure under a directory for that project
gsport list 100000 -r -d directory

Download All Files

# downloads al the files associated with the project from the top level but not any files within directories
gsport all 100000
# downloads only the files directly under a directory, no subfolder or files in there
gsport all 100000 -d directory
# downloads all the files and folders for that project
gsport all 100000 -r
# downloads all the files and folders under a directory for that project
gsport all 100000 -r -d directory
# downloads all the files associated with the project from the top level but not any files within directories and outputs them in a directory called outputdir
gsport all 100000 -o outputdir

Download Specific Files

# downloads the specific files, they have to be in the root directory
gsport download 100000 test.txt test2.txt
# downloads the specific files and outputs them in a directory called outputdir
gsport download 100000 test.txt -o outputdir

Show available projects

# List all projects you have access to
gsport -p

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

gsport-2.0.1.tar.gz (15.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gsport-2.0.1-py3-none-any.whl (17.0 kB view details)

Uploaded Python 3

File details

Details for the file gsport-2.0.1.tar.gz.

File metadata

  • Download URL: gsport-2.0.1.tar.gz
  • Upload date:
  • Size: 15.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.2

File hashes

Hashes for gsport-2.0.1.tar.gz
Algorithm Hash digest
SHA256 5c10e295c1375c7d4843033a7f1ea59f3c4aa7def69b382285e2a9dff9569d04
MD5 8354b55bac8815b91315d2a59be27941
BLAKE2b-256 b2508f331e1fa52a7f8c85ce04dafa15649edd0818499ba32cafdfe7cda48220

See more details on using hashes here.

File details

Details for the file gsport-2.0.1-py3-none-any.whl.

File metadata

  • Download URL: gsport-2.0.1-py3-none-any.whl
  • Upload date:
  • Size: 17.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.2

File hashes

Hashes for gsport-2.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b5960e10a10dfc20346a77153e21af242c047437b3886a6e7b5cfe20e08dfd40
MD5 33eafeed34799014dae995a8b1ae1d8b
BLAKE2b-256 546bbac4d1579c0ac9690a771930becdb2bf7b749d5a13bcf8216097bfc495da

See more details on using hashes here.

Supported by

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