Skip to content

Commit b0401b5

Browse files
committed
Bumped v0.15.0
Signed-off-by: Vishal Rana <vr@labstack.com>
1 parent 24396cc commit b0401b5

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

labstack/client.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,16 @@ def barcode_scan(self, file=None):
4343
if not 200 <= r.status_code < 300:
4444
raise APIError(data['code'], data['message'])
4545
return data
46+
47+
def currency_exchange(self, base=None):
48+
json = {'base': base}
49+
r = requests.post(API_URL + '/currency/exchange', auth=self.interceptor,
50+
json=json)
51+
data = r.json()
52+
if not 200 <= r.status_code < 300:
53+
raise APIError(data['code'], data['message'])
54+
return data
55+
4656

4757
def dns_lookup(self, domain=None, type=None):
4858
json = {

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
setup(
44
name='labstack',
5-
version='0.14.0',
5+
version='0.15.0',
66
description='Official Python client library for the LabStack API',
77
long_description='`<https://github.com/labstack/labstack-python>`_',
88
keywords='image compress, image resize, text summary, barcode generate, barcode scan',

0 commit comments

Comments
 (0)