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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file gdc-api-wrapper-0.1.tar.gz.

File metadata

  • Download URL: gdc-api-wrapper-0.1.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.3

File hashes

Hashes for gdc-api-wrapper-0.1.tar.gz
Algorithm Hash digest
SHA256 e216cfc294e71e84fd14df7f09fd9a31a0b79f70f3606ee9f54dd9f4ebfb8bea
MD5 4d64a39cffeaca4431f3468f9e13d1cb
BLAKE2b-256 15b011b1de3b319d11e4f45fd183c3a7bf299a26db16f7bafa183662f93a6e84

See more details on using hashes here.

File details

Details for the file gdc_api_wrapper-0.1-py3-none-any.whl.

File metadata

  • Download URL: gdc_api_wrapper-0.1-py3-none-any.whl
  • Upload date:
  • Size: 8.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.3

File hashes

Hashes for gdc_api_wrapper-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cb5835c294737a97dcf8d8dfee5b63054a6fe97ce874df814e7205b537f2f551
MD5 82552481d43976ec05faca45b18bf8ad
BLAKE2b-256 c024a289b5c89fcc44e1b2dd481526963a56e2b7d3998523e7cdbda74a32a3f4

See more details on using hashes here.

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