xlwings-utils 25.0.1__py3-none-any.whl → 25.0.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.

Potentially problematic release.


This version of xlwings-utils might be problematic. Click here for more details.

@@ -5,7 +5,7 @@
5
5
  # /_/\_\|_| \_/\_/ |_||_| |_| \__, ||___/ _____ \__,_| \__||_||_||___/
6
6
  # |___/ |_____|
7
7
 
8
- __version__ = "25.0.1"
8
+ __version__ = "25.0.2"
9
9
 
10
10
 
11
11
  import dropbox
@@ -169,14 +169,19 @@ def read_dropbox(dropbox_path):
169
169
  ----
170
170
  If REFRESH_TOKEN, APP_KEY and APP_SECRET environment variables are specified,
171
171
  it is not necessary to call dropbox_init() prior to any dropbox function.
172
+
173
+ If the filesize does not match the metadata, as sometimes happens on pyodide, an IOError exception will be raised.
172
174
  """
173
175
 
174
176
  _login_dbx()
175
177
  metadata, response = dbx.files_download(dropbox_path)
176
178
  file_content = response.content
179
+ if len(file_content) != metadata.size:
180
+ raise OSError('filesize does not match metadata')
177
181
  return file_content
178
182
 
179
183
 
184
+
180
185
  def write_dropbox(dropbox_path, contents):
181
186
  _login_dbx()
182
187
  """
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: xlwings_utils
3
- Version: 25.0.1
3
+ Version: 25.0.2
4
4
  Summary: xlwings_utils
5
5
  Author-email: Ruud van der Ham <rt.van.der.ham@gmail.com>
6
6
  Project-URL: Homepage, https://github.com/salabim/xlwings_utils
@@ -0,0 +1,6 @@
1
+ xlwings_utils/__init__.py,sha256=FdaRztevSu5akGL7KBUBRzqwLMRTdvVUuS2Kfp2f1Uc,68
2
+ xlwings_utils/xlwings_utils.py,sha256=q5IAM9w1znR6wRBiZM5mlq1I21GnbV45xU5VGlAuL3Y,22039
3
+ xlwings_utils-25.0.2.dist-info/METADATA,sha256=T9Uej_FZgj2K_YtlE2Wj-wT95G0muVwXJBA7UYmhALc,9791
4
+ xlwings_utils-25.0.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
5
+ xlwings_utils-25.0.2.dist-info/top_level.txt,sha256=kf5SEv0gZiRObPhUoYcc1O_iX_wwTOPeUIYvzyYeAM4,14
6
+ xlwings_utils-25.0.2.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (80.8.0)
2
+ Generator: setuptools (80.9.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1,6 +0,0 @@
1
- xlwings_utils/__init__.py,sha256=FdaRztevSu5akGL7KBUBRzqwLMRTdvVUuS2Kfp2f1Uc,68
2
- xlwings_utils/xlwings_utils.py,sha256=8_OKnH-UnvOZnybavnC4CEWAR27IiqfTGyezWja-s-o,21809
3
- xlwings_utils-25.0.1.dist-info/METADATA,sha256=G6E8CscnLZ6zinaPdl1XbSBQuDZcKfMi3AwdSVppb0k,9791
4
- xlwings_utils-25.0.1.dist-info/WHEEL,sha256=zaaOINJESkSfm_4HQVc5ssNzHCPXhJm0kEUakpsEHaU,91
5
- xlwings_utils-25.0.1.dist-info/top_level.txt,sha256=kf5SEv0gZiRObPhUoYcc1O_iX_wwTOPeUIYvzyYeAM4,14
6
- xlwings_utils-25.0.1.dist-info/RECORD,,