Vis Downloader
Download visibilties from CASDA.
Installation
Use pip:
# 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] [--scan-id SCAN_ID] [--vis-type {craco,science}] [--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] [--resume]
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.
--scan-id SCAN_ID Scan ID to download. Defaults to all.
--vis-type {craco,science}
Filter visibilities by product type: 'craco' (cracoData / uvfits) or 'science' (scienceData / ms).
Defaults to None (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.
--resume Resume partially downloaded files and skip already downloaded or extracted files.
Resuming an interrupted download
Interrupted downloads can be continued by re-running the same command with --resume e.g.:
vis_download 12345 --output-dir /path/to/data --max-workers 4 --extract-tar --resume
A file that was partway through continues from the byte it stopped at, and files that already finished are skipped without re-querying CASDA. With --extract-tar, an archive that was already unpacked is skipped as well; if an extraction was itself interrupted, the tarball is still on disk and the data is extracted again rather than left incomplete.
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.
Metadata
Release files for vis-downloader 1.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| vis_downloader-1.3.0.tar.gz | 248.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| vis_downloader-1.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 263.9 kB
Release files / vis_downloader-1.3.0.tar.gz
| Download URL | vis_downloader-1.3.0.tar.gz |
|---|---|
| Size | 248.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c5c50d2e22e569c0d3f63371e46aa134d986a3bdd2b965fcc6dd2b33e1e8bc1b
|
|
BLAKE2b-256 checksum How to use checksums |
481e99395095d986ac169795c03e528d72947b9d483c8d5d0efb5a24e22b700b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 20, 2026.
Transparency logRelease files / vis_downloader-1.3.0-py3-none-any.whl
| Download URL | vis_downloader-1.3.0-py3-none-any.whl |
|---|---|
| Size | 15.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c4d2fa49247c9011107f387663b42f3f084e036d1071393ba440487be93c48c4
|
|
BLAKE2b-256 checksum How to use checksums |
37d6c7aacb5f93c2a5382558d631380b61392f7a7d6dcac1f91b741c0f487c34
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 20, 2026.
Transparency log