looker-sdk 23.16.0__tar.gz → 23.18.0__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.
Files changed (47) hide show
  1. {looker_sdk-23.16.0 → looker_sdk-23.18.0}/PKG-INFO +2 -2
  2. {looker_sdk-23.16.0 → looker_sdk-23.18.0}/looker_sdk/__init__.py +0 -23
  3. {looker_sdk-23.16.0 → looker_sdk-23.18.0}/looker_sdk/rtl/serialize.py +0 -11
  4. {looker_sdk-23.16.0 → looker_sdk-23.18.0}/looker_sdk/sdk/api40/methods.py +1519 -1083
  5. {looker_sdk-23.16.0 → looker_sdk-23.18.0}/looker_sdk/sdk/api40/models.py +4748 -3690
  6. {looker_sdk-23.16.0 → looker_sdk-23.18.0}/looker_sdk/sdk/constants.py +1 -1
  7. {looker_sdk-23.16.0 → looker_sdk-23.18.0}/looker_sdk/version.py +1 -1
  8. {looker_sdk-23.16.0 → looker_sdk-23.18.0}/looker_sdk.egg-info/PKG-INFO +2 -2
  9. {looker_sdk-23.16.0 → looker_sdk-23.18.0}/looker_sdk.egg-info/SOURCES.txt +0 -3
  10. {looker_sdk-23.16.0 → looker_sdk-23.18.0}/setup.py +1 -1
  11. {looker_sdk-23.16.0 → looker_sdk-23.18.0}/tests/conftest.py +2 -8
  12. {looker_sdk-23.16.0 → looker_sdk-23.18.0}/tests/integration/test_methods.py +1 -0
  13. {looker_sdk-23.16.0 → looker_sdk-23.18.0}/tests/rtl/test_api_methods.py +7 -7
  14. {looker_sdk-23.16.0 → looker_sdk-23.18.0}/tests/rtl/test_api_settings.py +6 -6
  15. {looker_sdk-23.16.0 → looker_sdk-23.18.0}/tests/rtl/test_auth_session.py +5 -5
  16. {looker_sdk-23.16.0 → looker_sdk-23.18.0}/tests/rtl/test_serialize.py +1 -1
  17. looker_sdk-23.16.0/looker_sdk/sdk/api31/methods.py +0 -10274
  18. looker_sdk-23.16.0/looker_sdk/sdk/api31/models.py +0 -11460
  19. looker_sdk-23.16.0/looker_sdk/sdk/api40/__init__.py +0 -1
  20. {looker_sdk-23.16.0 → looker_sdk-23.18.0}/LICENSE.txt +0 -0
  21. {looker_sdk-23.16.0 → looker_sdk-23.18.0}/MANIFEST.in +0 -0
  22. {looker_sdk-23.16.0 → looker_sdk-23.18.0}/README.rst +0 -0
  23. {looker_sdk-23.16.0 → looker_sdk-23.18.0}/looker_sdk/error.py +0 -0
  24. {looker_sdk-23.16.0 → looker_sdk-23.18.0}/looker_sdk/py.typed +0 -0
  25. {looker_sdk-23.16.0 → looker_sdk-23.18.0}/looker_sdk/rtl/__init__.py +0 -0
  26. {looker_sdk-23.16.0 → looker_sdk-23.18.0}/looker_sdk/rtl/api_methods.py +0 -0
  27. {looker_sdk-23.16.0 → looker_sdk-23.18.0}/looker_sdk/rtl/api_settings.py +0 -0
  28. {looker_sdk-23.16.0 → looker_sdk-23.18.0}/looker_sdk/rtl/auth_session.py +0 -0
  29. {looker_sdk-23.16.0 → looker_sdk-23.18.0}/looker_sdk/rtl/auth_token.py +0 -0
  30. {looker_sdk-23.16.0 → looker_sdk-23.18.0}/looker_sdk/rtl/constants.py +0 -0
  31. {looker_sdk-23.16.0 → looker_sdk-23.18.0}/looker_sdk/rtl/hooks.py +0 -0
  32. {looker_sdk-23.16.0 → looker_sdk-23.18.0}/looker_sdk/rtl/model.py +0 -0
  33. {looker_sdk-23.16.0 → looker_sdk-23.18.0}/looker_sdk/rtl/requests_transport.py +0 -0
  34. {looker_sdk-23.16.0 → looker_sdk-23.18.0}/looker_sdk/rtl/transport.py +0 -0
  35. {looker_sdk-23.16.0 → looker_sdk-23.18.0}/looker_sdk/sdk/__init__.py +0 -0
  36. {looker_sdk-23.16.0/looker_sdk/sdk/api31 → looker_sdk-23.18.0/looker_sdk/sdk/api40}/__init__.py +0 -0
  37. {looker_sdk-23.16.0 → looker_sdk-23.18.0}/looker_sdk.egg-info/dependency_links.txt +0 -0
  38. {looker_sdk-23.16.0 → looker_sdk-23.18.0}/looker_sdk.egg-info/requires.txt +0 -0
  39. {looker_sdk-23.16.0 → looker_sdk-23.18.0}/looker_sdk.egg-info/top_level.txt +0 -0
  40. {looker_sdk-23.16.0 → looker_sdk-23.18.0}/setup.cfg +0 -0
  41. {looker_sdk-23.16.0 → looker_sdk-23.18.0}/tests/__init__.py +0 -0
  42. {looker_sdk-23.16.0 → looker_sdk-23.18.0}/tests/integration/__init__.py +0 -0
  43. {looker_sdk-23.16.0 → looker_sdk-23.18.0}/tests/integration/test_netrc.py +0 -0
  44. {looker_sdk-23.16.0 → looker_sdk-23.18.0}/tests/rtl/__init__.py +0 -0
  45. {looker_sdk-23.16.0 → looker_sdk-23.18.0}/tests/rtl/test_auth_token.py +0 -0
  46. {looker_sdk-23.16.0 → looker_sdk-23.18.0}/tests/rtl/test_requests_transport.py +0 -0
  47. {looker_sdk-23.16.0 → looker_sdk-23.18.0}/tests/rtl/test_transport.py +0 -0
@@ -1,11 +1,11 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: looker_sdk
3
- Version: 23.16.0
3
+ Version: 23.18.0
4
4
  Summary: Looker REST API
5
5
  Home-page: https://pypi.python.org/pypi/looker_sdk
6
6
  Author: Looker Data Sciences, Inc.
7
7
  License: MIT
8
- Keywords: Looker,Looker API,looker_sdk,Looker API 3.1,Looker API 4.0
8
+ Keywords: Looker,Looker API,looker_sdk,Looker API 4.0
9
9
  Requires-Python: >=3.6
10
10
  Description-Content-Type: text/x-rst
11
11
  License-File: LICENSE.txt
@@ -29,9 +29,7 @@ from looker_sdk.rtl import auth_session
29
29
  from looker_sdk.sdk import constants
30
30
 
31
31
  # F401 - providing convenience shortcut for methods/models at top level
32
- from looker_sdk.sdk.api31 import methods, methods as methods31 # noqa:F401
33
32
  from looker_sdk.sdk.api40 import methods as methods40
34
- from looker_sdk.sdk.api31 import models, models as models31 # noqa:F401
35
33
  from looker_sdk.sdk.api40 import models as models40 # noqa: F401
36
34
 
37
35
  API_SETTINGS_API_VERSION_DEPRECATED = "API_VERSION config value is no longer needed."
@@ -47,27 +45,6 @@ def _settings(
47
45
  env_prefix=constants.environment_prefix,
48
46
  )
49
47
 
50
-
51
- def init31(
52
- config_file: str = "looker.ini",
53
- section: Optional[str] = None,
54
- config_settings: Optional[api_settings.ApiSettings] = None,
55
- ) -> methods31.Looker31SDK:
56
- """Default dependency configuration"""
57
- settings = (
58
- _settings(config_file, section) if config_settings is None else config_settings
59
- )
60
- settings.is_configured()
61
- transport = requests_transport.RequestsTransport.configure(settings)
62
- return methods31.Looker31SDK(
63
- auth_session.AuthSession(settings, transport, serialize.deserialize31, "3.1"),
64
- serialize.deserialize31,
65
- serialize.serialize31,
66
- transport,
67
- "3.1",
68
- )
69
-
70
-
71
48
  def init40(
72
49
  config_file: str = "looker.ini",
73
50
  section: Optional[str] = None,
@@ -108,24 +108,13 @@ def translate_keys_structure_hook(converter, data, model_type):
108
108
  ret = converter.structure_attrs_fromdict(new_data, model_type)
109
109
  return ret
110
110
 
111
-
112
- converter31 = cattr.Converter()
113
- deserialize31 = functools.partial(deserialize, converter=converter31)
114
- serialize31 = functools.partial(serialize, converter=converter31)
115
111
  converter40 = cattr.Converter()
116
112
  deserialize40 = functools.partial(deserialize, converter=converter40)
117
113
  serialize40 = functools.partial(serialize, converter=converter40)
118
114
 
119
-
120
- converter31.register_structure_hook(datetime.datetime, hooks.datetime_structure_hook)
121
115
  converter40.register_structure_hook(datetime.datetime, hooks.datetime_structure_hook)
122
- unstructure_hook31 = functools.partial(hooks.unstructure_hook, converter31) # type: ignore
123
116
  unstructure_hook40 = functools.partial(hooks.unstructure_hook, converter40) # type: ignore
124
- converter31.register_unstructure_hook(model.Model, unstructure_hook31) # type: ignore
125
117
  converter40.register_unstructure_hook(model.Model, unstructure_hook40) # type: ignore
126
- converter31.register_unstructure_hook(
127
- datetime.datetime, hooks.datetime_unstructure_hook # type: ignore
128
- )
129
118
  converter40.register_unstructure_hook(
130
119
  datetime.datetime, hooks.datetime_unstructure_hook # type: ignore
131
120
  )