smartsheet-python-sdk 3.0.4__py2.py3-none-any.whl → 3.0.5__py2.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.
- smartsheet/cells.py +1 -0
- smartsheet/reports.py +1 -0
- smartsheet/sheets.py +2 -0
- smartsheet/smartsheet.py +19 -3
- smartsheet/version.py +2 -14
- {smartsheet_python_sdk-3.0.4.dist-info → smartsheet_python_sdk-3.0.5.dist-info}/METADATA +9 -9
- {smartsheet_python_sdk-3.0.4.dist-info → smartsheet_python_sdk-3.0.5.dist-info}/RECORD +11 -11
- {smartsheet_python_sdk-3.0.4.dist-info → smartsheet_python_sdk-3.0.5.dist-info}/WHEEL +1 -1
- {smartsheet_python_sdk-3.0.4.dist-info → smartsheet_python_sdk-3.0.5.dist-info}/LICENSE.md +0 -0
- {smartsheet_python_sdk-3.0.4.dist-info → smartsheet_python_sdk-3.0.5.dist-info}/NOTICE +0 -0
- {smartsheet_python_sdk-3.0.4.dist-info → smartsheet_python_sdk-3.0.5.dist-info}/top_level.txt +0 -0
smartsheet/cells.py
CHANGED
smartsheet/reports.py
CHANGED
|
@@ -69,6 +69,7 @@ class Reports:
|
|
|
69
69
|
include (list[str]): A comma-separated list of
|
|
70
70
|
optional elements to include in the response. Valid list values:
|
|
71
71
|
attachments, discussions, format, objectValue, scope, source, sourceSheets.
|
|
72
|
+
level (int): compatibility level
|
|
72
73
|
|
|
73
74
|
Returns:
|
|
74
75
|
Report
|
smartsheet/sheets.py
CHANGED
|
@@ -534,6 +534,7 @@ class Sheets:
|
|
|
534
534
|
page (int): Which page to return.
|
|
535
535
|
if_version_after (int): only fetch Sheet if more recent version
|
|
536
536
|
available.
|
|
537
|
+
level (int): compatibility level
|
|
537
538
|
rows_modified_since: Date should be in ISO-8601 format, for example, rowsModifiedSince=2020-01-30T13:25:32-07:00.
|
|
538
539
|
filter_id (int): Applies the given filter (if accessible by the calling user)
|
|
539
540
|
and marks the affected rows as "filteredOut": true
|
|
@@ -1620,6 +1621,7 @@ class Sheets:
|
|
|
1620
1621
|
Args:
|
|
1621
1622
|
sheet_id (int): Sheet ID
|
|
1622
1623
|
sort_specifier_obj (SortSpecifier): SortSpecifier object
|
|
1624
|
+
level (int): compatibility level
|
|
1623
1625
|
|
|
1624
1626
|
Returns:
|
|
1625
1627
|
Sheet
|
smartsheet/smartsheet.py
CHANGED
|
@@ -520,9 +520,25 @@ class OperationResult:
|
|
|
520
520
|
if expected != "DownloadedFile":
|
|
521
521
|
data = self.resp.json()
|
|
522
522
|
else:
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
523
|
+
# default
|
|
524
|
+
filename = ["download"]
|
|
525
|
+
|
|
526
|
+
if "Content-Disposition" in self.resp.headers:
|
|
527
|
+
# use the provided filename
|
|
528
|
+
filename = re.findall(
|
|
529
|
+
'filename="(.+)";', self.resp.headers["Content-Disposition"]
|
|
530
|
+
)
|
|
531
|
+
else:
|
|
532
|
+
content_type = self.resp.headers.get("Content-Type", "")
|
|
533
|
+
if content_type in [
|
|
534
|
+
"application/vnd.ms-excel",
|
|
535
|
+
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
|
|
536
|
+
]:
|
|
537
|
+
filename[0] += ".xlsx"
|
|
538
|
+
elif content_type == "application/pdf":
|
|
539
|
+
filename[0] += ".pdf"
|
|
540
|
+
elif content_type == "text/csv":
|
|
541
|
+
filename[0] += ".csv"
|
|
526
542
|
|
|
527
543
|
data = {
|
|
528
544
|
"resultCode": 0,
|
smartsheet/version.py
CHANGED
|
@@ -1,16 +1,4 @@
|
|
|
1
1
|
# file generated by setuptools_scm
|
|
2
2
|
# don't change, don't track in version control
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
from typing import Tuple, Union
|
|
6
|
-
VERSION_TUPLE = Tuple[Union[int, str], ...]
|
|
7
|
-
else:
|
|
8
|
-
VERSION_TUPLE = object
|
|
9
|
-
|
|
10
|
-
version: str
|
|
11
|
-
__version__: str
|
|
12
|
-
__version_tuple__: VERSION_TUPLE
|
|
13
|
-
version_tuple: VERSION_TUPLE
|
|
14
|
-
|
|
15
|
-
__version__ = version = '3.0.4'
|
|
16
|
-
__version_tuple__ = version_tuple = (3, 0, 4)
|
|
3
|
+
__version__ = version = '3.0.5'
|
|
4
|
+
__version_tuple__ = version_tuple = (3, 0, 5)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: smartsheet-python-sdk
|
|
3
|
-
Version: 3.0.
|
|
3
|
+
Version: 3.0.5
|
|
4
4
|
Summary: Library that uses Python to connect to Smartsheet services (using API 2.0).
|
|
5
5
|
Home-page: http://smartsheet-platform.github.io/api-docs/
|
|
6
6
|
Author: Smartsheet
|
|
@@ -24,18 +24,18 @@ License-File: LICENSE.md
|
|
|
24
24
|
License-File: NOTICE
|
|
25
25
|
Requires-Dist: requests
|
|
26
26
|
Requires-Dist: requests-toolbelt
|
|
27
|
-
Requires-Dist: six
|
|
27
|
+
Requires-Dist: six>=1.9
|
|
28
28
|
Requires-Dist: certifi
|
|
29
29
|
Requires-Dist: python-dateutil
|
|
30
30
|
Provides-Extra: develop
|
|
31
|
-
Requires-Dist: coverage
|
|
32
|
-
Requires-Dist: coveralls[yaml]
|
|
33
|
-
Requires-Dist: pytest
|
|
34
|
-
Requires-Dist: pytest-instafail
|
|
31
|
+
Requires-Dist: coverage; extra == "develop"
|
|
32
|
+
Requires-Dist: coveralls[yaml]; extra == "develop"
|
|
33
|
+
Requires-Dist: pytest; extra == "develop"
|
|
34
|
+
Requires-Dist: pytest-instafail; extra == "develop"
|
|
35
35
|
Provides-Extra: test
|
|
36
|
-
Requires-Dist: coverage
|
|
37
|
-
Requires-Dist: coveralls
|
|
38
|
-
Requires-Dist: pytest
|
|
36
|
+
Requires-Dist: coverage; extra == "test"
|
|
37
|
+
Requires-Dist: coveralls; extra == "test"
|
|
38
|
+
Requires-Dist: pytest; extra == "test"
|
|
39
39
|
|
|
40
40
|
# Smartsheet Python SDK
|
|
41
41
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
smartsheet/__init__.py,sha256=h2TD_nYTxqa7lcKb_mOIa-DMQN-pYaGk1Du0U3IVMyA,1152
|
|
2
2
|
smartsheet/attachments.py,sha256=eZ1y5jS_TJSyZzzapc68ol1qhrLxCXc2sY8l8oY1Gvo,17865
|
|
3
|
-
smartsheet/cells.py,sha256=
|
|
3
|
+
smartsheet/cells.py,sha256=1BCBps0mV9FV_nmdtsP5j7jT0avTVIfbYSAhnOqzlwM,4845
|
|
4
4
|
smartsheet/contacts.py,sha256=IBV3ncoP7R7GmzQI0H1CIwq4scGk9iBC1ayyQ927YrQ,2383
|
|
5
5
|
smartsheet/discussions.py,sha256=n0mbARczzdBkw83ZPKcNABp5j6AQLZPUHkKAZOK5q1Y,13110
|
|
6
6
|
smartsheet/events.py,sha256=MKASwB9BF5AeEMC7Qx-YPKpd9yjs6UCWwilBC8RZDgA,3417
|
|
@@ -12,19 +12,19 @@ smartsheet/home.py,sha256=KDCUQMj-AWkZa2Eshm0rNdbQ614UsxMgfH7picSSNHI,5541
|
|
|
12
12
|
smartsheet/images.py,sha256=Pts20YXCsZ06JGC6av3mk2je_kbcM11b9lO7L11mJoc,1872
|
|
13
13
|
smartsheet/object_value.py,sha256=dcPFZEPpqAiZsBRUawozLSSlVjxGBWTT3VXvsRYso8Q,3129
|
|
14
14
|
smartsheet/passthrough.py,sha256=k4p_3Kk7ISApNNFLDicVN5KYL0ll2AA4eAgX2cjnlzg,3950
|
|
15
|
-
smartsheet/reports.py,sha256=
|
|
15
|
+
smartsheet/reports.py,sha256=0B5bdQwVJHwu-V04aMSJ-Y7HaILK4rgjjMtn0--kcig,12835
|
|
16
16
|
smartsheet/search.py,sha256=ffy1dkVl3GtuYgCxvuR-vwahOBWIehGv_zwzLoJMimA,3394
|
|
17
17
|
smartsheet/server.py,sha256=9wySsa_y_G-VO88tEHGHp919zRVFS0kCFIhiM6crWEU,1429
|
|
18
18
|
smartsheet/session.py,sha256=TQ3IgVZ64r7Dszwo8rMISFezWxuwFYshhW9QhzoA428,2125
|
|
19
|
-
smartsheet/sheets.py,sha256=
|
|
19
|
+
smartsheet/sheets.py,sha256=0JVg4N3u3z9ngnIeRnjo8fUejfXhcQLYmQXCyw207dk,70150
|
|
20
20
|
smartsheet/sights.py,sha256=IZgy8CJZBJ-pQo6vNwkDSBuoLCv5RAW39kNUMMNJ-oc,11569
|
|
21
|
-
smartsheet/smartsheet.py,sha256=
|
|
21
|
+
smartsheet/smartsheet.py,sha256=wOBejFgIh_xQu1KuIlh9ZAsq2OxG8EIWUqtBQpmz1y4,23408
|
|
22
22
|
smartsheet/templates.py,sha256=z_Tj-4jZsu3RkLNbCAZWM2W05Zbio9T_uyU33rUPxzE,2898
|
|
23
23
|
smartsheet/token.py,sha256=5uz-IG5adx_zr2-uepH-W8ATv0dq9aZNjYLeZNwldqI,4703
|
|
24
24
|
smartsheet/types.py,sha256=aIdRJ89jwclmiZ4RH3hnZHJTFWFxgNKW3d8fghm21eM,9126
|
|
25
25
|
smartsheet/users.py,sha256=3LyC7BsPLa3dAg5EXaGswgXq0O8s77nsE0sSkjLfRe8,12775
|
|
26
26
|
smartsheet/util.py,sha256=12Y6eluecB8k4Ns-at81AEM18ND2TCKa9bF4BlNRrKM,5633
|
|
27
|
-
smartsheet/version.py,sha256=
|
|
27
|
+
smartsheet/version.py,sha256=McY1ddRVNSzuf5x-SnAlgmt9VByFK2Z4cXT42epnbl8,160
|
|
28
28
|
smartsheet/webhooks.py,sha256=7F7g4Ks0GyS3QxsNWm1SFtrOr00jBisCjj7-hcToHM8,4637
|
|
29
29
|
smartsheet/workspaces.py,sha256=u67WtvWFEgXRBNVFPXeNHnim2BymFaBz3v6q6wDHYOg,17550
|
|
30
30
|
smartsheet/models/__init__.py,sha256=gdk_4O22uy8m4yStECUiGzNnxqMqFonPskJGbB5AIwo,4602
|
|
@@ -179,9 +179,9 @@ smartsheet/models/enums/system_column_type.py,sha256=UfhNUBGD_0K1Pas7fujGEuax55O
|
|
|
179
179
|
smartsheet/models/enums/update_request_status.py,sha256=xYF84x1dTFhJMYVi1q3G1T9u1IGN3szlR1jj5HHC0hE,777
|
|
180
180
|
smartsheet/models/enums/user_status.py,sha256=SB7qRcA0dhdRimsOKHCGF3CB6fL0XuifxQEWZGNNS8Q,766
|
|
181
181
|
smartsheet/models/enums/widget_type.py,sha256=VfVq59fLZsT4ks_ZBrtv52u2Cl60iAdlA6mGD_elz-k,1072
|
|
182
|
-
smartsheet_python_sdk-3.0.
|
|
183
|
-
smartsheet_python_sdk-3.0.
|
|
184
|
-
smartsheet_python_sdk-3.0.
|
|
185
|
-
smartsheet_python_sdk-3.0.
|
|
186
|
-
smartsheet_python_sdk-3.0.
|
|
187
|
-
smartsheet_python_sdk-3.0.
|
|
182
|
+
smartsheet_python_sdk-3.0.5.dist-info/LICENSE.md,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
183
|
+
smartsheet_python_sdk-3.0.5.dist-info/METADATA,sha256=DyqyF1QqOiEYQbKtkYH4LOHujJKr_u8CmNfftjvxQjU,4693
|
|
184
|
+
smartsheet_python_sdk-3.0.5.dist-info/NOTICE,sha256=mXr2ryVjnCjykeW0J79kFfVXQG_Z9SV4BV_QPNENW1U,420
|
|
185
|
+
smartsheet_python_sdk-3.0.5.dist-info/WHEEL,sha256=Kh9pAotZVRFj97E15yTA4iADqXdQfIVTHcNaZTjxeGM,110
|
|
186
|
+
smartsheet_python_sdk-3.0.5.dist-info/top_level.txt,sha256=kozWEYiKjyJmSXzd6p5ugkQ5bhoHS9V3NnvLagUfcNw,11
|
|
187
|
+
smartsheet_python_sdk-3.0.5.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
{smartsheet_python_sdk-3.0.4.dist-info → smartsheet_python_sdk-3.0.5.dist-info}/top_level.txt
RENAMED
|
File without changes
|