smartsheet-python-sdk 3.0.0__py2.py3-none-any.whl → 3.0.3__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/__init__.py CHANGED
@@ -33,3 +33,5 @@ except ImportError:
33
33
 
34
34
  from .smartsheet import (AbstractUserCalcBackoff, Smartsheet, # NOQA
35
35
  fresh_operation)
36
+
37
+ from . import models
smartsheet/session.py CHANGED
@@ -53,7 +53,7 @@ def pinned_session(pool_maxsize=8):
53
53
  pool_connections=4,
54
54
  pool_maxsize=pool_maxsize,
55
55
  max_retries=Retry(
56
- total=1, method_whitelist=Retry.DEFAULT_METHOD_WHITELIST.union(["POST"])
56
+ total=1, allowed_methods=Retry.DEFAULT_ALLOWED_METHODS.union(["POST"])
57
57
  ),
58
58
  )
59
59
 
smartsheet/smartsheet.py CHANGED
@@ -279,16 +279,16 @@ class Smartsheet:
279
279
  response.request.url,
280
280
  )
281
281
  if response.request.body is not None:
282
- body_dumps = f'"<< {response.request.headers["Content-Type"]} content type suppressed >>"'
282
+ body_dumps = f'"<< {response.request.headers.get("Content-Type")} content type suppressed >>"'
283
283
  if is_multipart(response.request):
284
284
  body_dumps = '"<< multipart body suppressed >>"'
285
- elif "application/json" in response.request.headers["Content-Type"]:
285
+ elif response.request.headers.get("Content-Type") is not None and "application/json" in response.request.headers.get("Content-Type"):
286
286
  body = response.request.body.decode("utf8")
287
287
  body_dumps = json.dumps(json.loads(body), sort_keys=True)
288
288
  self._log.debug('{"requestBody": %s}', body_dumps)
289
289
  # response
290
- content_dumps = f'"<< {response.headers["Content-Type"]} content type suppressed >>"'
291
- if "application/json" in response.headers["Content-Type"]:
290
+ content_dumps = f'"<< {response.headers.get("Content-Type")} content type suppressed >>"'
291
+ if response.request.headers.get("Content-Type") is not None and "application/json" in response.headers.get("Content-Type"):
292
292
  content = response.content.decode("utf8")
293
293
  content_dumps = json.dumps(json.loads(content), sort_keys=True)
294
294
  if 200 <= response.status_code <= 299:
smartsheet/types.py CHANGED
@@ -1,4 +1,4 @@
1
- # pylint: disable=C0111,R0902,R0913,W4904,W0706
1
+ # pylint: disable=C0111,R0902,R0913,W4904,W0706,W0237
2
2
  # Smartsheet Python SDK.
3
3
  #
4
4
  # Copyright 2016 Smartsheet.com, Inc.
@@ -16,11 +16,11 @@
16
16
  # under the License.
17
17
 
18
18
  try:
19
- # For Python versions 2.7 and 3.3 to 3.9, import from collections
20
- from collections import MutableSequence
21
- except ImportError:
22
19
  # For Python version >= 3.10 import from collections.abc
23
20
  from collections.abc import MutableSequence
21
+ except ImportError:
22
+ # For Python versions 2.7 and 3.3 to 3.9, import from collections
23
+ from collections import MutableSequence
24
24
 
25
25
  import importlib
26
26
  import json
smartsheet/version.py CHANGED
@@ -1,5 +1,16 @@
1
- # coding: utf-8
2
1
  # file generated by setuptools_scm
3
2
  # don't change, don't track in version control
4
- __version__ = version = '3.0.0'
5
- __version_tuple__ = version_tuple = (3, 0, 0)
3
+ TYPE_CHECKING = False
4
+ if TYPE_CHECKING:
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.3'
16
+ __version_tuple__ = version_tuple = (3, 0, 3)
@@ -1,10 +1,10 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: smartsheet-python-sdk
3
- Version: 3.0.0
3
+ Version: 3.0.3
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
7
- Author-email: api@smartsheet.com
7
+ Author-email: sdk@smartsheet.com
8
8
  License: Apache-2.0
9
9
  Keywords: Smartsheet,Collaboration,Project Management,Excel,spreadsheet
10
10
  Classifier: Development Status :: 5 - Production/Stable
@@ -24,20 +24,22 @@ License-File: LICENSE.md
24
24
  License-File: NOTICE
25
25
  Requires-Dist: requests
26
26
  Requires-Dist: requests-toolbelt
27
- Requires-Dist: six (>=1.9)
27
+ Requires-Dist: six >=1.9
28
28
  Requires-Dist: certifi
29
29
  Requires-Dist: python-dateutil
30
30
  Provides-Extra: develop
31
31
  Requires-Dist: coverage ; extra == 'develop'
32
+ Requires-Dist: coveralls[yaml] ; extra == 'develop'
32
33
  Requires-Dist: pytest ; extra == 'develop'
33
34
  Requires-Dist: pytest-instafail ; extra == 'develop'
34
35
  Provides-Extra: test
35
36
  Requires-Dist: coverage ; extra == 'test'
37
+ Requires-Dist: coveralls ; extra == 'test'
36
38
  Requires-Dist: pytest ; extra == 'test'
37
39
 
38
40
  # Smartsheet Python SDK
39
41
 
40
- [![Build Status](https://github.com/smartsheet/smartsheet-python-sdk/actions/workflows/test-build.yaml/badge.svg)](https://github.com/smartsheet/smartsheet-python-sdk/actions/workflows/test-build.yaml) [![PyPI version](https://badge.fury.io/py/smartsheet-python-sdk.svg)](https://badge.fury.io/py/smartsheet-python-sdk)
42
+ [![Build Status](https://github.com/smartsheet/smartsheet-python-sdk/actions/workflows/test-build.yaml/badge.svg)](https://github.com/smartsheet/smartsheet-python-sdk/actions/workflows/test-build.yaml) [![Coverage Status](https://coveralls.io/repos/github/smartsheet/smartsheet-python-sdk/badge.svg?branch=mainline)](https://coveralls.io/github/smartsheet/smartsheet-python-sdk?branch=mainline) [![PyPI version](https://badge.fury.io/py/smartsheet-python-sdk.svg)](https://badge.fury.io/py/smartsheet-python-sdk)
41
43
 
42
44
  A library for connecting to the [Smartsheet API](https://smartsheet.redoc.ly) from Python applications.
43
45
 
@@ -88,3 +90,17 @@ Use the following resources to learn more about the SDK capabilities:
88
90
 
89
91
  For details about logging, testing, how to use a passthrough option, and how to override HTTP client behavior,
90
92
  see [Advanced Topics](ADVANCED.md).
93
+
94
+ ## Developer Agreement
95
+
96
+ Review the [Developer Program Agreement](https://www.smartsheet.com/legal/developer-program-agreement).
97
+
98
+ ## Acknowledgements
99
+
100
+ We would like to thank the following people for their contributions to this project:
101
+
102
+ * Tim Wells - [timwellswa](https://github.com/timwellswa)
103
+ * Scott Wimer - [happybob007](https://github.com/happybob007)
104
+ * Steve Weil - [seweil](https://github.com/seweil)
105
+ * Kevin Fansler - [kfansler](https://github.com/kfansler)
106
+ * Nathan Armstrong - [armstnp](https://github.com/armstnp)
@@ -1,4 +1,4 @@
1
- smartsheet/__init__.py,sha256=dptnqBf0CnloqwcXiXPWMbdsR563wkgC3gKp9EBQGBo,1130
1
+ smartsheet/__init__.py,sha256=h2TD_nYTxqa7lcKb_mOIa-DMQN-pYaGk1Du0U3IVMyA,1152
2
2
  smartsheet/attachments.py,sha256=eZ1y5jS_TJSyZzzapc68ol1qhrLxCXc2sY8l8oY1Gvo,17865
3
3
  smartsheet/cells.py,sha256=juLA85Zdyt5KfvDLdFkvEJ6S635JMTJs8Xhb2CchCPw,4800
4
4
  smartsheet/contacts.py,sha256=IBV3ncoP7R7GmzQI0H1CIwq4scGk9iBC1ayyQ927YrQ,2383
@@ -15,16 +15,16 @@ smartsheet/passthrough.py,sha256=k4p_3Kk7ISApNNFLDicVN5KYL0ll2AA4eAgX2cjnlzg,395
15
15
  smartsheet/reports.py,sha256=6lGoF0aijgwHCPcPeLhwUiWqYFmoR2xkbJg3YHQ0UCM,12790
16
16
  smartsheet/search.py,sha256=ffy1dkVl3GtuYgCxvuR-vwahOBWIehGv_zwzLoJMimA,3394
17
17
  smartsheet/server.py,sha256=9wySsa_y_G-VO88tEHGHp919zRVFS0kCFIhiM6crWEU,1429
18
- smartsheet/session.py,sha256=2xypb9qflOE0MFk6Rn48EtE1EgZgLQJU7RhEuB9ZPdw,2127
18
+ smartsheet/session.py,sha256=TQ3IgVZ64r7Dszwo8rMISFezWxuwFYshhW9QhzoA428,2125
19
19
  smartsheet/sheets.py,sha256=Tk1-llyfoTaVZybpBCOskR75cTF_tFhE3EIducCumsA,70060
20
20
  smartsheet/sights.py,sha256=IZgy8CJZBJ-pQo6vNwkDSBuoLCv5RAW39kNUMMNJ-oc,11569
21
- smartsheet/smartsheet.py,sha256=VSZDOvNDK2WMBbQ46ZgaVMGoHD-CpxrdqxO6rWdB8BY,22520
21
+ smartsheet/smartsheet.py,sha256=01NgYLZkn83BrOhuoPYkNEnjRacJniLrMJ-jIxgVs4E,22658
22
22
  smartsheet/templates.py,sha256=z_Tj-4jZsu3RkLNbCAZWM2W05Zbio9T_uyU33rUPxzE,2898
23
23
  smartsheet/token.py,sha256=5uz-IG5adx_zr2-uepH-W8ATv0dq9aZNjYLeZNwldqI,4703
24
- smartsheet/types.py,sha256=99FdX4Z0Dxa1ivC8YBFtwL8o2Jqi2Y5haOAWjJrbfG0,9120
24
+ smartsheet/types.py,sha256=aIdRJ89jwclmiZ4RH3hnZHJTFWFxgNKW3d8fghm21eM,9126
25
25
  smartsheet/users.py,sha256=3LyC7BsPLa3dAg5EXaGswgXq0O8s77nsE0sSkjLfRe8,12775
26
26
  smartsheet/util.py,sha256=mpGYgQ6cQMzXFTEwILf5tG18VrhGY1annrs_wUuw1Fo,5379
27
- smartsheet/version.py,sha256=QC7WcZH949WXsGVKvmE8SC1oTgm6MvE5G2qUrjWwQJw,176
27
+ smartsheet/version.py,sha256=tmsJrqMJ6jmtNKTruxlJdd_-BtOyY3AALPeqEhjqKi0,411
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.0.dist-info/LICENSE.md,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
183
- smartsheet_python_sdk-3.0.0.dist-info/METADATA,sha256=fpeMMJ3mz-_b_HsXr9xwZ-Lp3nuFucszEWXG3Mw8fOw,3890
184
- smartsheet_python_sdk-3.0.0.dist-info/NOTICE,sha256=mXr2ryVjnCjykeW0J79kFfVXQG_Z9SV4BV_QPNENW1U,420
185
- smartsheet_python_sdk-3.0.0.dist-info/WHEEL,sha256=bb2Ot9scclHKMOLDEHY6B2sicWOgugjFKaJsT7vwMQo,110
186
- smartsheet_python_sdk-3.0.0.dist-info/top_level.txt,sha256=kozWEYiKjyJmSXzd6p5ugkQ5bhoHS9V3NnvLagUfcNw,11
187
- smartsheet_python_sdk-3.0.0.dist-info/RECORD,,
182
+ smartsheet_python_sdk-3.0.3.dist-info/LICENSE.md,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
183
+ smartsheet_python_sdk-3.0.3.dist-info/METADATA,sha256=96yDrAYoq2eDDsFYBq1nsYYunSmkeQQ9_nlts71pTMk,4701
184
+ smartsheet_python_sdk-3.0.3.dist-info/NOTICE,sha256=mXr2ryVjnCjykeW0J79kFfVXQG_Z9SV4BV_QPNENW1U,420
185
+ smartsheet_python_sdk-3.0.3.dist-info/WHEEL,sha256=DZajD4pwLWue70CAfc7YaxT1wLUciNBvN_TTcvXpltE,110
186
+ smartsheet_python_sdk-3.0.3.dist-info/top_level.txt,sha256=kozWEYiKjyJmSXzd6p5ugkQ5bhoHS9V3NnvLagUfcNw,11
187
+ smartsheet_python_sdk-3.0.3.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.38.4)
2
+ Generator: bdist_wheel (0.43.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py2-none-any
5
5
  Tag: py3-none-any