Skip to main content

Data downloader library for Cosmology related data

Project description

cosmo-torrent

This project offers a library to access data from central storage location and a command line tool to upload data.

This can be used to avoid shipping large data sets within Python packages.

Data upload

After installing cosmo-torrent the command line command

$ cosmo-torrent-upload --help
Usage: cosmo-torrent-upload [OPTIONS] FOLDER

Options:
  --identifier TEXT  data set identifier for later download  [required]
  --user TEXT        user name for scp to server
  --force            overwrite existing dataset
  --help             Show this message and exit.

can be used to upload data to a central storage location (details in the Internals section below).

For example:

$ cosmo-torrent-upload --identifier test_data.2024.08 --user schmittu .

uploads the content of the current working folder using the identifier test_data.2024.08.

Data accesss

The data can be accessed using the identifier used for the upload. On first access, the data is downloaded to a local cache folder. For future access, the dataset can be accessed directly.

from cosmo_torrent import data_set

test_data_folder = data_set('test_data.2024.07')

Here test_data_folder will now be a local folder with the specified data set.

Internals

The data is stored at /net/ipa-gate.phys.ethz.ch/export/ipa/public_html/cosmo-torrent at the DPHYS NAS which can be accessed via https://share.phys.ethz.ch/~ipa/cosmo-torrent

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

cosmo_torrent-0.2.0.tar.gz (10.5 MB view details)

Uploaded Source

Built Distribution

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

cosmo_torrent-0.2.0-py2.py3-none-any.whl (6.7 kB view details)

Uploaded Python 2Python 3

File details

Details for the file cosmo_torrent-0.2.0.tar.gz.

File metadata

  • Download URL: cosmo_torrent-0.2.0.tar.gz
  • Upload date:
  • Size: 10.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.4

File hashes

Hashes for cosmo_torrent-0.2.0.tar.gz
Algorithm Hash digest
SHA256 820ce30bee156362e0e6f3ba4efec8ab21e5a565c3c799cdef1c1800cdf23962
MD5 a5651302c3ef79e7487de2586d316c51
BLAKE2b-256 96dffa0627a7e27620088e57bf136d639a7cbbc27edb56295fa071cab200e520

See more details on using hashes here.

File details

Details for the file cosmo_torrent-0.2.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for cosmo_torrent-0.2.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d34c87451df0367a1c09858efb0183007cb20d2e2085969f6923019d8c94d82e
MD5 49bf791cd6f0965de2f8285256e29981
BLAKE2b-256 4588003856f985a4658fc1b0f40f288ea880ee81208de4ba7319a53e771492c3

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