Skip to main content

CADC VOS Class Libraries

Project description

https://img.shields.io/pypi/v/vos.svg

vos is a set of python modules and scripts that ease access to VOSpace.

The default installation of vos is tuned for accessing the VOSpace provided by the Canadian Advanced Network For Astronomical Research (CANFAR)

VOSpace is a Distributed Cloud storage service for use in Astronomy.

There are two ways to use vos:

  1. access VOSpace using the command-line script: eg. vcp

  2. use the vos module inside a Python script: import vos

Authentication to the CANFAR VOSpace service is performed using X509 security certificates, header tokens or username/password pairs. The authentication system is managed by the CADC Group Management Service (GMS).

To retrieve an X509 security certificate for use with the vos tools use the cadc-get-cert script included with this package.

Additional information is available in the CANFAR documentation

System Requirments

  • A CANFAR VOSpace account (required for WRITE access, READ access can be anonymous)

  • python3.7 or later

Installation

vos is distributed via PyPI/vos and PyPI is the most direct way to get the latest stable release:

pip install vos --upgrade --user

Or, you can retrieve the github distribution and use

python setup.py install --user

Tutorial

  1. Get a CANFAR account

  2. Install the vos package.

  3. Retrieve a X509/SSL certificate using the cadc-get-cert script installed as part of the cadcutils package that is automatically installed wiht vos.

  4. Example Usage.

    1. Commandline usage:

      • vls -l vos: [List a vospace]

      • vcp vos:jkavelaars/test.txt ./ [copies test.txt to the local directory from vospace]

      • vchmod g+q vos:VOSPACE/foo/bar.txt 'GROUP1, GROUP2, GROUP3' to give three user GROUPs permission to write to this file.

      • vmkdir --help [get a list of command line options and arguments]

      • vmkdir, vrm, vrmdir, vsync vcat, vchmod and vln

      • The complete list of vos commmand line tools can be found using pydoc vos.commands

    2. In a Python script (the example below provides a listing of a vospace container)

      #!python
      import vos
      client = vos.Client()
      client.listdir('vos:jkavelaars')

Integration Tests

The integration tests are, at present, designed to run only with the CADC VOSpace and test accounts credentials. Tests assume that vos and/or vofs packages have been installed.

Run the tests:

$ ./test/scripts/vospace-all.tcsh

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

vos-3.6.4.tar.gz (103.4 kB view details)

Uploaded Source

Built Distribution

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

vos-3.6.4-py3-none-any.whl (153.4 kB view details)

Uploaded Python 3

File details

Details for the file vos-3.6.4.tar.gz.

File metadata

  • Download URL: vos-3.6.4.tar.gz
  • Upload date:
  • Size: 103.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for vos-3.6.4.tar.gz
Algorithm Hash digest
SHA256 67e4e24689ee881124b6670d7d2fc6527cc404687fc527fffc20cf5b1bd4c0bd
MD5 c00fd1c6760a42de2278359fc732a493
BLAKE2b-256 3e6c445bbedf2f90e71c09ff890aa8b409af5d074b1578eef383117cbcdfd09a

See more details on using hashes here.

Provenance

The following attestation bundles were made for vos-3.6.4.tar.gz:

Publisher: cibuild.yml on opencadc/vostools

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

File details

Details for the file vos-3.6.4-py3-none-any.whl.

File metadata

  • Download URL: vos-3.6.4-py3-none-any.whl
  • Upload date:
  • Size: 153.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for vos-3.6.4-py3-none-any.whl
Algorithm Hash digest
SHA256 4a7b2248bad0f50da465a47ab1c819dff8378c189c184c2d8e2c17a714c62f17
MD5 d80d2b641f698cfa5708ae4faf89e375
BLAKE2b-256 0c21e2d351883aa11b9175223a78d3a77b0fedf86461596cdbfb019893ca9260

See more details on using hashes here.

Provenance

The following attestation bundles were made for vos-3.6.4-py3-none-any.whl:

Publisher: cibuild.yml on opencadc/vostools

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