diff --git a/README.md b/README.md index f9887dd..1665ca0 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,17 @@ Python client for Thoth's GraphQL API [![Build Status](https://travis-ci.org/openbookpublishers/thoth-client.svg?branch=master)](https://travis-ci.org/openbookpublishers/thoth-client) [![Release](https://img.shields.io/github/release/openbookpublishers/thoth-client.svg?colorB=58839b)](https://github.com/openbookpublishers/thoth-client/releases) [![License](https://img.shields.io/github/license/openbookpublishers/thoth-client.svg?colorB=ff0000)](https://github.com/openbookpublishers/thoth-client/blob/master/LICENSE) +## Usage +```sh +python3 -m pip install thothlibrary==0.5.0 ``` -python3 -m pip install thothlibrary==0.4 + +```python +from thothlibrary import ThothClient + +thoth = ThothClient() +all_works = thoth.works() +print(all_works) ``` + diff --git a/thothlibrary/__init__.py b/thothlibrary/__init__.py index 1edc165..0337dfb 100644 --- a/thothlibrary/__init__.py +++ b/thothlibrary/__init__.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 """GraphQL client for Thoth""" -__version__ = "0.4.0" +__version__ = "0.5.0" __author__ = "Javier Arias " __copyright__ = "Copyright (c) 2020 Open Book Publishers" __license__ = "Apache 2.0" diff --git a/thothlibrary/query.py b/thothlibrary/query.py index 7464017..a9949f0 100644 --- a/thothlibrary/query.py +++ b/thothlibrary/query.py @@ -64,7 +64,9 @@ class ThothQuery(): "generalNote", "toc", "coverUrl", - "coverCaption" + "coverCaption", + "publications { isbn publicationType }", + "contributions { fullName contributionType mainContribution }" ] } }