xlwings-utils 25.1.3__tar.gz → 25.1.3.post1__tar.gz
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.
- {xlwings_utils-25.1.3 → xlwings_utils-25.1.3.post1}/PKG-INFO +24 -1
- {xlwings_utils-25.1.3 → xlwings_utils-25.1.3.post1}/README.md +23 -0
- {xlwings_utils-25.1.3 → xlwings_utils-25.1.3.post1}/pyproject.toml +1 -1
- {xlwings_utils-25.1.3 → xlwings_utils-25.1.3.post1}/xlwings_utils/xlwings_utils.py +2 -1
- {xlwings_utils-25.1.3 → xlwings_utils-25.1.3.post1}/xlwings_utils.egg-info/PKG-INFO +24 -1
- {xlwings_utils-25.1.3 → xlwings_utils-25.1.3.post1}/setup.cfg +0 -0
- {xlwings_utils-25.1.3 → xlwings_utils-25.1.3.post1}/tests/test_xlwings_utils.py +0 -0
- {xlwings_utils-25.1.3 → xlwings_utils-25.1.3.post1}/xlwings_utils/__init__.py +0 -0
- {xlwings_utils-25.1.3 → xlwings_utils-25.1.3.post1}/xlwings_utils.egg-info/SOURCES.txt +0 -0
- {xlwings_utils-25.1.3 → xlwings_utils-25.1.3.post1}/xlwings_utils.egg-info/dependency_links.txt +0 -0
- {xlwings_utils-25.1.3 → xlwings_utils-25.1.3.post1}/xlwings_utils.egg-info/requires.txt +0 -0
- {xlwings_utils-25.1.3 → xlwings_utils-25.1.3.post1}/xlwings_utils.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: xlwings_utils
|
|
3
|
-
Version: 25.1.3
|
|
3
|
+
Version: 25.1.3.post1
|
|
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
|
|
@@ -322,10 +322,33 @@ Then, the file can be copied to the pyodide file system with
|
|
|
322
322
|
```
|
|
323
323
|
bl = block(xw.range((10,1),(50000,1)).decode_to_files())
|
|
324
324
|
```
|
|
325
|
+
## Miscellaneous
|
|
326
|
+
|
|
327
|
+
xlwings_utils provides a useful `timer` decorator that may be used to show the name, the entry time, the exit time and the duration of a xlwings script.
|
|
328
|
+
|
|
329
|
+
To use this, put the decorator immediately after the `xw.script` decorator, like:
|
|
330
|
+
|
|
331
|
+
```
|
|
332
|
+
@xw.script
|
|
333
|
+
@xwu.timer
|
|
334
|
+
def MyScript(book: xw.Book):
|
|
335
|
+
...
|
|
325
336
|
```
|
|
326
337
|
|
|
338
|
+
This will print something like:
|
|
339
|
+
|
|
340
|
+
```
|
|
341
|
+
Done MyScript 11:51:13.24 - 11:51:20.28 (7.04s)
|
|
327
342
|
```
|
|
328
343
|
|
|
344
|
+
|
|
345
|
+
|
|
346
|
+
|
|
347
|
+
|
|
348
|
+
|
|
349
|
+
|
|
350
|
+
|
|
351
|
+
|
|
329
352
|
## Contact info
|
|
330
353
|
|
|
331
354
|
You can contact Ruud van der Ham, the core developer, at ruud@salabim.org.
|
|
@@ -309,10 +309,33 @@ Then, the file can be copied to the pyodide file system with
|
|
|
309
309
|
```
|
|
310
310
|
bl = block(xw.range((10,1),(50000,1)).decode_to_files())
|
|
311
311
|
```
|
|
312
|
+
## Miscellaneous
|
|
313
|
+
|
|
314
|
+
xlwings_utils provides a useful `timer` decorator that may be used to show the name, the entry time, the exit time and the duration of a xlwings script.
|
|
315
|
+
|
|
316
|
+
To use this, put the decorator immediately after the `xw.script` decorator, like:
|
|
317
|
+
|
|
318
|
+
```
|
|
319
|
+
@xw.script
|
|
320
|
+
@xwu.timer
|
|
321
|
+
def MyScript(book: xw.Book):
|
|
322
|
+
...
|
|
312
323
|
```
|
|
313
324
|
|
|
325
|
+
This will print something like:
|
|
326
|
+
|
|
327
|
+
```
|
|
328
|
+
Done MyScript 11:51:13.24 - 11:51:20.28 (7.04s)
|
|
314
329
|
```
|
|
315
330
|
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
|
|
334
|
+
|
|
335
|
+
|
|
336
|
+
|
|
337
|
+
|
|
338
|
+
|
|
316
339
|
## Contact info
|
|
317
340
|
|
|
318
341
|
You can contact Ruud van der Ham, the core developer, at ruud@salabim.org.
|
|
@@ -217,6 +217,7 @@ def write_dropbox(dropbox_path, contents):
|
|
|
217
217
|
response.raise_for_status()
|
|
218
218
|
except requests.exceptions.HTTPError as e:
|
|
219
219
|
raise FileNotFoundError(f"file {str(dropbox_path)} could not be written. Original message is {e}") from None
|
|
220
|
+
return response
|
|
220
221
|
|
|
221
222
|
|
|
222
223
|
def delete_from_dropbox(dropbox_path):
|
|
@@ -1054,6 +1055,7 @@ def timer(func):
|
|
|
1054
1055
|
|
|
1055
1056
|
@functools.wraps(func)
|
|
1056
1057
|
def wrapper(*args, **kwargs):
|
|
1058
|
+
now0 = datetime.datetime.now()
|
|
1057
1059
|
result = func(*args, **kwargs)
|
|
1058
1060
|
now1 = datetime.datetime.now()
|
|
1059
1061
|
t0 = now0.second + now0.microsecond / 1_000_000
|
|
@@ -1063,7 +1065,6 @@ def timer(func):
|
|
|
1063
1065
|
)
|
|
1064
1066
|
return result
|
|
1065
1067
|
|
|
1066
|
-
now0 = datetime.datetime.now()
|
|
1067
1068
|
return wrapper
|
|
1068
1069
|
|
|
1069
1070
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: xlwings_utils
|
|
3
|
-
Version: 25.1.3
|
|
3
|
+
Version: 25.1.3.post1
|
|
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
|
|
@@ -322,10 +322,33 @@ Then, the file can be copied to the pyodide file system with
|
|
|
322
322
|
```
|
|
323
323
|
bl = block(xw.range((10,1),(50000,1)).decode_to_files())
|
|
324
324
|
```
|
|
325
|
+
## Miscellaneous
|
|
326
|
+
|
|
327
|
+
xlwings_utils provides a useful `timer` decorator that may be used to show the name, the entry time, the exit time and the duration of a xlwings script.
|
|
328
|
+
|
|
329
|
+
To use this, put the decorator immediately after the `xw.script` decorator, like:
|
|
330
|
+
|
|
331
|
+
```
|
|
332
|
+
@xw.script
|
|
333
|
+
@xwu.timer
|
|
334
|
+
def MyScript(book: xw.Book):
|
|
335
|
+
...
|
|
325
336
|
```
|
|
326
337
|
|
|
338
|
+
This will print something like:
|
|
339
|
+
|
|
340
|
+
```
|
|
341
|
+
Done MyScript 11:51:13.24 - 11:51:20.28 (7.04s)
|
|
327
342
|
```
|
|
328
343
|
|
|
344
|
+
|
|
345
|
+
|
|
346
|
+
|
|
347
|
+
|
|
348
|
+
|
|
349
|
+
|
|
350
|
+
|
|
351
|
+
|
|
329
352
|
## Contact info
|
|
330
353
|
|
|
331
354
|
You can contact Ruud van der Ham, the core developer, at ruud@salabim.org.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{xlwings_utils-25.1.3 → xlwings_utils-25.1.3.post1}/xlwings_utils.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|