Skip to content

Commit

Permalink
Merge tag 'vparamsnotdata' into develop
Browse files Browse the repository at this point in the history
v0.0.2rc1
  • Loading branch information
JavierLuna committed Sep 3, 2019
2 parents ddf0441 + 2c59be2 commit 1f1c136
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# PyCaprio
![Python versions](https://img.shields.io/badge/Python-3.6%2C%203.7-green.svg) ![PyPi](https://img.shields.io/badge/PyPi-0.0.1-brightgreen.svg) [![CircleCI](https://circleci.com/gh/Savanamed/pycaprio.svg?style=svg)](https://circleci.com/gh/Savanamed/pycaprio) [![codecov](https://codecov.io/gh/Savanamed/Pycaprio/branch/master/graph/badge.svg)](https://codecov.io/gh/Savanamed/Pycaprio)
![Python versions](https://img.shields.io/badge/Python-3.6%2C%203.7-green.svg) [![PyPI version](https://badge.fury.io/py/pycaprio.svg)](https://badge.fury.io/py/pycaprio) [![CircleCI](https://circleci.com/gh/Savanamed/pycaprio.svg?style=svg)](https://circleci.com/gh/Savanamed/pycaprio) [![codecov](https://codecov.io/gh/Savanamed/Pycaprio/branch/master/graph/badge.svg)](https://codecov.io/gh/Savanamed/Pycaprio)

Python client to the [INCEpTION](https://github.com/inception-project/inception) annotation tool.

Expand Down
2 changes: 1 addition & 1 deletion pycaprio/core/adapters/http_adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def annotations(self, project_id: int, document_id: int) -> List[Annotation]:
def annotation(self, project_id: int, document_id: int, user_name: str,
format: str = DocumentFormats.DEFAULT) -> bytes:
response = self.client.get(f'/projects/{project_id}/documents/{document_id}/annotations/{user_name}',
allowed_statuses=(200,), data={'format': format})
allowed_statuses=(200,), params={'format': format})
return response.content

def create_project(self, project_name: str, creator_name: Optional[str] = None) -> Project:
Expand Down
4 changes: 2 additions & 2 deletions pycaprio/core/clients/retryable_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ def __init__(self, inception_host: str, authentication: authentication_type):
self.session = requests.Session()
self.session.auth = authentication

def get(self, url: str, data: Optional[dict] = None,
def get(self, url: str, params: Optional[dict] = None,
allowed_statuses: Optional[status_list_type] = None) -> requests.Response:
return self.request('get', url, allowed_statuses, data=data)
return self.request('get', url, allowed_statuses, params=params)

def post(self, url: str, data: Optional[dict] = None, form_data: Optional[dict] = None, json: Optional[dict] = None,
files: Optional[dict] = None,
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "pycaprio"
version = "0.0.1"
version = "0.0.2rc1"
description = "Python client for the INCEpTION annotation tool API"
authors = ["Savanamed"]
license = "MIT"
Expand Down

0 comments on commit 1f1c136

Please sign in to comment.