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.1.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.1.0-py2.py3-none-any.whl (6.5 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: cosmo_torrent-0.1.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.1.0.tar.gz
Algorithm Hash digest
SHA256 c4665dc39ff50580c00f4159d0a9a19e58b6b9bb0d99c8fccfeb64700d230216
MD5 5d553460c9e4b994224dc49b1b9a7ff2
BLAKE2b-256 12fc8ac2c2f674b22b4fc23b2cd16c6a7d5e431b771bff9f02015b8cdf197b52

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for cosmo_torrent-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 96ac6a3bf1f13a32f381a35301a287108ffc4167601198e042d3b5793fb537d4
MD5 d088c4b98a738a38578fa4128b172592
BLAKE2b-256 8d40cfae17f6e54e69c18822898d13f2f74c5fb9424fb551730f990b1b051b62

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