-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodels.py
38 lines (36 loc) · 2.33 KB
/
models.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# #******************************************************************************#
# # Copyright(c) 2019-2023, Elemento srl, All rights reserved #
# # Author: Elemento srl #
# # Contributors are mentioned in the code where appropriate. #
# # Permission to use and modify this software and its documentation strictly #
# # for personal purposes is hereby granted without fee, #
# # provided that the above copyright notice appears in all copies #
# # and that both the copyright notice and this permission notice appear in the #
# # supporting documentation. #
# # Modifications to this work are allowed for personal use. #
# # Such modifications have to be licensed under a #
# # Creative Commons BY-NC-ND 4.0 International License available at #
# # http://creativecommons.org/licenses/by-nc-nd/4.0/ and have to be made #
# # available to the Elemento user community #
# # through the original distribution channels. #
# # The authors make no claims about the suitability #
# # of this software for any purpose. #
# # It is provided "as is" without express or implied warranty. #
# #******************************************************************************#
#
# #------------------------------------------------------------------------------#
# #elemento-monorepo-server #
# #Authors: #
# #- Gabriele Gaetano Fronze' (gfronze at elemento.cloud) #
# #- Filippo Valle (fvalle at elemento.cloud) #
# #------------------------------------------------------------------------------#
#
from os.path import join, dirname, basename
from json import load
data = open(join(dirname(__file__), basename(__file__).replace('.py', '.json')))
models = load(data)
models_ids = []
for vendor in models.keys():
for model in models[vendor]:
models_ids.append(vendor + ':' + model[1])
del data