Skip to main content

A simple Python wrapper for the GDC Application Programming Interface

Project description

Genomic Data Commons API wrapper

A simple Python wrapper for the GDC Application Programming Interface (API)

Build Status Coverage Status

The GDC API drives the GDC Data and Submission Portals and provides programmatic access to GDC functionality. This includes searching for, downloading, and submitting data and metadata.

Features implemented

  • Downloading a Single File using GET
  • Downloading Multiple Files using POST

Usage

Installation

pip install gdc-api-wrapper

Download single file

from gdcapiwrapper.data import Data
Data.download(uuid="uuid-file-you-wanna-download", path="/local/path", name="filename")

NOTE: path and name are optional, by default path is your current directory and if name is not provided it will be saved with the UUID as filname.

Download multiple files

from gdcapiwrapper.data import Data
Data.download_multiple(uuid_list=["UUID1", "UUID2", "UUID3"], path="/local/path")

NOTE: path is optional, by default path is your current directory.

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

gdc-api-wrapper-0.1.tar.gz (4.1 kB view hashes)

Uploaded Source

Built Distribution

gdc_api_wrapper-0.1-py3-none-any.whl (8.3 kB view hashes)

Uploaded Python 3

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