@@ -3,6 +3,24 @@ pyDataverse
33
44Release v\ |version |.
55
6+ .. image :: https://travis-ci.com/AUSSDA/pyDataverse.svg?branch=master
7+ :target: https://travis-ci.com/AUSSDA/pyDataverse
8+
9+ .. image :: https://img.shields.io/pypi/v/pyDataverse.svg
10+ :target: https://pypi.org/project/pyDataverse/
11+
12+ .. image :: https://img.shields.io/pypi/wheel/pyDataverse.svg
13+ :target: https://pypi.org/project/pyDataverse/
14+
15+ .. image :: https://img.shields.io/pypi/pyversions/pyDataverse.svg
16+ :target: https://pypi.org/project/pyDataverse/
17+
18+ .. image :: https://readthedocs.org/projects/pydataverse/badge/?version=latest
19+ :target: https://pydataverse.readthedocs.io/en/latest
20+
21+ .. image :: https://coveralls.io/repos/github/AUSSDA/pyDataverse/badge.svg
22+ :target: https://coveralls.io/github/AUSSDA/pyDataverse
23+
624.. image :: https://img.shields.io/github/license/aussda/pydataverse.svg
725 :target: https://opensource.org/licenses/MIT
826
@@ -27,28 +45,26 @@ Quickstart
2745
2846 **Usage **
2947
30- .. code-block :: python
31-
32- >> > from pyDataverse.api import Api
33- >> > # establish connection
34- >> > base_url = ' http://demo.dataverse.org'
35- >> > api = Api(base_url)
36- >> > api.status
37- ' OK'
38- >> > # get dataverse
39- >> > dv = ' ecastro' # dataverse alias or id
40- >> > resp = api.get_dataverse(dv)
41- >> > resp.json()[' data' ][' creationDate' ]
42- ' 2015-04-20T09:29:39Z'
43- >> > # get dataset
44- >> > resp = api.get_dataset(identifier)
45- >> > resp.json()[' data' ][' id' ]
46- 24
47- >> > # get datafile
48- >> > datafile_id = ' 32' # file id of the datafile
49- >> > resp = api.get_datafile(datafile_id)
50- >> > resp
51- < Response [200 ]>
48+ >>> from pyDataverse.api import Api
49+ >>> # establish connection
50+ >>> base_url = ' http://demo.dataverse.org'
51+ >>> api = Api(base_url)
52+ >>> api.status
53+ 'OK'
54+ >>> # get dataverse
55+ >>> dv = ' ecastro' # dataverse alias or id
56+ >>> resp = api.get_dataverse(dv)
57+ >>> resp.json()[' data' ][' creationDate' ]
58+ '2015-04-20T09:29:39Z'
59+ >>> # get dataset
60+ >>> resp = api.get_dataset(identifier)
61+ >>> resp.json()[' data' ][' id' ]
62+ 24
63+ >>> # get datafile
64+ >>> datafile_id = ' 32' # file id of the datafile
65+ >>> resp = api.get_datafile(datafile_id)
66+ >>> resp
67+ <Response [200]>
5268
5369
5470Requirements
0 commit comments