Skip to content

Commit 50532af

Browse files
basic readme
1 parent e86a86b commit 50532af

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,11 @@
1-
# gdc-api-wrapper
21
Genomic Data Commons API wrapper
2+
================================
3+
A simple Python wrapper for the [GDC Application Programming Interface (API)](https://portal.gdc.cancer.gov/)
4+
5+
[![Build Status](https://travis-ci.com/histolab/gdc-api-wrapper.svg?branch=master)](https://travis-ci.com/histolab/gdc-api-wrapper)
6+
7+
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.
8+
9+
## Features implemented
10+
- Downloading a Single File using GET
11+
- Downloading Multiple Files using POST

gdcapiwrapper/__init__.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ class APITokenMissingError(Exception):
2424
)
2525

2626
session = requests.Session()
27-
session.params = {}
28-
session.params["api_token"] = GDC_API_TOKEN
29-
session.params["api_base_url"] = GDC_API_BASE_URL
27+
session.params = {"api_token": GDC_API_TOKEN, "api_base_url": GDC_API_BASE_URL}
3028

3129
from .data import Data # isort:skip # noqa

0 commit comments

Comments
 (0)