Skip to main content

cernopendata-client.

Project description

https://img.shields.io/pypi/pyversions/cernopendata-client.svg https://github.com/cernopendata/cernopendata-client/workflows/CI/badge.svg https://readthedocs.org/projects/cernopendata-client/badge/?version=latest https://codecov.io/gh/cernopendata/cernopendata-client/branch/master/graph/badge.svg https://badges.gitter.im/Join%20Chat.svg https://img.shields.io/github/license/cernopendata/cernopendata-client.svg

About

cernopendata-client is a command-line tool to facilitate downloading files from the CERN Open Data portal. The tool enables to query datasets hosted on the CERN Open Data portal and to download and verify the individual data set files.

Installation

$ pip install cernopendata-client

Usage

The detailed information on how to install and use cernopendata-client can be found in cernopendata-client.readthedocs.io.

Development

If you would like to contribute code to the cernopendata-client, you can set up a local development environment as follows:

  1. Clone the repository:

$ git clone https://github.com/cernopendata/cernopendata-client
  1. Setup a virtual environment:

$ python3 -m venv env
$ source env/bin/activate
  1. Install cernopendata-client in editable mode:

$ pip install -e '.[tests]'

Changes

Version 0.4.0 (2024-08-22)

  • Adds support for Python 3.11 and 3.12.

  • Improves get-metadata --output-field command by adding a new --filter option allowing to output only selected field values matching desired criteria.

  • Changes container image base to Fedora 38 and slightly optimises image size.

  • Drops support for Python 2.7.

Version 0.3.0 (2022-03-16)

  • Adds support for Python 3.10.

  • Improves download-files command to resume interrupted downloads when using HTTP downloads with pycurl engine.

  • Improves XRootD downloader by using vanilla XRootD package. Changes xrootdpyfs to xrootd download engine.

  • Improves download-files command with a new option --download-engine to select pycurl or requests engines when downloading files over HTTP.

  • Fixes minor issues with file index unwinding and output directory handling.

Version 0.2.0 (2020-11-19)

  • Adds new list-directory command to list content of EOS directories holding open data files.

  • Adds support for Python 3.9.

  • Improves download-files command to allow using XRootD protocol.

  • Improves download-files command to allow using HTTPS protocol.

  • Improves download-files command to optionally verify file integrity as soon as files are being downloaded.

  • Improves get-file-locations command to optionally output file sizes and checksums.

  • Improves output format colouring to better indicate notes and errors.

  • Fixes minor issues and improves code coverage.

Version 0.1.0 (2020-09-24)

  • Enriches download-files command to optionally download only files matching certain name, regexp, or range count.

  • Adds new verify-files command to verify number, size, and checksum of downloaded files.

  • Improves get-metadata command with respect to outputting only certain desired metadata field values.

  • Enriches user documentation.

Version 0.0.1 (2020-09-09)

  • Initial public release.

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

cernopendata_client-0.4.0.tar.gz (102.2 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page