xlwings-utils 25.0.8__tar.gz → 25.0.9__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.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: xlwings_utils
3
- Version: 25.0.8
3
+ Version: 25.0.9
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
@@ -61,6 +61,8 @@ In order to make a Dropbox app, and get the required environment variables, just
61
61
  python -c "exec(__import__('requests').get('https://salabim.org/dropbox setup.py').text)"
62
62
  ```
63
63
 
64
+ The file `dropbox setup.py` can also be found in the repo of xlwings_lite .
65
+
64
66
  Then, it is possible to list all files in a specified folder using the list_dropbox function.
65
67
  It is also possible to get at all folders and to access all underlying folders.
66
68
 
@@ -48,6 +48,8 @@ In order to make a Dropbox app, and get the required environment variables, just
48
48
  python -c "exec(__import__('requests').get('https://salabim.org/dropbox setup.py').text)"
49
49
  ```
50
50
 
51
+ The file `dropbox setup.py` can also be found in the repo of xlwings_lite .
52
+
51
53
  Then, it is possible to list all files in a specified folder using the list_dropbox function.
52
54
  It is also possible to get at all folders and to access all underlying folders.
53
55
 
@@ -10,7 +10,7 @@ authors = [
10
10
  { name = "Ruud van der Ham", email = "rt.van.der.ham@gmail.com" },
11
11
  ]
12
12
  description = "xlwings_utils"
13
- version = "25.0.8"
13
+ version = "25.0.9"
14
14
  readme = "README.md"
15
15
  requires-python = ">=3.9"
16
16
  dependencies = [
@@ -5,7 +5,7 @@
5
5
  # /_/\_\|_| \_/\_/ |_||_| |_| \__, ||___/ _____ \__,_| \__||_||_||___/
6
6
  # |___/ |_____|
7
7
 
8
- __version__ = "25.0.8"
8
+ __version__ = "25.0.9"
9
9
 
10
10
 
11
11
  import dropbox
@@ -28,32 +28,6 @@ except ImportError:
28
28
  missing = object()
29
29
 
30
30
 
31
- def pythonista_environ():
32
- """
33
- tries to update environment variables from the file environ.toml at top level.
34
- should only be used under Pythonista
35
- """
36
- try:
37
- import tomlib
38
- except ModuleNotFoundError:
39
- import tomli as tomlib
40
- from pathlib import Path
41
- import os
42
-
43
- environ_file = Path("~/Documents").expanduser() / "environ.toml"
44
- with open(environ_file, "rb") as f:
45
- d0 = tomlib.load(f)
46
- d1 = {}
47
- for k0, v0 in d0.items():
48
- if isinstance(v0, dict):
49
- for k1, v1 in v0.items():
50
- d1[f"{k0}.{k1}".upper()] = v1
51
- else:
52
- d1[k0.upper()] = v0
53
-
54
- os.environ.update(d1)
55
-
56
-
57
31
  def dropbox_init(refresh_token=missing, app_key=missing, app_secret=missing, **kwargs):
58
32
  """
59
33
  dropbox initialize
@@ -87,9 +61,6 @@ def dropbox_init(refresh_token=missing, app_key=missing, app_secret=missing, **k
87
61
  """
88
62
  global dbx
89
63
 
90
- if Pythonista:
91
- pythonista_environ()
92
-
93
64
  if refresh_token is missing:
94
65
  if "DROPBOX.REFRESH_TOKEN" in os.environ:
95
66
  refresh_token = os.environ["DROPBOX.REFRESH_TOKEN"]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: xlwings_utils
3
- Version: 25.0.8
3
+ Version: 25.0.9
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
@@ -61,6 +61,8 @@ In order to make a Dropbox app, and get the required environment variables, just
61
61
  python -c "exec(__import__('requests').get('https://salabim.org/dropbox setup.py').text)"
62
62
  ```
63
63
 
64
+ The file `dropbox setup.py` can also be found in the repo of xlwings_lite .
65
+
64
66
  Then, it is possible to list all files in a specified folder using the list_dropbox function.
65
67
  It is also possible to get at all folders and to access all underlying folders.
66
68
 
File without changes