mux-python 5.1.0__py3-none-any.whl → 5.1.2__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.
mux_python/__init__.py CHANGED
@@ -15,7 +15,7 @@
15
15
 
16
16
  from __future__ import absolute_import
17
17
 
18
- __version__ = "5.1.0"
18
+ __version__ = "5.1.2"
19
19
 
20
20
  # import apis into sdk package
21
21
  from mux_python.api.annotations_api import AnnotationsApi
@@ -51,6 +51,8 @@ class DimensionsApi(object):
51
51
  :type dimension_id: str
52
52
  :param limit: Number of items to include in the response
53
53
  :type limit: int
54
+ :param page: Offset by this many pages, of the size of `limit`
55
+ :type page: int
54
56
  :param filters: Filter results using key:value pairs. Must be provided as an array query string parameter. **Basic filtering:** * `filters[]=dimension:value` - Include rows where dimension equals value * `filters[]=!dimension:value` - Exclude rows where dimension equals value **For trace dimensions (like video_cdn_trace):** * `filters[]=+dimension:value` - Include rows where trace contains value * `filters[]=-dimension:value` - Exclude rows where trace contains value * `filters[]=dimension:[value1,value2]` - Exact trace match **Examples:** * `filters[]=country:US` - US views only * `filters[]=+video_cdn_trace:fastly` - Views using Fastly CDN
55
57
  :type filters: list[str]
56
58
  :param metric_filters: Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of `exits_before_video_start`, `unique_viewers`, `video_startup_failure_percentage`, `view_dropped_percentage`, and `views`. Example: * `metric_filters[]=aggregate_startup_time>=1000`
@@ -93,6 +95,8 @@ class DimensionsApi(object):
93
95
  :type dimension_id: str
94
96
  :param limit: Number of items to include in the response
95
97
  :type limit: int
98
+ :param page: Offset by this many pages, of the size of `limit`
99
+ :type page: int
96
100
  :param filters: Filter results using key:value pairs. Must be provided as an array query string parameter. **Basic filtering:** * `filters[]=dimension:value` - Include rows where dimension equals value * `filters[]=!dimension:value` - Exclude rows where dimension equals value **For trace dimensions (like video_cdn_trace):** * `filters[]=+dimension:value` - Include rows where trace contains value * `filters[]=-dimension:value` - Exclude rows where trace contains value * `filters[]=dimension:[value1,value2]` - Exact trace match **Examples:** * `filters[]=country:US` - US views only * `filters[]=+video_cdn_trace:fastly` - Views using Fastly CDN
97
101
  :type filters: list[str]
98
102
  :param metric_filters: Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of `exits_before_video_start`, `unique_viewers`, `video_startup_failure_percentage`, `view_dropped_percentage`, and `views`. Example: * `metric_filters[]=aggregate_startup_time>=1000`
@@ -143,6 +147,7 @@ class DimensionsApi(object):
143
147
  all_params = [
144
148
  'dimension_id',
145
149
  'limit',
150
+ 'page',
146
151
  'filters',
147
152
  'metric_filters',
148
153
  'timeframe',
@@ -181,6 +186,8 @@ class DimensionsApi(object):
181
186
  query_params = []
182
187
  if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501
183
188
  query_params.append(('limit', local_var_params['limit'])) # noqa: E501
189
+ if 'page' in local_var_params and local_var_params['page'] is not None: # noqa: E501
190
+ query_params.append(('page', local_var_params['page'])) # noqa: E501
184
191
  if 'filters' in local_var_params and local_var_params['filters'] is not None: # noqa: E501
185
192
  query_params.append(('filters[]', local_var_params['filters'])) # noqa: E501
186
193
  collection_formats['filters[]'] = 'multi' # noqa: E501
mux_python/api_client.py CHANGED
@@ -79,7 +79,7 @@ class ApiClient(object):
79
79
  self.default_headers[header_name] = header_value
80
80
  self.cookie = cookie
81
81
  # Set default User-Agent.
82
- self.user_agent = 'Mux Python | 5.1.0'
82
+ self.user_agent = 'Mux Python | 5.1.2'
83
83
  self.client_side_validation = configuration.client_side_validation
84
84
 
85
85
  def __enter__(self):
@@ -406,7 +406,7 @@ conf = mux_python.Configuration(
406
406
  "OS: {env}\n"\
407
407
  "Python Version: {pyversion}\n"\
408
408
  "Version of the API: v1\n"\
409
- "SDK Package Version: 5.1.0".\
409
+ "SDK Package Version: 5.1.2".\
410
410
  format(env=sys.platform, pyversion=sys.version)
411
411
 
412
412
  def get_host_settings(self):
mux_python/rest.py CHANGED
@@ -44,7 +44,7 @@ class RESTResponse(io.IOBase):
44
44
 
45
45
  def getheader(self, name, default=None):
46
46
  """Returns a given response header."""
47
- return self.urllib3_response.getheader(name, default)
47
+ return self.urllib3_response.headers.get(name, default)
48
48
 
49
49
 
50
50
  class RESTClientObject(object):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mux_python
3
- Version: 5.1.0
3
+ Version: 5.1.2
4
4
  Summary: Mux API
5
5
  Home-page: https://github.com/muxinc/mux-python
6
6
  Author: Mux DevEx
@@ -1,13 +1,13 @@
1
- mux_python/__init__.py,sha256=DOa6bgO2IF8FZxKG8IFgzHmHdifkpQsxGViTNhCmnAw,15175
2
- mux_python/api_client.py,sha256=zSU-iuXR-Wqw50wb5NTB1CWAvobhomoxdvjEmt1OJ7U,27513
3
- mux_python/configuration.py,sha256=dMNttK7Ua0QwqXVDBe3DkJ0lJyCRPlG2xPV6j0MBnBw,16923
1
+ mux_python/__init__.py,sha256=NxXXc_7bJ5o7VLEnKPcG7M_vOgfWEpfFVUbtNjICDcU,15175
2
+ mux_python/api_client.py,sha256=CY0b1LGU8Fap47WP98TxtbYu9sCiLQEA4YOm1kfrBc4,27513
3
+ mux_python/configuration.py,sha256=EYX4K2UOfa_A-_v90Jh2ghzcoe6xvDz8cl6uL0HMu7Q,16923
4
4
  mux_python/exceptions.py,sha256=lu9AENO-CBMVbWjBHO8vi1rdqlZXPGu9NrzyC1_RsjQ,5235
5
- mux_python/rest.py,sha256=wV5uJQSjPCP6fs25NkiqjNt-OrPa9ueXy7pT0k0PRcM,12757
5
+ mux_python/rest.py,sha256=e3h9BA0ohtOXIxeA60PWgp9WIVUuWRwLJPXy66XvKm4,12759
6
6
  mux_python/api/__init__.py,sha256=3bNBwJphua5jd2IZdoLbxlQmmzFdLJcsWr1gD4btBQw,1324
7
7
  mux_python/api/annotations_api.py,sha256=-VUtMMMk8vKp2wZs2i2POUFuzonymdXNEt6avepQFa8,33036
8
8
  mux_python/api/assets_api.py,sha256=69NfuUaR-PUE-hA9BV0A4Pc5dUJQ6tm0nLE7vpHL9VU,113219
9
9
  mux_python/api/delivery_usage_api.py,sha256=z40SrchQhxmdwtyUm9QtdZTke2GYEokz7MasY8iDwoY,9197
10
- mux_python/api/dimensions_api.py,sha256=kKpQ8x1EScF4GrJoe3bFXORcgBc_ZYgFuBVykepDqwk,29311
10
+ mux_python/api/dimensions_api.py,sha256=SM1wonRM15NGwhXwsmyYtovChTDTzJvDr-VZF_VndBo,29697
11
11
  mux_python/api/direct_uploads_api.py,sha256=u1peIlXNTDFBO1pzn8rpxxbBhECmvczmEPqduV-HnAI,25573
12
12
  mux_python/api/drm_configurations_api.py,sha256=YvYivbTIGwuwGW35U7nVVHkIAjy8_n3AS7bWLnmMUSk,13135
13
13
  mux_python/api/errors_api.py,sha256=fF_OEbj5lVMesq2N6sfnnv_a37zpBR4mCc4foWxVpOQ,9983
@@ -202,8 +202,8 @@ mux_python/models/video_view_event.py,sha256=DEIoAJQaflQiCe-LzZ1FpSVzfphd60gguRM
202
202
  mux_python/models/video_view_response.py,sha256=WIZxYDoRy2bV_3pM9bh77yQl-u44v9tttqVcjkl7u9U,5286
203
203
  mux_python/models/web_input.py,sha256=iiWvX2zHyUVaONykYD91OrAbtWibkEmxnZVybdk-Wpo,11494
204
204
  mux_python/models/web_input_response.py,sha256=CK4fRkjFyybGkroi2p_IrJuYY-zrkOts43pb04KZJmA,3761
205
- mux_python-5.1.0.dist-info/licenses/LICENSE,sha256=91ofDzpAlU0g_rBGCekCqHSM43zE-F_o0VKuVnvDGcg,1049
206
- mux_python-5.1.0.dist-info/METADATA,sha256=nk2u5FmcF1s3O4bE2narALqr8IeKAxPKhw-U37pCXY0,7002
207
- mux_python-5.1.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
208
- mux_python-5.1.0.dist-info/top_level.txt,sha256=tKyLMk1WAr8sVt4DdWCD5fslQ482AxVCZw1GzgvALSc,11
209
- mux_python-5.1.0.dist-info/RECORD,,
205
+ mux_python-5.1.2.dist-info/licenses/LICENSE,sha256=91ofDzpAlU0g_rBGCekCqHSM43zE-F_o0VKuVnvDGcg,1049
206
+ mux_python-5.1.2.dist-info/METADATA,sha256=DJ7lIMejUMvLxsSuk7KAZCaSD8DBNtkMLRDKR-OXw5c,7002
207
+ mux_python-5.1.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
208
+ mux_python-5.1.2.dist-info/top_level.txt,sha256=tKyLMk1WAr8sVt4DdWCD5fslQ482AxVCZw1GzgvALSc,11
209
+ mux_python-5.1.2.dist-info/RECORD,,