Skip to main content

fetch-data

Build Status Documentation Status codecov pypi License:MIT DOI

Download remote data (HTTP, FTP, SFTP) and store locally for data pipeline.

This package was created out of the frustration that it is very difficult to download data easily with intake. fetch-data is a mash-up of fsspec and pooch making it easy to download multiple files and store all the info, making it good for data pipeline applications.

Installation

Currently, this package is pip install git+https://github.com/lukegre/fetch-data.git

Basic usage

Use the download function directly:

flist = fd.download(url)

The file will be downloaded to the current directory and will be populated with a readme file, cached file list, and logging information.

Using with YAML catalogs

Use the catalog YAML entry

import fetch_data as fd
cat = fd.read_catalog(cat_fname)
flist = fd.download(**cat['entry_name'])

The catalog should be structured as shown below:

entry_name:
    url: remote path to file/s. Can contain *
    dest: where the file/s will be stored - can have optional {} placeholders that will be replaced
    meta:  # this will be written to the README file
        doi: url to the data source
        description: info about the data
        citation: how to cite this dataset
    placeholder: value  # optional will replace values in dest

Project based on the cookiecutter science project template.

Metadata

Release files for fetch-data 0.2.5.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fetch-data 0.2.5.2
File Size Uploaded
fetch_data-0.2.5.2.tar.gz 26.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for fetch-data 0.2.5.2
File Interpreter ABI Platform
fetch_data-0.2.5.2-py3-none-any.whl Python 3 none any Details

Total release size: 40.5 kB

Release files / fetch_data-0.2.5.2.tar.gz

Download URL fetch_data-0.2.5.2.tar.gz
Size 26.0 kB
Tags Source
SHA-256 checksum
How to use checksums
b71edea4e95a9290d01db2d66c07189c1cf74301993a44f5ce83107de106f375
BLAKE2b-256 checksum
How to use checksums
f48314159c41c5501d1de473651dc45c036f10ee4b79134748247b05897acd1d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

Release files / fetch_data-0.2.5.2-py3-none-any.whl

Download URL fetch_data-0.2.5.2-py3-none-any.whl
Size 14.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a1cbb6eefb0f80ebe26c8343026fae6d973041db6da988d88af3566b4a02baa0
BLAKE2b-256 checksum
How to use checksums
a8397990558bbf20a713d07ae9fcca505ac4ebd2d295abb8456a7bb0cb51f236
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

Release history Release notifications | RSS feed

This release

0.2.5.2 This release

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2

2 release files

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page