bge-python-sdk 0.6.1__py3-none-any.whl → 0.6.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: bge-python-sdk
3
- Version: 0.6.1
3
+ Version: 0.6.2
4
4
  Summary: 可用于调用 BGE 开放平台的相关接口。
5
5
  Home-page: https://github.com/teambge/bge-python-sdk
6
6
  Author: leafcoder,xiangji1204
@@ -9,7 +9,6 @@ Maintainer: leafcoder
9
9
  Maintainer-email: leafcoder@gmail.com
10
10
  License: MIT
11
11
  Keywords: bge-python-sdk bge bgesdk sdk
12
- Platform: UNKNOWN
13
12
  Classifier: Development Status :: 5 - Production/Stable
14
13
  Classifier: Intended Audience :: Developers
15
14
  Classifier: License :: OSI Approved :: MIT License
@@ -29,6 +28,7 @@ Classifier: Topic :: Software Development :: Libraries :: Python Modules
29
28
  Classifier: Topic :: Utilities
30
29
  Requires-Python: >=3.6.3
31
30
  Description-Content-Type: text/markdown
31
+ License-File: LICENSE
32
32
  Requires-Dist: aliyun-python-sdk-core
33
33
  Requires-Dist: six
34
34
  Requires-Dist: certifi
@@ -180,5 +180,3 @@ print(api.get_variants('E-B1243433', 'rs333'))
180
180
 
181
181
  * xiangji1204's [github](https://github.com/xiangji1204)
182
182
  * leafcoder(leafcoder@gmail.com)'s [github](https://github.com/leafcoder)
183
-
184
-
@@ -1,13 +1,13 @@
1
1
  bgesdk/__init__.py,sha256=FgKWRqlkspNPC79IF6yLD6SEMST-gl55ZQXT_jOPUb4,124
2
2
  bgesdk/__main__.py,sha256=IDvh-O043qXjyp1CX0FH_tX2ss1FWZKbWqOGpu_wtSk,2196
3
- bgesdk/client.py,sha256=bPhljqzg7qk7iY5eOtp5F0QNM7Z462UNwoOyTt_ZynQ,52862
3
+ bgesdk/client.py,sha256=LFNUIeLd08Z9v-nEwhuCbM-MUhfchiXrMeDmPnu4C-Q,53424
4
4
  bgesdk/constants.py,sha256=bE60GPAHLg1UzacrOllPXGqUwhsVo5kjwJq9_ibB4Ng,636
5
5
  bgesdk/error.py,sha256=GVxBbz1REoypN3OqDzZXd0f-B0J_P1pBRapH1TnQucc,462
6
6
  bgesdk/fs.py,sha256=36wi3FEUHAirEFJpYEtjIN3wwDilPRFIEt45TjXUEVM,154
7
7
  bgesdk/http.py,sha256=SZoPm4kO99QCHQU1p2G5zicl34n3dpMMxfA1oYo7EGA,4503
8
8
  bgesdk/models.py,sha256=gRxJUue9nDvJAeIAsSCe3M-wzPHvnBNatkIn6DRXQ1M,3865
9
9
  bgesdk/utils.py,sha256=i-s74kQlnlQk7QQi9wur6ack1gUwyS1Mw4F-L0w1cpw,884
10
- bgesdk/version.py,sha256=lZyZmXAS2q4nupPSM-4VBfTUbwExVUYezsFZ_8L1G1g,46
10
+ bgesdk/version.py,sha256=JcZliSJCv879QkXKmj7fJHcWtsHApyiQrLCvFqUDCHw,46
11
11
  bgesdk/management/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
12
12
  bgesdk/management/command.py,sha256=TyssJaZ_pUQ7JitJkfh0PMK8y8GATobd5yL2O1vm_Nk,701
13
13
  bgesdk/management/constants.py,sha256=lPPix3TQ-OisDikIODK4-_1ebM5GiuITkJVFqWR8zYI,1508
@@ -47,9 +47,9 @@ tests/test_phenotype.py,sha256=3lntjMRPrYo-xFVi4mzmnyx6cLdzrTB6yxACNC4Cg7s,2264
47
47
  tests/test_samples.py,sha256=qcAf6084KtKZORPxHZkEfRMLAUwEm989BJApcUw9Cng,3341
48
48
  tests/test_user.py,sha256=QNCaIE38suadIHs0SMLM-s3bKUxZ0tjbcZCYBEWTeZ0,417
49
49
  tests/test_variants.py,sha256=rkW0wKDLyEuLpN26PG7bQzEgNwEkJlDRxjad7WDNblA,3056
50
- bge_python_sdk-0.6.1.dist-info/LICENSE,sha256=rX5ltHdvA1K75K8tRHlJyqnLLUgiosIAiakOYqNsx40,1063
51
- bge_python_sdk-0.6.1.dist-info/METADATA,sha256=XLgn_4xJKIVbTPR7SM7VudwILl05yBHS1o01LBQyPc4,7508
52
- bge_python_sdk-0.6.1.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
53
- bge_python_sdk-0.6.1.dist-info/entry_points.txt,sha256=Kwg9cPG9uXFJgintikexeiir_eLER0cFnthglnI9-ic,46
54
- bge_python_sdk-0.6.1.dist-info/top_level.txt,sha256=yKxDxOG0LXoztEOTej1WRMYXQdc2BT9es4ju24nGtOM,13
55
- bge_python_sdk-0.6.1.dist-info/RECORD,,
50
+ bge_python_sdk-0.6.2.dist-info/LICENSE,sha256=rX5ltHdvA1K75K8tRHlJyqnLLUgiosIAiakOYqNsx40,1063
51
+ bge_python_sdk-0.6.2.dist-info/METADATA,sha256=1mywXE1IHru8F_FVzumsFyqaajAFtKbQv6YtTOxTKGU,7510
52
+ bge_python_sdk-0.6.2.dist-info/WHEEL,sha256=yQN5g4mg4AybRjkgi-9yy4iQEFibGQmlz78Pik5Or-A,92
53
+ bge_python_sdk-0.6.2.dist-info/entry_points.txt,sha256=M09ziNXA78fUAvagzThOuXmri8mVRpQLMyG9uLm34P4,45
54
+ bge_python_sdk-0.6.2.dist-info/top_level.txt,sha256=yKxDxOG0LXoztEOTej1WRMYXQdc2BT9es4ju24nGtOM,13
55
+ bge_python_sdk-0.6.2.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.37.1)
2
+ Generator: bdist_wheel (0.41.2)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1,3 +1,2 @@
1
1
  [console_scripts]
2
2
  bge = bgesdk.__main__:main
3
-
bgesdk/client.py CHANGED
@@ -890,18 +890,30 @@ class API(object):
890
890
  timeout = self.timeout
891
891
  try:
892
892
  with requests.get(url, stream=True, timeout=timeout) as r:
893
- total = int(r.headers['content-length'])
894
- for chunk in r.iter_content(chunk_size):
895
- size += len(chunk)
896
- eq_size = int(size * prog_size / total)
897
- equal_s = '=' * eq_size
898
- blank_s = ' ' * (prog_size - eq_size)
899
- progress = '>'.join((equal_s, blank_s))
900
- percent = '%.2f%%' % float(size / total * 100)
901
- sys.stdout.write(
902
- '\r\t%s [%s]' % (percent.rjust(7), progress)
903
- )
904
- fp.write(chunk)
893
+ total = r.headers.get('content-length')
894
+ if total is not None:
895
+ total = int(total)
896
+ for chunk in r.iter_content(chunk_size):
897
+ size += len(chunk)
898
+ eq_size = int(size * prog_size / total)
899
+ equal_s = '=' * eq_size
900
+ blank_s = ' ' * (prog_size - eq_size)
901
+ progress = '>'.join((equal_s, blank_s))
902
+ percent = '%.2f%%' % float(size / total * 100)
903
+ sys.stdout.write(
904
+ '\r\t%s [%s]' % (percent.rjust(7), progress)
905
+ )
906
+ sys.stdout.flush()
907
+ fp.write(chunk)
908
+ else:
909
+ for chunk in r.iter_content(chunk_size):
910
+ size += len(chunk)
911
+ sys.stdout.write(
912
+ '\r\t已下载文件:%s' % human_byte(size).ljust(7)
913
+ )
914
+ sys.stdout.flush()
915
+ fp.write(chunk)
916
+ sys.stdout.write('\n')
905
917
  flush_func = getattr(fp, 'flush', None)
906
918
  if flush_func:
907
919
  flush_func()
bgesdk/version.py CHANGED
@@ -1,3 +1,3 @@
1
1
  #-*- coding: utf-8 -*-
2
2
 
3
- __version__ = '0.6.1'
3
+ __version__ = '0.6.2'