Skip to main content

No project description provided

Project description

Vis Downloader

Download visibilties from CASDA.

Installation

I haven't published on PyPI yet so run:

# From PyPI
pip install vis-downloader
# - OR -
# Latest git version
pip install git+https://github.com/AlecThomson/vis-downloader

Usage

To make sure you don't DDoS CASDA, please make use of the --max-workers option.

usage: vis_download [-h] [--beam BEAM] [--output-dir OUTPUT_DIR] [--username USERNAME] [--store-password] [--reenter-password]
                    [--max-workers MAX_WORKERS] [--extract-tar] [--download-holography] [--log-only] [--disable-progress] [--quiet]
                    [--max-retries MAX_RETRIES]
                    sbids [sbids ...]

Download visibilities from CASDA for a given SBID

positional arguments:
  sbids                 SBID to download

options:
  -h, --help            show this help message and exit
  --beam BEAM           Beam to download. Defaults to all.
  --output-dir OUTPUT_DIR
                        Output directory. If unset a directory for each SBID will be created.
  --username USERNAME   CASDA username
  --store-password      Store password in keyring
  --reenter-password    Reenter password
  --max-workers MAX_WORKERS
                        Number of workers
  --extract-tar         If a file is a tarball attempt to extract it. This removes the original tar file if successful.
  --download-holography
                        Download the evaluation files that contain the holography data
  --log-only
  --disable-progress    Disable the progress bars produced by `tqdm`.
  --quiet               Silence logged output and progress bar updates
  --max-retries MAX_RETRIES
                        The maximum number of retries allowed for each file when downloading.

To cache your CASDA credentials run:

casda_login -h
# usage: casda_login [-h] username
#
# Login to CASDA and save credentials
#
# positional arguments:
#   username    Username for CASDA
#
# options:
#   -h, --help  show this help message and exit

Note that you will also want to set the CASDA_USERNAME environment variable for non-interactive use.

License

vis-downloader is distributed under the terms of the MIT license.

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

vis_downloader-1.1.0.tar.gz (13.8 kB view details)

Uploaded Source

Built Distribution

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

vis_downloader-1.1.0-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

Details for the file vis_downloader-1.1.0.tar.gz.

File metadata

  • Download URL: vis_downloader-1.1.0.tar.gz
  • Upload date:
  • Size: 13.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for vis_downloader-1.1.0.tar.gz
Algorithm Hash digest
SHA256 c209b7cc19e1c1a4bcaf3e66dc2525d4cc8ef402ee4b7d2f19ae66c12ef58c56
MD5 288be7e730192c00729922025f3a3328
BLAKE2b-256 ba825a852496f4f140b984ad64081647e165f84034f5c288fbb26d6c1c838a3a

See more details on using hashes here.

Provenance

The following attestation bundles were made for vis_downloader-1.1.0.tar.gz:

Publisher: cd.yml on AlecThomson/vis-downloader

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file vis_downloader-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: vis_downloader-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 11.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for vis_downloader-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 095176412c9c37f44494e50ad45260ac3d6b470261cc3c370521588a254af30e
MD5 7c5ddafbafd6ac4faa411bd18b32512c
BLAKE2b-256 dccd2d668d9329c8d872e0542c14718e4880fc89480d72460883c7165fd36223

See more details on using hashes here.

Provenance

The following attestation bundles were made for vis_downloader-1.1.0-py3-none-any.whl:

Publisher: cd.yml on AlecThomson/vis-downloader

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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