Skip to content

Commit cc0a6dd

Browse files
committed
Updated currency/rates
Signed-off-by: Vishal Rana <[email protected]>
1 parent 20eabca commit cc0a6dd

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

labstack/currency.py

+3
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,6 @@ def convert(self, request):
1313

1414
def list(self, request):
1515
return self.client._request('GET', '{}/list'.format(self.url))
16+
17+
def rates(self, request):
18+
return self.client._request('GET', '{}/rates'.format(self.url))

labstack/test_currency.py

+4
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,7 @@ def test_convert(self):
1818
def test_list(self):
1919
response = self.s.list({})
2020
self.assertNotEqual(len(response['currencies']), 0)
21+
22+
def test_rates(self):
23+
response = self.s.rates({})
24+
self.assertNotEqual(len(response['rates']), 0)

setup.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
setup(
44
name='labstack',
5-
version='1.0.0',
5+
version='1.0.1',
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',
@@ -15,8 +15,8 @@
1515
'requests==2.22.0'
1616
],
1717
classifiers=[
18-
'Programming Language :: Python :: 3.5',
1918
'Programming Language :: Python :: 3.6',
20-
'Programming Language :: Python :: 3.7'
19+
'Programming Language :: Python :: 3.7',
20+
'Programming Language :: Python :: 3.8'
2121
]
2222
)

0 commit comments

Comments
 (0)