Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitcc0a6dd

Browse files
committed
Updated currency/rates
Signed-off-by: Vishal Rana <vr@labstack.com>
1 parent20eabca commitcc0a6dd

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

‎labstack/currency.py‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,6 @@ def convert(self, request):
1313

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

‎labstack/test_currency.py‎

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

‎setup.py‎

Lines changed: 3 additions & 3 deletions
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)

[8]ページ先頭

©2009-2025 Movatter.jp