fds.sdk.EventsandTranscripts 0.20.0__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.
Files changed (60) hide show
  1. fds/__init__.py +0 -0
  2. fds/sdk/EventsandTranscripts/__init__.py +28 -0
  3. fds/sdk/EventsandTranscripts/api/__init__.py +3 -0
  4. fds/sdk/EventsandTranscripts/api/calendar_events_api.py +309 -0
  5. fds/sdk/EventsandTranscripts/api/events_audio_api.py +1452 -0
  6. fds/sdk/EventsandTranscripts/api/near_real_time_transcripts_api.py +1190 -0
  7. fds/sdk/EventsandTranscripts/api/transcripts_api.py +1682 -0
  8. fds/sdk/EventsandTranscripts/api_client.py +929 -0
  9. fds/sdk/EventsandTranscripts/apis/__init__.py +20 -0
  10. fds/sdk/EventsandTranscripts/configuration.py +496 -0
  11. fds/sdk/EventsandTranscripts/exceptions.py +160 -0
  12. fds/sdk/EventsandTranscripts/model/__init__.py +5 -0
  13. fds/sdk/EventsandTranscripts/model/company_event_request.py +262 -0
  14. fds/sdk/EventsandTranscripts/model/company_event_request_data.py +294 -0
  15. fds/sdk/EventsandTranscripts/model/company_event_request_data_date_time.py +268 -0
  16. fds/sdk/EventsandTranscripts/model/company_event_request_data_universe.py +274 -0
  17. fds/sdk/EventsandTranscripts/model/company_event_response.py +262 -0
  18. fds/sdk/EventsandTranscripts/model/company_event_response_object.py +322 -0
  19. fds/sdk/EventsandTranscripts/model/error.py +262 -0
  20. fds/sdk/EventsandTranscripts/model/error_example.py +264 -0
  21. fds/sdk/EventsandTranscripts/model/events_audio_daily.py +268 -0
  22. fds/sdk/EventsandTranscripts/model/events_audio_daily_file_name.py +262 -0
  23. fds/sdk/EventsandTranscripts/model/events_audio_daily_file_name_data.py +328 -0
  24. fds/sdk/EventsandTranscripts/model/events_audio_daily_ids.py +262 -0
  25. fds/sdk/EventsandTranscripts/model/events_audio_daily_meta.py +262 -0
  26. fds/sdk/EventsandTranscripts/model/events_audio_daily_meta_pagination.py +260 -0
  27. fds/sdk/EventsandTranscripts/model/events_audio_daily_object.py +328 -0
  28. fds/sdk/EventsandTranscripts/model/events_audio_history.py +262 -0
  29. fds/sdk/EventsandTranscripts/model/events_audio_history_data.py +272 -0
  30. fds/sdk/EventsandTranscripts/model/events_audio_ids_object.py +328 -0
  31. fds/sdk/EventsandTranscripts/model/indexed_nrt.py +266 -0
  32. fds/sdk/EventsandTranscripts/model/nrt_calls.py +268 -0
  33. fds/sdk/EventsandTranscripts/model/nrt_calls_meta.py +262 -0
  34. fds/sdk/EventsandTranscripts/model/nrt_calls_meta_pagination.py +260 -0
  35. fds/sdk/EventsandTranscripts/model/nrt_calls_object.py +314 -0
  36. fds/sdk/EventsandTranscripts/model/nrt_speaker_id_object.py +272 -0
  37. fds/sdk/EventsandTranscripts/model/nrt_speaker_ids.py +268 -0
  38. fds/sdk/EventsandTranscripts/model/nrt_speaker_ids_meta.py +262 -0
  39. fds/sdk/EventsandTranscripts/model/nrt_speaker_ids_meta_pagination.py +260 -0
  40. fds/sdk/EventsandTranscripts/model/response_categories.py +262 -0
  41. fds/sdk/EventsandTranscripts/model/response_categories_object.py +264 -0
  42. fds/sdk/EventsandTranscripts/model/response_time.py +262 -0
  43. fds/sdk/EventsandTranscripts/model/response_time_object.py +256 -0
  44. fds/sdk/EventsandTranscripts/model/transcript_object.py +316 -0
  45. fds/sdk/EventsandTranscripts/model/transcript_object_one.py +320 -0
  46. fds/sdk/EventsandTranscripts/model/transcripts.py +268 -0
  47. fds/sdk/EventsandTranscripts/model/transcripts_meta.py +262 -0
  48. fds/sdk/EventsandTranscripts/model/transcripts_meta_pagination.py +260 -0
  49. fds/sdk/EventsandTranscripts/model/transcripts_one.py +268 -0
  50. fds/sdk/EventsandTranscripts/model/transcripts_one_meta.py +262 -0
  51. fds/sdk/EventsandTranscripts/model/transcripts_one_meta_pagination.py +260 -0
  52. fds/sdk/EventsandTranscripts/model_utils.py +2052 -0
  53. fds/sdk/EventsandTranscripts/models/__init__.py +50 -0
  54. fds/sdk/EventsandTranscripts/rest.py +347 -0
  55. fds/sdk/__init__.py +0 -0
  56. fds.sdk.EventsandTranscripts-0.20.0.dist-info/LICENSE +202 -0
  57. fds.sdk.EventsandTranscripts-0.20.0.dist-info/METADATA +369 -0
  58. fds.sdk.EventsandTranscripts-0.20.0.dist-info/RECORD +60 -0
  59. fds.sdk.EventsandTranscripts-0.20.0.dist-info/WHEEL +5 -0
  60. fds.sdk.EventsandTranscripts-0.20.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,50 @@
1
+ # flake8: noqa
2
+
3
+ # import all models into this package
4
+ # if you have many models here with many references from one model to another this may
5
+ # raise a RecursionError
6
+ # to avoid this, import only the models that you directly need like:
7
+ # from from fds.sdk.EventsandTranscripts.model.pet import Pet
8
+ # or import this package, but before doing it, use:
9
+ # import sys
10
+ # sys.setrecursionlimit(n)
11
+
12
+ from fds.sdk.EventsandTranscripts.model.company_event_request import CompanyEventRequest
13
+ from fds.sdk.EventsandTranscripts.model.company_event_request_data import CompanyEventRequestData
14
+ from fds.sdk.EventsandTranscripts.model.company_event_request_data_date_time import CompanyEventRequestDataDateTime
15
+ from fds.sdk.EventsandTranscripts.model.company_event_request_data_universe import CompanyEventRequestDataUniverse
16
+ from fds.sdk.EventsandTranscripts.model.company_event_response import CompanyEventResponse
17
+ from fds.sdk.EventsandTranscripts.model.company_event_response_object import CompanyEventResponseObject
18
+ from fds.sdk.EventsandTranscripts.model.error import Error
19
+ from fds.sdk.EventsandTranscripts.model.error_example import ErrorExample
20
+ from fds.sdk.EventsandTranscripts.model.events_audio_daily import EventsAudioDaily
21
+ from fds.sdk.EventsandTranscripts.model.events_audio_daily_file_name import EventsAudioDailyFileName
22
+ from fds.sdk.EventsandTranscripts.model.events_audio_daily_file_name_data import EventsAudioDailyFileNameData
23
+ from fds.sdk.EventsandTranscripts.model.events_audio_daily_ids import EventsAudioDailyIds
24
+ from fds.sdk.EventsandTranscripts.model.events_audio_daily_meta import EventsAudioDailyMeta
25
+ from fds.sdk.EventsandTranscripts.model.events_audio_daily_meta_pagination import EventsAudioDailyMetaPagination
26
+ from fds.sdk.EventsandTranscripts.model.events_audio_daily_object import EventsAudioDailyObject
27
+ from fds.sdk.EventsandTranscripts.model.events_audio_history import EventsAudioHistory
28
+ from fds.sdk.EventsandTranscripts.model.events_audio_history_data import EventsAudioHistoryData
29
+ from fds.sdk.EventsandTranscripts.model.events_audio_ids_object import EventsAudioIdsObject
30
+ from fds.sdk.EventsandTranscripts.model.indexed_nrt import IndexedNrt
31
+ from fds.sdk.EventsandTranscripts.model.nrt_calls import NrtCalls
32
+ from fds.sdk.EventsandTranscripts.model.nrt_calls_meta import NrtCallsMeta
33
+ from fds.sdk.EventsandTranscripts.model.nrt_calls_meta_pagination import NrtCallsMetaPagination
34
+ from fds.sdk.EventsandTranscripts.model.nrt_calls_object import NrtCallsObject
35
+ from fds.sdk.EventsandTranscripts.model.nrt_speaker_id_object import NrtSpeakerIdObject
36
+ from fds.sdk.EventsandTranscripts.model.nrt_speaker_ids import NrtSpeakerIds
37
+ from fds.sdk.EventsandTranscripts.model.nrt_speaker_ids_meta import NrtSpeakerIdsMeta
38
+ from fds.sdk.EventsandTranscripts.model.nrt_speaker_ids_meta_pagination import NrtSpeakerIdsMetaPagination
39
+ from fds.sdk.EventsandTranscripts.model.response_categories import ResponseCategories
40
+ from fds.sdk.EventsandTranscripts.model.response_categories_object import ResponseCategoriesObject
41
+ from fds.sdk.EventsandTranscripts.model.response_time import ResponseTime
42
+ from fds.sdk.EventsandTranscripts.model.response_time_object import ResponseTimeObject
43
+ from fds.sdk.EventsandTranscripts.model.transcript_object import TranscriptObject
44
+ from fds.sdk.EventsandTranscripts.model.transcript_object_one import TranscriptObjectOne
45
+ from fds.sdk.EventsandTranscripts.model.transcripts import Transcripts
46
+ from fds.sdk.EventsandTranscripts.model.transcripts_meta import TranscriptsMeta
47
+ from fds.sdk.EventsandTranscripts.model.transcripts_meta_pagination import TranscriptsMetaPagination
48
+ from fds.sdk.EventsandTranscripts.model.transcripts_one import TranscriptsOne
49
+ from fds.sdk.EventsandTranscripts.model.transcripts_one_meta import TranscriptsOneMeta
50
+ from fds.sdk.EventsandTranscripts.model.transcripts_one_meta_pagination import TranscriptsOneMetaPagination
@@ -0,0 +1,347 @@
1
+ """
2
+ EVENTS AND TRANSCRIPTS API
3
+
4
+ <p>The Calendar Events API provides access to FactSet’s Event Calendar data alongside business logic that allows users to replicate views and functionality consistent with the experience provided by the Workstation. This API provides the ability to pull Event Calendar data based on specific filters.</p> <p>Events Audio API provides access to historical as well as the latest audio recordings of various company events covered by FactSet. The events include, but are not limited to: earnings calls, conferences, and investor days. This API also provides relevant metadata such as timestamps and identifiers around each audio file.</p> <p>The Near Real-time Transcripts API enables access to Near Real-time Transcripts provided by CallStreet to time-sensitive clients. This API also provides the relevant speaker metadata along with their confidence scores. This data caters to quant clients interested in building machine learning models. Clients can leverage this API to perform sentiment analysis through natural language processing or machine learning. It can also be used to complement analysis using FactSet's transcripts service.</p> <p>Transcripts API provides conference call transcripts for companies' publicly held conference calls and a wealth of information regarding upcoming corporate events, such as conference call date and time, phone number and password, type of conference call, and important company investor relations contact information.</p> # noqa: E501
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+ Contact: api@factset.com
8
+ Generated by: https://openapi-generator.tech
9
+ """
10
+
11
+
12
+ import io
13
+ import json
14
+ import logging
15
+ import re
16
+ import ssl
17
+ from urllib.parse import urlencode
18
+ from urllib.parse import urlparse
19
+ from urllib.request import proxy_bypass_environment
20
+ import urllib3
21
+ import ipaddress
22
+
23
+ from fds.sdk.EventsandTranscripts.exceptions import ApiException, UnauthorizedException, ForbiddenException, NotFoundException, ServiceException, ApiValueError
24
+
25
+
26
+ logger = logging.getLogger(__name__)
27
+
28
+
29
+ class RESTResponse(io.IOBase):
30
+
31
+ def __init__(self, resp):
32
+ self.urllib3_response = resp
33
+ self.status = resp.status
34
+ self.reason = resp.reason
35
+ self.data = resp.data
36
+
37
+ def getheaders(self):
38
+ """Returns a dictionary of the response headers."""
39
+ return self.urllib3_response.getheaders()
40
+
41
+ def getheader(self, name, default=None):
42
+ """Returns a given response header."""
43
+ return self.urllib3_response.getheader(name, default)
44
+
45
+
46
+ class RESTClientObject(object):
47
+
48
+ def __init__(self, configuration, pools_size=4, maxsize=None):
49
+ # urllib3.PoolManager will pass all kw parameters to connectionpool
50
+ # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/poolmanager.py#L75 # noqa: E501
51
+ # https://github.com/shazow/urllib3/blob/f9409436f83aeb79fbaf090181cd81b784f1b8ce/urllib3/connectionpool.py#L680 # noqa: E501
52
+ # maxsize is the number of requests to host that are allowed in parallel # noqa: E501
53
+ # Custom SSL certificates and client certificates: http://urllib3.readthedocs.io/en/latest/advanced-usage.html # noqa: E501
54
+
55
+ # cert_reqs
56
+ if configuration.verify_ssl:
57
+ cert_reqs = ssl.CERT_REQUIRED
58
+ else:
59
+ cert_reqs = ssl.CERT_NONE
60
+
61
+ addition_pool_args = {}
62
+ if configuration.assert_hostname is not None:
63
+ addition_pool_args['assert_hostname'] = configuration.assert_hostname # noqa: E501
64
+
65
+ if configuration.retries is not None:
66
+ addition_pool_args['retries'] = configuration.retries
67
+
68
+ if configuration.socket_options is not None:
69
+ addition_pool_args['socket_options'] = configuration.socket_options
70
+
71
+ if maxsize is None:
72
+ if configuration.connection_pool_maxsize is not None:
73
+ maxsize = configuration.connection_pool_maxsize
74
+ else:
75
+ maxsize = 4
76
+
77
+ # https pool manager
78
+ if configuration.proxy and not should_bypass_proxies(configuration.host, no_proxy=configuration.no_proxy or ''):
79
+ self.pool_manager = urllib3.ProxyManager(
80
+ num_pools=pools_size,
81
+ maxsize=maxsize,
82
+ cert_reqs=cert_reqs,
83
+ ca_certs=configuration.ssl_ca_cert,
84
+ cert_file=configuration.cert_file,
85
+ key_file=configuration.key_file,
86
+ proxy_url=configuration.proxy,
87
+ proxy_headers=configuration.proxy_headers,
88
+ **addition_pool_args
89
+ )
90
+ else:
91
+ self.pool_manager = urllib3.PoolManager(
92
+ num_pools=pools_size,
93
+ maxsize=maxsize,
94
+ cert_reqs=cert_reqs,
95
+ ca_certs=configuration.ssl_ca_cert,
96
+ cert_file=configuration.cert_file,
97
+ key_file=configuration.key_file,
98
+ **addition_pool_args
99
+ )
100
+
101
+ def request(self, method, url, query_params=None, headers=None,
102
+ body=None, post_params=None, _preload_content=True,
103
+ _request_timeout=None):
104
+ """Perform requests.
105
+
106
+ :param method: http request method
107
+ :param url: http request url
108
+ :param query_params: query parameters in the url
109
+ :param headers: http request headers
110
+ :param body: request json body, for `application/json`
111
+ :param post_params: request post parameters,
112
+ `application/x-www-form-urlencoded`
113
+ and `multipart/form-data`
114
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
115
+ be returned without reading/decoding response
116
+ data. Default is True.
117
+ :param _request_timeout: timeout setting for this request. If one
118
+ number provided, it will be total request
119
+ timeout. It can also be a pair (tuple) of
120
+ (connection, read) timeouts.
121
+ """
122
+ method = method.upper()
123
+ assert method in ['GET', 'HEAD', 'DELETE', 'POST', 'PUT',
124
+ 'PATCH', 'OPTIONS']
125
+
126
+ if post_params and body:
127
+ raise ApiValueError(
128
+ "body parameter cannot be used with post_params parameter."
129
+ )
130
+
131
+ post_params = post_params or {}
132
+ headers = headers or {}
133
+
134
+ timeout = None
135
+ if _request_timeout:
136
+ if isinstance(_request_timeout, (int, float)): # noqa: E501,F821
137
+ timeout = urllib3.Timeout(total=_request_timeout)
138
+ elif (isinstance(_request_timeout, tuple) and
139
+ len(_request_timeout) == 2):
140
+ timeout = urllib3.Timeout(
141
+ connect=_request_timeout[0], read=_request_timeout[1])
142
+
143
+ try:
144
+ # For `POST`, `PUT`, `PATCH`, `OPTIONS`, `DELETE`
145
+ if method in ['POST', 'PUT', 'PATCH', 'OPTIONS', 'DELETE']:
146
+ # Only set a default Content-Type for POST, PUT, PATCH and OPTIONS requests
147
+ if (method != 'DELETE') and ('Content-Type' not in headers):
148
+ headers['Content-Type'] = 'application/json'
149
+ if query_params:
150
+ url += '?' + urlencode(query_params)
151
+ if ('Content-Type' not in headers) or (re.search('json', headers['Content-Type'], re.IGNORECASE)):
152
+ request_body = None
153
+ if body is not None:
154
+ request_body = json.dumps(body)
155
+ r = self.pool_manager.request(
156
+ method, url,
157
+ body=request_body,
158
+ preload_content=_preload_content,
159
+ timeout=timeout,
160
+ headers=headers)
161
+ elif headers['Content-Type'] == 'application/x-www-form-urlencoded': # noqa: E501
162
+ r = self.pool_manager.request(
163
+ method, url,
164
+ fields=post_params,
165
+ encode_multipart=False,
166
+ preload_content=_preload_content,
167
+ timeout=timeout,
168
+ headers=headers)
169
+ elif headers['Content-Type'] == 'multipart/form-data':
170
+ # must del headers['Content-Type'], or the correct
171
+ # Content-Type which generated by urllib3 will be
172
+ # overwritten.
173
+ del headers['Content-Type']
174
+ r = self.pool_manager.request(
175
+ method, url,
176
+ fields=post_params,
177
+ encode_multipart=True,
178
+ preload_content=_preload_content,
179
+ timeout=timeout,
180
+ headers=headers)
181
+ # Pass a `string` parameter directly in the body to support
182
+ # other content types than Json when `body` argument is
183
+ # provided in serialized form
184
+ elif isinstance(body, str) or isinstance(body, bytes):
185
+ request_body = body
186
+ r = self.pool_manager.request(
187
+ method, url,
188
+ body=request_body,
189
+ preload_content=_preload_content,
190
+ timeout=timeout,
191
+ headers=headers)
192
+ else:
193
+ # Cannot generate the request from given parameters
194
+ msg = """Cannot prepare a request message for provided
195
+ arguments. Please check that your arguments match
196
+ declared content type."""
197
+ raise ApiException(status=0, reason=msg)
198
+ # For `GET`, `HEAD`
199
+ else:
200
+ r = self.pool_manager.request(method, url,
201
+ fields=query_params,
202
+ preload_content=_preload_content,
203
+ timeout=timeout,
204
+ headers=headers)
205
+ except urllib3.exceptions.SSLError as e:
206
+ msg = "{0}\n{1}".format(type(e).__name__, str(e))
207
+ raise ApiException(status=0, reason=msg)
208
+
209
+ if _preload_content:
210
+ r = RESTResponse(r)
211
+
212
+ # log response body
213
+ logger.debug("response body: %s", r.data)
214
+
215
+ if not 200 <= r.status <= 299:
216
+ if r.status == 401:
217
+ raise UnauthorizedException(http_resp=r)
218
+
219
+ if r.status == 403:
220
+ raise ForbiddenException(http_resp=r)
221
+
222
+ if r.status == 404:
223
+ raise NotFoundException(http_resp=r)
224
+
225
+ if 500 <= r.status <= 599:
226
+ raise ServiceException(http_resp=r)
227
+
228
+ raise ApiException(http_resp=r)
229
+
230
+ return r
231
+
232
+ def GET(self, url, headers=None, query_params=None, _preload_content=True,
233
+ _request_timeout=None):
234
+ return self.request("GET", url,
235
+ headers=headers,
236
+ _preload_content=_preload_content,
237
+ _request_timeout=_request_timeout,
238
+ query_params=query_params)
239
+
240
+ def HEAD(self, url, headers=None, query_params=None, _preload_content=True,
241
+ _request_timeout=None):
242
+ return self.request("HEAD", url,
243
+ headers=headers,
244
+ _preload_content=_preload_content,
245
+ _request_timeout=_request_timeout,
246
+ query_params=query_params)
247
+
248
+ def OPTIONS(self, url, headers=None, query_params=None, post_params=None,
249
+ body=None, _preload_content=True, _request_timeout=None):
250
+ return self.request("OPTIONS", url,
251
+ headers=headers,
252
+ query_params=query_params,
253
+ post_params=post_params,
254
+ _preload_content=_preload_content,
255
+ _request_timeout=_request_timeout,
256
+ body=body)
257
+
258
+ def DELETE(self, url, headers=None, query_params=None, body=None,
259
+ _preload_content=True, _request_timeout=None):
260
+ return self.request("DELETE", url,
261
+ headers=headers,
262
+ query_params=query_params,
263
+ _preload_content=_preload_content,
264
+ _request_timeout=_request_timeout,
265
+ body=body)
266
+
267
+ def POST(self, url, headers=None, query_params=None, post_params=None,
268
+ body=None, _preload_content=True, _request_timeout=None):
269
+ return self.request("POST", url,
270
+ headers=headers,
271
+ query_params=query_params,
272
+ post_params=post_params,
273
+ _preload_content=_preload_content,
274
+ _request_timeout=_request_timeout,
275
+ body=body)
276
+
277
+ def PUT(self, url, headers=None, query_params=None, post_params=None,
278
+ body=None, _preload_content=True, _request_timeout=None):
279
+ return self.request("PUT", url,
280
+ headers=headers,
281
+ query_params=query_params,
282
+ post_params=post_params,
283
+ _preload_content=_preload_content,
284
+ _request_timeout=_request_timeout,
285
+ body=body)
286
+
287
+ def PATCH(self, url, headers=None, query_params=None, post_params=None,
288
+ body=None, _preload_content=True, _request_timeout=None):
289
+ return self.request("PATCH", url,
290
+ headers=headers,
291
+ query_params=query_params,
292
+ post_params=post_params,
293
+ _preload_content=_preload_content,
294
+ _request_timeout=_request_timeout,
295
+ body=body)
296
+
297
+ # end of class RESTClientObject
298
+ def is_ipv4(target):
299
+ """ Test if IPv4 address or not
300
+ """
301
+ try:
302
+ chk = ipaddress.IPv4Address(target)
303
+ return True
304
+ except ipaddress.AddressValueError:
305
+ return False
306
+
307
+ def in_ipv4net(target, net):
308
+ """ Test if target belongs to given IPv4 network
309
+ """
310
+ try:
311
+ nw = ipaddress.IPv4Network(net)
312
+ ip = ipaddress.IPv4Address(target)
313
+ if ip in nw:
314
+ return True
315
+ return False
316
+ except ipaddress.AddressValueError:
317
+ return False
318
+ except ipaddress.NetmaskValueError:
319
+ return False
320
+
321
+ def should_bypass_proxies(url, no_proxy=None):
322
+ """ Yet another requests.should_bypass_proxies
323
+ Test if proxies should not be used for a particular url.
324
+ """
325
+
326
+ parsed = urlparse(url)
327
+
328
+ # special cases
329
+ if parsed.hostname in [None, '']:
330
+ return True
331
+
332
+ # special cases
333
+ if no_proxy in [None , '']:
334
+ return False
335
+ if no_proxy == '*':
336
+ return True
337
+
338
+ no_proxy = no_proxy.lower().replace(' ','');
339
+ entries = (
340
+ host for host in no_proxy.split(',') if host
341
+ )
342
+
343
+ if is_ipv4(parsed.hostname):
344
+ for item in entries:
345
+ if in_ipv4net(parsed.hostname, item):
346
+ return True
347
+ return proxy_bypass_environment(parsed.hostname, {'no': no_proxy} )
fds/sdk/__init__.py ADDED
File without changes
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright 2019 FactSet Research Systems Inc
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.