Metadata-Version: 2.1
Name: zenodo-downloader
Version: 0.1.0
Summary: A command-line tool to download files from Zenodo records
Home-page: https://github.com/surajpaib/zenodo-downloader
Author: Suraj
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: requests>=2.25.0
Requires-Dist: tqdm>=4.50.0

# Zenodo Downloader

A command-line tool to download files from Zenodo records efficiently with parallel downloading support.

## Installation

```bash
pip install zenodo-downloader
```

## Usage

Basic usage:
```bash
zenodo-download RECORD_ID -t YOUR_ACCESS_TOKEN
```

With all options:
```bash
zenodo-download RECORD_ID -t YOUR_ACCESS_TOKEN -d /path/to/output -w 10
```

### Arguments

- `RECORD_ID`: Zenodo record ID to download files from (required)
- `-t, --token`: Zenodo access token (required)
- `-d, --directory`: Directory to save downloaded files (default: ./downloads)
- `-w, --workers`: Number of parallel download workers (default: 5)

### Example

```bash
# Download all files from record 13799069 using 8 parallel workers
zenodo-download 13799069 -t YOUR_ACCESS_TOKEN -w 8 -d ./data
```

## Getting a Zenodo Access Token

1. Go to https://zenodo.org/account/settings/applications/
2. Create a new token with the necessary permissions
3. Copy the token and use it with the `-t` option

## Features

- Parallel downloading with configurable number of workers
- Progress bars for each file
- Automatic retry on failed downloads
- Configurable output directory
- Simple command-line interface

## Requirements

- Python >= 3.7
- requests >= 2.25.0
- tqdm >= 4.50.0

## License

MIT License
