xlwings-utils 25.0.0.post5__tar.gz → 25.0.0.post6__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.0.0.post5 → xlwings_utils-25.0.0.post6}/PKG-INFO +3 -1
- {xlwings_utils-25.0.0.post5 → xlwings_utils-25.0.0.post6}/README.md +2 -0
- {xlwings_utils-25.0.0.post5 → xlwings_utils-25.0.0.post6}/pyproject.toml +1 -1
- {xlwings_utils-25.0.0.post5 → xlwings_utils-25.0.0.post6}/xlwings_utils/xlwings_utils.py +25 -4
- {xlwings_utils-25.0.0.post5 → xlwings_utils-25.0.0.post6}/xlwings_utils.egg-info/PKG-INFO +3 -1
- {xlwings_utils-25.0.0.post5 → xlwings_utils-25.0.0.post6}/setup.cfg +0 -0
- {xlwings_utils-25.0.0.post5 → xlwings_utils-25.0.0.post6}/tests/test_xlwings_utils.py +0 -0
- {xlwings_utils-25.0.0.post5 → xlwings_utils-25.0.0.post6}/xlwings_utils/__init__.py +0 -0
- {xlwings_utils-25.0.0.post5 → xlwings_utils-25.0.0.post6}/xlwings_utils.egg-info/SOURCES.txt +0 -0
- {xlwings_utils-25.0.0.post5 → xlwings_utils-25.0.0.post6}/xlwings_utils.egg-info/dependency_links.txt +0 -0
- {xlwings_utils-25.0.0.post5 → xlwings_utils-25.0.0.post6}/xlwings_utils.egg-info/requires.txt +0 -0
- {xlwings_utils-25.0.0.post5 → xlwings_utils-25.0.0.post6}/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.0.0.
|
|
3
|
+
Version: 25.0.0.post6
|
|
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
|
|
@@ -40,6 +40,8 @@ import xlwings_utils as xwu
|
|
|
40
40
|
|
|
41
41
|
at the top of a xlwings lite script.
|
|
42
42
|
|
|
43
|
+
If an application runs under xlwings, `xwu.xlwings` will be True. False, if not.
|
|
44
|
+
|
|
43
45
|
## Dropbox support
|
|
44
46
|
|
|
45
47
|
The xlwings lite system does not provide access to the local file system. With this module, files can be copied between Dropbox and the local pyodide file system, making it possible to indirectly use the local file system.
|
|
@@ -26,6 +26,8 @@ import xlwings_utils as xwu
|
|
|
26
26
|
|
|
27
27
|
at the top of a xlwings lite script.
|
|
28
28
|
|
|
29
|
+
If an application runs under xlwings, `xwu.xlwings` will be True. False, if not.
|
|
30
|
+
|
|
29
31
|
## Dropbox support
|
|
30
32
|
|
|
31
33
|
The xlwings lite system does not provide access to the local file system. With this module, files can be copied between Dropbox and the local pyodide file system, making it possible to indirectly use the local file system.
|
|
@@ -16,7 +16,11 @@ import math
|
|
|
16
16
|
|
|
17
17
|
dbx = None
|
|
18
18
|
Pythonista = sys.platform == "ios"
|
|
19
|
-
|
|
19
|
+
try:
|
|
20
|
+
import xlwings
|
|
21
|
+
xlwings = True
|
|
22
|
+
except ImportError:
|
|
23
|
+
xlwings=False
|
|
20
24
|
|
|
21
25
|
def dropbox_init(refresh_token=None, app_key=None, app_secret=None):
|
|
22
26
|
"""
|
|
@@ -655,12 +659,29 @@ class Capture:
|
|
|
655
659
|
...
|
|
656
660
|
"""
|
|
657
661
|
|
|
658
|
-
|
|
662
|
+
_instance = None
|
|
663
|
+
|
|
664
|
+
def __new__(cls, *args, **kwargs):
|
|
665
|
+
# singleton
|
|
666
|
+
if cls._instance is None:
|
|
667
|
+
cls._instance = super(Capture, cls).__new__(cls)
|
|
668
|
+
return cls._instance
|
|
669
|
+
|
|
670
|
+
def __init__(self, enabled=None, include_print=None):
|
|
671
|
+
if hasattr(self, "stdout"):
|
|
672
|
+
if enabled is not None:
|
|
673
|
+
self.enabled = enabled
|
|
674
|
+
if include_print is not None:
|
|
675
|
+
self.include_print = include_print
|
|
676
|
+
return
|
|
659
677
|
self.stdout = sys.stdout
|
|
660
|
-
self._include_print = include_print
|
|
661
|
-
self.enabled=enabled
|
|
662
678
|
self._buffer = []
|
|
679
|
+
self.enabled = True if enabled is None else enabled
|
|
680
|
+
self.include_print = False if include_print is None else include_print
|
|
663
681
|
|
|
682
|
+
def __call__(self, enabled=None, include_print=None):
|
|
683
|
+
return self.__class__(enabled, include_print)
|
|
684
|
+
|
|
664
685
|
def __enter__(self):
|
|
665
686
|
self.enabled = True
|
|
666
687
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: xlwings_utils
|
|
3
|
-
Version: 25.0.0.
|
|
3
|
+
Version: 25.0.0.post6
|
|
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
|
|
@@ -40,6 +40,8 @@ import xlwings_utils as xwu
|
|
|
40
40
|
|
|
41
41
|
at the top of a xlwings lite script.
|
|
42
42
|
|
|
43
|
+
If an application runs under xlwings, `xwu.xlwings` will be True. False, if not.
|
|
44
|
+
|
|
43
45
|
## Dropbox support
|
|
44
46
|
|
|
45
47
|
The xlwings lite system does not provide access to the local file system. With this module, files can be copied between Dropbox and the local pyodide file system, making it possible to indirectly use the local file system.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{xlwings_utils-25.0.0.post5 → xlwings_utils-25.0.0.post6}/xlwings_utils.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{xlwings_utils-25.0.0.post5 → xlwings_utils-25.0.0.post6}/xlwings_utils.egg-info/requires.txt
RENAMED
|
File without changes
|
{xlwings_utils-25.0.0.post5 → xlwings_utils-25.0.0.post6}/xlwings_utils.egg-info/top_level.txt
RENAMED
|
File without changes
|