fds.sdk.FactSetProgrammaticEnvironment 0.21.6__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.
@@ -0,0 +1,18 @@
1
+
2
+ # flake8: noqa
3
+
4
+ # Import all APIs into this package.
5
+ # If you have many APIs here with many many models used in each API this may
6
+ # raise a `RecursionError`.
7
+ # In order to avoid this, import only the API that you directly need like:
8
+ #
9
+ # from .api.calculations_api import CalculationsApi
10
+ #
11
+ # or import this package, but before doing it, use:
12
+ #
13
+ # import sys
14
+ # sys.setrecursionlimit(n)
15
+
16
+ # Import APIs into API package:
17
+ from fds.sdk.FactSetProgrammaticEnvironment.api.calculations_api import CalculationsApi
18
+ from fds.sdk.FactSetProgrammaticEnvironment.api.files_api import FilesApi
@@ -0,0 +1,495 @@
1
+ """
2
+ FPE API
3
+
4
+ FactSet Programmatic Environment (FPE) API is an API for users to interact with FPE programmatically, streamlining path from research to production. # noqa: E501
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+ Generated by: https://openapi-generator.tech
8
+ """
9
+
10
+
11
+ import copy
12
+ import logging
13
+ import multiprocessing
14
+ import sys
15
+ import urllib3
16
+
17
+ from http import client as http_client
18
+ from fds.sdk.FactSetProgrammaticEnvironment.exceptions import ApiValueError
19
+ from fds.sdk.utils.authentication import OAuth2Client
20
+
21
+
22
+ JSON_SCHEMA_VALIDATION_KEYWORDS = {
23
+ 'multipleOf', 'maximum', 'exclusiveMaximum',
24
+ 'minimum', 'exclusiveMinimum', 'maxLength',
25
+ 'minLength', 'pattern', 'maxItems', 'minItems'
26
+ }
27
+
28
+ class Configuration(object):
29
+ """NOTE: This class is auto generated by OpenAPI Generator
30
+
31
+ Ref: https://openapi-generator.tech
32
+ Do not edit the class manually.
33
+
34
+ :param host: Base url
35
+ :param api_key: Dict to store API key(s).
36
+ Each entry in the dict specifies an API key.
37
+ The dict key is the name of the security scheme in the OAS specification.
38
+ The dict value is the API key secret.
39
+ :param api_key_prefix: Dict to store API prefix (e.g. Bearer)
40
+ The dict key is the name of the security scheme in the OAS specification.
41
+ The dict value is an API key prefix when generating the auth data.
42
+ :param username: Username for HTTP basic authentication
43
+ :param password: Password for HTTP basic authentication
44
+ :param discard_unknown_keys: Boolean value indicating whether to discard
45
+ unknown properties. A server may send a response that includes additional
46
+ properties that are not known by the client in the following scenarios:
47
+ 1. The OpenAPI document is incomplete, i.e. it does not match the server
48
+ implementation.
49
+ 2. The client was generated using an older version of the OpenAPI document
50
+ and the server has been upgraded since then.
51
+ If a schema in the OpenAPI document defines the additionalProperties attribute,
52
+ then all undeclared properties received by the server are injected into the
53
+ additional properties map. In that case, there are undeclared properties, and
54
+ nothing to discard.
55
+ :param disabled_client_side_validations (string): Comma-separated list of
56
+ JSON schema validation keywords to disable JSON schema structural validation
57
+ rules. The following keywords may be specified: multipleOf, maximum,
58
+ exclusiveMaximum, minimum, exclusiveMinimum, maxLength, minLength, pattern,
59
+ maxItems, minItems.
60
+ By default, the validation is performed for data generated locally by the client
61
+ and data received from the server, independent of any validation performed by
62
+ the server side. If the input data does not satisfy the JSON schema validation
63
+ rules specified in the OpenAPI document, an exception is raised.
64
+ If disabled_client_side_validations is set, structural validation is
65
+ disabled. This can be useful to troubleshoot data validation problem, such as
66
+ when the OpenAPI document validation rules do not match the actual API data
67
+ received by the server.
68
+ :param server_index: Index to servers configuration.
69
+ :param server_variables: Mapping with string values to replace variables in
70
+ templated server configuration. The validation of enums is performed for
71
+ variables with defined enum values before.
72
+ :param server_operation_index: Mapping from operation ID to an index to server
73
+ configuration.
74
+ :param server_operation_variables: Mapping from operation ID to a mapping with
75
+ string values to replace variables in templated server configuration.
76
+ The validation of enums is performed for variables with defined enum values before.
77
+ :param ssl_ca_cert: str - the path to a file of concatenated CA certificates
78
+ in PEM format
79
+ :param verify_ssl: Boolean - Set this to ``False`` to skip verifying SSL certificate when calling API from
80
+ https server. When set to ``False``, requests will accept any TLS certificate presented by the server,
81
+ and will ignore hostname mismatches and/or expired certificates, which will make your application
82
+ vulnerable to man-in-the-middle (MitM) attacks. Setting verify to ``False`` may be useful during
83
+ local development or testing.
84
+ :param proxy: str - URL of the proxy to use.
85
+ :param proxy_headers: dict - dictionary of additional headers sent to the proxy server (e.g. ``Proxy-Authorization``)
86
+
87
+ :Example:
88
+
89
+ HTTP Basic Authentication Example.
90
+ Given the following security scheme in the OpenAPI specification:
91
+ components:
92
+ securitySchemes:
93
+ http_basic_auth:
94
+ type: http
95
+ scheme: basic
96
+
97
+ Configure API client with HTTP basic authentication:
98
+
99
+ conf = fds.sdk.FactSetProgrammaticEnvironment.Configuration(
100
+ username='the-user',
101
+ password='the-password',
102
+ )
103
+
104
+ """
105
+
106
+ _default = None
107
+
108
+ def __init__(self, host=None,
109
+ api_key=None, api_key_prefix=None,
110
+ access_token=None,
111
+ fds_oauth_client=None,
112
+ username=None, password=None,
113
+ discard_unknown_keys=True,
114
+ disabled_client_side_validations="",
115
+ server_index=None, server_variables=None,
116
+ server_operation_index=None, server_operation_variables=None,
117
+ ssl_ca_cert=None, verify_ssl=True,
118
+ proxy=None, proxy_headers=None,
119
+ ):
120
+ """Constructor
121
+ """
122
+ self._base_path = "https://api.factset.com" if host is None else host
123
+ """Default Base url
124
+ """
125
+ self.server_index = 0 if server_index is None and host is None else server_index
126
+ self.server_operation_index = server_operation_index or {}
127
+ """Default server index
128
+ """
129
+ self.server_variables = server_variables or {}
130
+ self.server_operation_variables = server_operation_variables or {}
131
+ """Default server variables
132
+ """
133
+ self.temp_folder_path = None
134
+ """Temp file folder for downloading files
135
+ """
136
+ # Authentication Settings
137
+ self.access_token = access_token
138
+ self.fds_oauth_client = fds_oauth_client
139
+ self.api_key = {}
140
+ if api_key:
141
+ self.api_key = api_key
142
+ """dict to store API key(s)
143
+ """
144
+ self.api_key_prefix = {}
145
+ if api_key_prefix:
146
+ self.api_key_prefix = api_key_prefix
147
+ """dict to store API prefix (e.g. Bearer)
148
+ """
149
+ self.refresh_api_key_hook = None
150
+ """function hook to refresh API key if expired
151
+ """
152
+ self.username = username
153
+ """Username for HTTP basic authentication
154
+ """
155
+ self.password = password
156
+ """Password for HTTP basic authentication
157
+ """
158
+ self.discard_unknown_keys = discard_unknown_keys
159
+ self.disabled_client_side_validations = disabled_client_side_validations
160
+ self.logger = {}
161
+ """Logging Settings
162
+ """
163
+ self.logger["package_logger"] = logging.getLogger("fds.sdk.FactSetProgrammaticEnvironment")
164
+ self.logger["urllib3_logger"] = logging.getLogger("urllib3")
165
+ self.logger_format = '%(asctime)s %(levelname)s %(message)s'
166
+ """Log format
167
+ """
168
+ self.logger_stream_handler = None
169
+ """Log stream handler
170
+ """
171
+ self.logger_file_handler = None
172
+ """Log file handler
173
+ """
174
+ self.logger_file = None
175
+ """Debug file location
176
+ """
177
+ self.debug = False
178
+ """Debug switch
179
+ """
180
+
181
+ self.verify_ssl = verify_ssl
182
+ """SSL/TLS verification
183
+ Set this to false to skip verifying SSL certificate when calling API
184
+ from https server.
185
+ """
186
+ self.ssl_ca_cert = ssl_ca_cert
187
+ """Set this to customize the certificate file to verify the peer.
188
+ """
189
+ self.cert_file = None
190
+ """client certificate file
191
+ """
192
+ self.key_file = None
193
+ """client key file
194
+ """
195
+ self.assert_hostname = None
196
+ """Set this to True/False to enable/disable SSL hostname verification.
197
+ """
198
+
199
+ self.connection_pool_maxsize = multiprocessing.cpu_count() * 5
200
+ """urllib3 connection pool's maximum number of connections saved
201
+ per pool. urllib3 uses 1 connection as default value, but this is
202
+ not the best value when you are making a lot of possibly parallel
203
+ requests to the same host, which is often the case here.
204
+ cpu_count * 5 is used as default value to increase performance.
205
+ """
206
+
207
+ self.proxy = proxy
208
+ """Proxy URL
209
+ """
210
+ self.no_proxy = None
211
+ """bypass proxy for host in the no_proxy list.
212
+ """
213
+ self.proxy_headers = proxy_headers
214
+ """Proxy headers
215
+ """
216
+ self.safe_chars_for_path_param = ''
217
+ """Safe chars for path_param
218
+ """
219
+ self.retries = None
220
+ """Adding retries to override urllib3 default value 3
221
+ """
222
+ # Enable client side validation
223
+ self.client_side_validation = True
224
+
225
+ # Options to pass down to the underlying urllib3 socket
226
+ self.socket_options = None
227
+
228
+ def __deepcopy__(self, memo):
229
+ cls = self.__class__
230
+ result = cls.__new__(cls)
231
+ memo[id(self)] = result
232
+ for k, v in self.__dict__.items():
233
+ if k not in ('logger', 'logger_file_handler'):
234
+ setattr(result, k, copy.deepcopy(v, memo))
235
+ # shallow copy of loggers
236
+ result.logger = copy.copy(self.logger)
237
+ # use setters to configure loggers
238
+ result.logger_file = self.logger_file
239
+ result.debug = self.debug
240
+ return result
241
+
242
+ def __setattr__(self, name, value):
243
+ object.__setattr__(self, name, value)
244
+ if name == 'disabled_client_side_validations':
245
+ s = set(filter(None, value.split(',')))
246
+ for v in s:
247
+ if v not in JSON_SCHEMA_VALIDATION_KEYWORDS:
248
+ raise ApiValueError(
249
+ "Invalid keyword: '{0}''".format(v))
250
+ self._disabled_client_side_validations = s
251
+
252
+ @classmethod
253
+ def set_default(cls, default):
254
+ """Set default instance of configuration.
255
+
256
+ It stores default configuration, which can be
257
+ returned by get_default_copy method.
258
+
259
+ :param default: object of Configuration
260
+ """
261
+ cls._default = copy.deepcopy(default)
262
+
263
+ @classmethod
264
+ def get_default_copy(cls):
265
+ """Return new instance of configuration.
266
+
267
+ This method returns newly created, based on default constructor,
268
+ object of Configuration class or returns a copy of default
269
+ configuration passed by the set_default method.
270
+
271
+ :return: The configuration object.
272
+ """
273
+ if cls._default is not None:
274
+ return copy.deepcopy(cls._default)
275
+ return Configuration()
276
+
277
+ @property
278
+ def logger_file(self):
279
+ """The logger file.
280
+
281
+ If the logger_file is None, then add stream handler and remove file
282
+ handler. Otherwise, add file handler and remove stream handler.
283
+
284
+ :param value: The logger_file path.
285
+ :type: str
286
+ """
287
+ return self.__logger_file
288
+
289
+ @logger_file.setter
290
+ def logger_file(self, value):
291
+ """The logger file.
292
+
293
+ If the logger_file is None, then add stream handler and remove file
294
+ handler. Otherwise, add file handler and remove stream handler.
295
+
296
+ :param value: The logger_file path.
297
+ :type: str
298
+ """
299
+ self.__logger_file = value
300
+ if self.__logger_file:
301
+ # If set logging file,
302
+ # then add file handler and remove stream handler.
303
+ self.logger_file_handler = logging.FileHandler(self.__logger_file)
304
+ self.logger_file_handler.setFormatter(self.logger_formatter)
305
+ for _, logger in self.logger.items():
306
+ logger.addHandler(self.logger_file_handler)
307
+
308
+ @property
309
+ def debug(self):
310
+ """Debug status
311
+
312
+ :param value: The debug status, True or False.
313
+ :type: bool
314
+ """
315
+ return self.__debug
316
+
317
+ @debug.setter
318
+ def debug(self, value):
319
+ """Debug status
320
+
321
+ :param value: The debug status, True or False.
322
+ :type: bool
323
+ """
324
+ self.__debug = value
325
+ if self.__debug:
326
+ # if debug status is True, turn on debug logging
327
+ for _, logger in self.logger.items():
328
+ logger.setLevel(logging.DEBUG)
329
+ # turn on http_client debug
330
+ http_client.HTTPConnection.debuglevel = 1
331
+ else:
332
+ # if debug status is False, turn off debug logging,
333
+ # setting log level to default `logging.WARNING`
334
+ for _, logger in self.logger.items():
335
+ logger.setLevel(logging.WARNING)
336
+ # turn off http_client debug
337
+ http_client.HTTPConnection.debuglevel = 0
338
+
339
+ @property
340
+ def logger_format(self):
341
+ """The logger format.
342
+
343
+ The logger_formatter will be updated when sets logger_format.
344
+
345
+ :param value: The format string.
346
+ :type: str
347
+ """
348
+ return self.__logger_format
349
+
350
+ @logger_format.setter
351
+ def logger_format(self, value):
352
+ """The logger format.
353
+
354
+ The logger_formatter will be updated when sets logger_format.
355
+
356
+ :param value: The format string.
357
+ :type: str
358
+ """
359
+ self.__logger_format = value
360
+ self.logger_formatter = logging.Formatter(self.__logger_format)
361
+
362
+ def get_api_key_with_prefix(self, identifier, alias=None):
363
+ """Gets API key (with prefix if set).
364
+
365
+ :param identifier: The identifier of apiKey.
366
+ :param alias: The alternative identifier of apiKey.
367
+ :return: The token for api key authentication.
368
+ """
369
+ if self.refresh_api_key_hook is not None:
370
+ self.refresh_api_key_hook(self)
371
+ key = self.api_key.get(identifier, self.api_key.get(alias) if alias is not None else None)
372
+ if key:
373
+ prefix = self.api_key_prefix.get(identifier)
374
+ if prefix:
375
+ return "%s %s" % (prefix, key)
376
+ else:
377
+ return key
378
+
379
+ def get_basic_auth_token(self):
380
+ """Gets HTTP basic authentication header (string).
381
+
382
+ :return: The token for basic HTTP authentication.
383
+ """
384
+ username = ""
385
+ if self.username is not None:
386
+ username = self.username
387
+ password = ""
388
+ if self.password is not None:
389
+ password = self.password
390
+ return urllib3.util.make_headers(
391
+ basic_auth=username + ':' + password
392
+ ).get('authorization')
393
+
394
+ def auth_settings(self):
395
+ """Gets Auth Settings dict for api client.
396
+
397
+ :return: The Auth Settings information dict.
398
+ """
399
+ auth = {}
400
+ if self.username is not None and self.password is not None:
401
+ auth['FactSetApiKey'] = {
402
+ 'type': 'basic',
403
+ 'in': 'header',
404
+ 'key': 'Authorization',
405
+ 'value': self.get_basic_auth_token()
406
+ }
407
+ if self.access_token is not None:
408
+ auth['FactSetOAuth2'] = {
409
+ 'type': 'oauth2',
410
+ 'in': 'header',
411
+ 'key': 'Authorization',
412
+ 'value': 'Bearer ' + self.access_token
413
+ }
414
+ if self.fds_oauth_client and isinstance(self.fds_oauth_client, OAuth2Client):
415
+ auth['FactSetOAuth2'] = {
416
+ 'type': 'oauth',
417
+ 'in': 'header',
418
+ 'key': 'Authorization',
419
+ 'value': 'Bearer ' + self.fds_oauth_client.get_access_token()
420
+ }
421
+ return auth
422
+
423
+ def to_debug_report(self):
424
+ """Gets the essential information for debugging.
425
+
426
+ :return: The report for debugging.
427
+ """
428
+ return "Python SDK Debug Report:\n"\
429
+ "OS: {env}\n"\
430
+ "Python Version: {pyversion}\n"\
431
+ "Version of the API: 1.0.0\n"\
432
+ "SDK Package Version: 0.21.6".\
433
+ format(env=sys.platform, pyversion=sys.version)
434
+
435
+ def get_host_settings(self):
436
+ """Gets an array of host settings
437
+
438
+ :return: An array of host settings
439
+ """
440
+ return [
441
+ {
442
+ 'url': "https://api.factset.com",
443
+ 'description': "No description provided",
444
+ }
445
+ ]
446
+
447
+ def get_host_from_settings(self, index, variables=None, servers=None):
448
+ """Gets host URL based on the index and variables
449
+ :param index: array index of the host settings
450
+ :param variables: hash of variable and the corresponding value
451
+ :param servers: an array of host settings or None
452
+ :return: URL based on host settings
453
+ """
454
+ if index is None:
455
+ return self._base_path
456
+
457
+ variables = {} if variables is None else variables
458
+ servers = self.get_host_settings() if servers is None else servers
459
+
460
+ try:
461
+ server = servers[index]
462
+ except IndexError:
463
+ raise ValueError(
464
+ "Invalid index {0} when selecting the host settings. "
465
+ "Must be less than {1}".format(index, len(servers)))
466
+
467
+ url = server['url']
468
+
469
+ # go through variables and replace placeholders
470
+ for variable_name, variable in server.get('variables', {}).items():
471
+ used_value = variables.get(
472
+ variable_name, variable['default_value'])
473
+
474
+ if 'enum_values' in variable \
475
+ and used_value not in variable['enum_values']:
476
+ raise ValueError(
477
+ "The variable `{0}` in the host URL has invalid value "
478
+ "{1}. Must be {2}.".format(
479
+ variable_name, variables[variable_name],
480
+ variable['enum_values']))
481
+
482
+ url = url.replace("{" + variable_name + "}", used_value)
483
+
484
+ return url
485
+
486
+ @property
487
+ def host(self):
488
+ """Return generated host."""
489
+ return self.get_host_from_settings(self.server_index, variables=self.server_variables)
490
+
491
+ @host.setter
492
+ def host(self, value):
493
+ """Fix base path."""
494
+ self._base_path = value
495
+ self.server_index = None
@@ -0,0 +1,159 @@
1
+ """
2
+ FPE API
3
+
4
+ FactSet Programmatic Environment (FPE) API is an API for users to interact with FPE programmatically, streamlining path from research to production. # noqa: E501
5
+
6
+ The version of the OpenAPI document: 1.0.0
7
+ Generated by: https://openapi-generator.tech
8
+ """
9
+
10
+
11
+
12
+ class OpenApiException(Exception):
13
+ """The base exception class for all OpenAPIExceptions"""
14
+
15
+
16
+ class ApiTypeError(OpenApiException, TypeError):
17
+ def __init__(self, msg, path_to_item=None, valid_classes=None,
18
+ key_type=None):
19
+ """ Raises an exception for TypeErrors
20
+
21
+ Args:
22
+ msg (str): the exception message
23
+
24
+ Keyword Args:
25
+ path_to_item (list): a list of keys an indices to get to the
26
+ current_item
27
+ None if unset
28
+ valid_classes (tuple): the primitive classes that current item
29
+ should be an instance of
30
+ None if unset
31
+ key_type (bool): False if our value is a value in a dict
32
+ True if it is a key in a dict
33
+ False if our item is an item in a list
34
+ None if unset
35
+ """
36
+ self.path_to_item = path_to_item
37
+ self.valid_classes = valid_classes
38
+ self.key_type = key_type
39
+ full_msg = msg
40
+ if path_to_item:
41
+ full_msg = "{0} at {1}".format(msg, render_path(path_to_item))
42
+ super(ApiTypeError, self).__init__(full_msg)
43
+
44
+
45
+ class ApiValueError(OpenApiException, ValueError):
46
+ def __init__(self, msg, path_to_item=None):
47
+ """
48
+ Args:
49
+ msg (str): the exception message
50
+
51
+ Keyword Args:
52
+ path_to_item (list) the path to the exception in the
53
+ received_data dict. None if unset
54
+ """
55
+
56
+ self.path_to_item = path_to_item
57
+ full_msg = msg
58
+ if path_to_item:
59
+ full_msg = "{0} at {1}".format(msg, render_path(path_to_item))
60
+ super(ApiValueError, self).__init__(full_msg)
61
+
62
+
63
+ class ApiAttributeError(OpenApiException, AttributeError):
64
+ def __init__(self, msg, path_to_item=None):
65
+ """
66
+ Raised when an attribute reference or assignment fails.
67
+
68
+ Args:
69
+ msg (str): the exception message
70
+
71
+ Keyword Args:
72
+ path_to_item (None/list) the path to the exception in the
73
+ received_data dict
74
+ """
75
+ self.path_to_item = path_to_item
76
+ full_msg = msg
77
+ if path_to_item:
78
+ full_msg = "{0} at {1}".format(msg, render_path(path_to_item))
79
+ super(ApiAttributeError, self).__init__(full_msg)
80
+
81
+
82
+ class ApiKeyError(OpenApiException, KeyError):
83
+ def __init__(self, msg, path_to_item=None):
84
+ """
85
+ Args:
86
+ msg (str): the exception message
87
+
88
+ Keyword Args:
89
+ path_to_item (None/list) the path to the exception in the
90
+ received_data dict
91
+ """
92
+ self.path_to_item = path_to_item
93
+ full_msg = msg
94
+ if path_to_item:
95
+ full_msg = "{0} at {1}".format(msg, render_path(path_to_item))
96
+ super(ApiKeyError, self).__init__(full_msg)
97
+
98
+
99
+ class ApiException(OpenApiException):
100
+
101
+ def __init__(self, status=None, reason=None, http_resp=None):
102
+ if http_resp:
103
+ self.status = http_resp.status
104
+ self.reason = http_resp.reason
105
+ self.body = http_resp.data
106
+ self.headers = http_resp.getheaders()
107
+ else:
108
+ self.status = status
109
+ self.reason = reason
110
+ self.body = None
111
+ self.headers = None
112
+
113
+ def __str__(self):
114
+ """Custom error messages for exception"""
115
+ error_message = "({0})\n"\
116
+ "Reason: {1}\n".format(self.status, self.reason)
117
+ if self.headers:
118
+ error_message += "HTTP response headers: {0}\n".format(
119
+ self.headers)
120
+
121
+ if self.body:
122
+ error_message += "HTTP response body: {0}\n".format(self.body)
123
+
124
+ return error_message
125
+
126
+
127
+ class NotFoundException(ApiException):
128
+
129
+ def __init__(self, status=None, reason=None, http_resp=None):
130
+ super(NotFoundException, self).__init__(status, reason, http_resp)
131
+
132
+
133
+ class UnauthorizedException(ApiException):
134
+
135
+ def __init__(self, status=None, reason=None, http_resp=None):
136
+ super(UnauthorizedException, self).__init__(status, reason, http_resp)
137
+
138
+
139
+ class ForbiddenException(ApiException):
140
+
141
+ def __init__(self, status=None, reason=None, http_resp=None):
142
+ super(ForbiddenException, self).__init__(status, reason, http_resp)
143
+
144
+
145
+ class ServiceException(ApiException):
146
+
147
+ def __init__(self, status=None, reason=None, http_resp=None):
148
+ super(ServiceException, self).__init__(status, reason, http_resp)
149
+
150
+
151
+ def render_path(path_to_item):
152
+ """Returns a string representation of a path"""
153
+ result = ""
154
+ for pth in path_to_item:
155
+ if isinstance(pth, int):
156
+ result += "[{0}]".format(pth)
157
+ else:
158
+ result += "['{0}']".format(pth)
159
+ return result
@@ -0,0 +1,5 @@
1
+ # we can not import model classes here because that would create a circular
2
+ # reference which would not work in python2
3
+ # do not import all models into this module because that uses a lot of memory and stack frames
4
+ # if you need the ability to import all models from one package, import them with
5
+ # from {{packageName}.models import ModelA, ModelB