wipo-gbd-transformation 1.1.54__py3-none-any.whl → 1.1.56__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.
Potentially problematic release.
This version of wipo-gbd-transformation might be problematic. Click here for more details.
- gbdtransformation/brands/chtm/filters.py +159 -181
- gbdtransformation/brands/chtm/schema +79 -91
- gbdtransformation/brands/chtm/template.yml +98 -107
- gbdtransformation/brands/natm/__init__.py +2 -3
- gbdtransformation/brands/natm/filters.py +8 -2
- gbdtransformation/brands/notm/__init__.py +5 -0
- gbdtransformation/brands/notm/filters.py +98 -0
- gbdtransformation/brands/notm/template.yml +165 -0
- gbdtransformation/brands/phtm/schema +79 -50
- gbdtransformation/brands/phtm/schema.classic +50 -0
- gbdtransformation/brands/phtm/template.classic.yml +102 -0
- gbdtransformation/brands/phtm/template.yml +1 -102
- gbdtransformation/brands/xxxx/template.yml +1 -1
- gbdtransformation/designs/woid/filters.py +11 -2
- gbdtransformation/execs-nico.py +709 -0
- gbdtransformation/execs.py +9 -4
- gbdtransformation/gbd-transform.exec.tgz +0 -0
- {wipo_gbd_transformation-1.1.54.dist-info → wipo_gbd_transformation-1.1.56.dist-info}/METADATA +3 -1
- {wipo_gbd_transformation-1.1.54.dist-info → wipo_gbd_transformation-1.1.56.dist-info}/RECORD +24 -17
- {wipo_gbd_transformation-1.1.54.dist-info → wipo_gbd_transformation-1.1.56.dist-info}/LICENSE.md +0 -0
- {wipo_gbd_transformation-1.1.54.dist-info → wipo_gbd_transformation-1.1.56.dist-info}/SOURCES_Stefans-Mac-Studio.local_Sep-18-063455-2024_Conflict.txt +0 -0
- {wipo_gbd_transformation-1.1.54.dist-info → wipo_gbd_transformation-1.1.56.dist-info}/WHEEL +0 -0
- {wipo_gbd_transformation-1.1.54.dist-info → wipo_gbd_transformation-1.1.56.dist-info}/entry_points.txt +0 -0
- {wipo_gbd_transformation-1.1.54.dist-info → wipo_gbd_transformation-1.1.56.dist-info}/top_level.txt +0 -0
gbdtransformation/execs.py
CHANGED
|
@@ -461,7 +461,7 @@ def organize():
|
|
|
461
461
|
buffer = []
|
|
462
462
|
for root, dirs, files in os.walk(root_path):
|
|
463
463
|
for f in files:
|
|
464
|
-
if f.endswith('.xml'):
|
|
464
|
+
if f.endswith('.xml') or f.endswith('.json'):
|
|
465
465
|
buffer.append(os.path.join(root_path, root, f))
|
|
466
466
|
return buffer
|
|
467
467
|
path = args.path
|
|
@@ -546,7 +546,7 @@ def run():
|
|
|
546
546
|
buffer = []
|
|
547
547
|
for root, dirs, files in os.walk(root_path):
|
|
548
548
|
for f in files:
|
|
549
|
-
if f.endswith('.xml.gz') or f.endswith('.xml'):
|
|
549
|
+
if f.endswith('.xml.gz') or f.endswith('.xml') or f.endswith('.json'):
|
|
550
550
|
buffer.append(os.path.join(root_path, root, f))
|
|
551
551
|
if len(buffer) == nb:
|
|
552
552
|
return buffer
|
|
@@ -624,8 +624,12 @@ def run():
|
|
|
624
624
|
st13s = set()
|
|
625
625
|
l1 = []
|
|
626
626
|
l2 = []
|
|
627
|
+
non_skipped_results = []
|
|
627
628
|
import json
|
|
628
629
|
for rest in results:
|
|
630
|
+
if rest.get('terror', None) and 'skipping' in str(rest['terror']['message']).lower():
|
|
631
|
+
continue
|
|
632
|
+
non_skipped_results.append(rest)
|
|
629
633
|
st13 = json.loads(rest['out'])['st13']
|
|
630
634
|
appnumber = json.loads(rest['out']).get('applicationNumber')
|
|
631
635
|
registration_number = json.loads(rest['out']).get('registrationNumber')
|
|
@@ -635,7 +639,7 @@ def run():
|
|
|
635
639
|
l1.append(st13)
|
|
636
640
|
l2.append(appnumber)
|
|
637
641
|
st13s.add(st13)
|
|
638
|
-
print(len(
|
|
642
|
+
print(len(non_skipped_results), len(st13s))
|
|
639
643
|
|
|
640
644
|
|
|
641
645
|
def _print_transformation_out(results, args):
|
|
@@ -702,7 +706,8 @@ def _print_transformation_err(results, args):
|
|
|
702
706
|
for result in results:
|
|
703
707
|
if not result.get('terror', None):
|
|
704
708
|
continue
|
|
705
|
-
|
|
709
|
+
if 'skipping' in str(result['terror']['message']).lower():
|
|
710
|
+
continue
|
|
706
711
|
display_line = {}
|
|
707
712
|
display_line['Transformation Failed File'] = __format_color(result['src'], bcolors.FAIL)
|
|
708
713
|
display_line['Error Message'] = result['terror']['message']
|
|
Binary file
|
{wipo_gbd_transformation-1.1.54.dist-info → wipo_gbd_transformation-1.1.56.dist-info}/METADATA
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: wipo-gbd-transformation
|
|
3
|
-
Version: 1.1.
|
|
3
|
+
Version: 1.1.56
|
|
4
4
|
Summary: GBD XML ETL package
|
|
5
5
|
Home-page: https://github.com/GBD-Wipo/xmlE
|
|
6
6
|
Author: WIPO GDB team
|
|
@@ -16,5 +16,7 @@ Requires-Dist: PyYAML
|
|
|
16
16
|
Requires-Dist: munch
|
|
17
17
|
Requires-Dist: tabulate
|
|
18
18
|
Requires-Dist: markupsafe ==2.0.1
|
|
19
|
+
Requires-Dist: lingua-language-detector
|
|
20
|
+
Requires-Dist: lxml
|
|
19
21
|
|
|
20
22
|
GBD XML ETL package
|
{wipo_gbd_transformation-1.1.54.dist-info → wipo_gbd_transformation-1.1.56.dist-info}/RECORD
RENAMED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
gbdtransformation/.DS_Store,sha256=0P5iuLZ7zgY5l38MNfo5m8w3yfR_rIdKFFFjvnF0ws4,6148
|
|
2
2
|
gbdtransformation/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
|
-
gbdtransformation/execs.py,sha256=
|
|
3
|
+
gbdtransformation/execs-nico.py,sha256=UC8E6CPLS5YwhB8AC_Z9_VIxlDGjweOv7NEMMxEVte0,24514
|
|
4
|
+
gbdtransformation/execs.py,sha256=h4BBz3YrEBwPRwt312iNf2tAT_AglqLbssa1faJe1PA,25450
|
|
5
|
+
gbdtransformation/gbd-transform.exec.tgz,sha256=fOcqmzJRIuAhCVtbhju3kaikTDAuQF2K16lt9xllnOE,6262
|
|
4
6
|
gbdtransformation/parser.py,sha256=m6b1J0kJEaEDc0I8HKxzzN2nsQWKFfLlQqS3nT02kb4,7074
|
|
5
7
|
gbdtransformation/renders.py,sha256=RmvQgugnG2ErvDxP4I9yovW67gEZNpOd59nrzEYfQPI,4555
|
|
6
8
|
gbdtransformation/brands/__init__.py,sha256=abDdinNkilR-qYg4dhVxP_e1-ZixCzVuHGxbFt710TE,1605
|
|
@@ -68,9 +70,9 @@ gbdtransformation/brands/catm/filters.py,sha256=iZOJFFpmXySl08VWkLDF3cMqFxW3ZGcl
|
|
|
68
70
|
gbdtransformation/brands/catm/schema,sha256=Xace88lwiEefhHkk6Zg12dzVF237nMy06HMISEXaTwk,34762
|
|
69
71
|
gbdtransformation/brands/catm/template.yml,sha256=AwAv3VPRY2VmoyTyPZCwKdRJSmYdVUTRpJj4Zv3uqrM,9861
|
|
70
72
|
gbdtransformation/brands/chtm/__init__.py,sha256=HPYmDCQ41vkuoXSA94CRtqN_pEKDaUhbpXLOBqlaumQ,130
|
|
71
|
-
gbdtransformation/brands/chtm/filters.py,sha256=
|
|
72
|
-
gbdtransformation/brands/chtm/schema,sha256=
|
|
73
|
-
gbdtransformation/brands/chtm/template.yml,sha256=
|
|
73
|
+
gbdtransformation/brands/chtm/filters.py,sha256=nYtLWz-1b_DVyVO46AbtdGCzuXwKjJ7aEiZxItQ4o-c,5317
|
|
74
|
+
gbdtransformation/brands/chtm/schema,sha256=f3lVto7Y6O9W7dmhR-4lShQMTVL3tl6bGbw1DZLXuxU,2071
|
|
75
|
+
gbdtransformation/brands/chtm/template.yml,sha256=Desw_6ECzW_tXZCKHCZfyu-DdMeVrCl4vQgXXYBHU-A,4397
|
|
74
76
|
gbdtransformation/brands/cltm/__init__.py,sha256=yqzC7OagUR0RLui3pHPWo5WxLyksznHcpI-NEEgnlYE,36
|
|
75
77
|
gbdtransformation/brands/cltm/filters.py,sha256=tmcDE85IAHVuV7GX-EddvNqDktDxYkCCeZIC-RPlbck,2417
|
|
76
78
|
gbdtransformation/brands/cltm/schema,sha256=TFrF4FR76cytcbtQkDWxtF74I0tCPRDIvWRFeqaJt6Q,3242
|
|
@@ -280,11 +282,14 @@ gbdtransformation/brands/mztm/filters.py,sha256=tth_VE7SNWFzXQVeTQaUiuie0_JM_TY1
|
|
|
280
282
|
gbdtransformation/brands/mztm/schema,sha256=TFrF4FR76cytcbtQkDWxtF74I0tCPRDIvWRFeqaJt6Q,3242
|
|
281
283
|
gbdtransformation/brands/mztm/template.yml,sha256=PO7s1HDQM9ushIJuIX3z_dfWO-f62YDzBG_sYKDlnG8,34
|
|
282
284
|
gbdtransformation/brands/mztm/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
283
|
-
gbdtransformation/brands/natm/__init__.py,sha256=
|
|
284
|
-
gbdtransformation/brands/natm/filters.py,sha256=
|
|
285
|
+
gbdtransformation/brands/natm/__init__.py,sha256=EjLdRVnlzSTlU2VD_YRTDAR_Zb69iCRRVjsKmIB0RT4,208
|
|
286
|
+
gbdtransformation/brands/natm/filters.py,sha256=xTGTSiymu_UgbTGRrXd7eIydfjSy5aJLPwPE_neuScY,2874
|
|
285
287
|
gbdtransformation/brands/natm/schema,sha256=TFrF4FR76cytcbtQkDWxtF74I0tCPRDIvWRFeqaJt6Q,3242
|
|
286
288
|
gbdtransformation/brands/natm/template.yml,sha256=PO7s1HDQM9ushIJuIX3z_dfWO-f62YDzBG_sYKDlnG8,34
|
|
287
289
|
gbdtransformation/brands/natm/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
290
|
+
gbdtransformation/brands/notm/__init__.py,sha256=YRZPymjJv7V5vqjphBN1UOHZ3RL1oeYYqaOI6AKInl0,88
|
|
291
|
+
gbdtransformation/brands/notm/filters.py,sha256=Iahq56k5uQD0rZJiwIbPA6Q13M5MNdEGmh8SXPZavUY,2933
|
|
292
|
+
gbdtransformation/brands/notm/template.yml,sha256=71Nk8ViYW8Oa3C9_F2sbugIT6bUytRkRZrEzQ-x6ZnA,5279
|
|
288
293
|
gbdtransformation/brands/nztm/__init__.py,sha256=UHmbQDIPDdApISBKfO9tKOX6LgUQ_Ib-IVMR5kCVMTY,86
|
|
289
294
|
gbdtransformation/brands/nztm/filters.py,sha256=dAjrg03Yq37H10oAM8rnAMNa71lZHuG1uMwHi25kIvA,4211
|
|
290
295
|
gbdtransformation/brands/nztm/schema,sha256=tpcyNMtmiBQQ0FsxKKTASRSo4nbrw0j0_b1nhELyAzE,6355
|
|
@@ -308,8 +313,10 @@ gbdtransformation/brands/pgtm/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQ
|
|
|
308
313
|
gbdtransformation/brands/pgtm/tests/pgtm.xml,sha256=fAzAz2VtqOFV_2QImDbNxDvuTr-Ue3e5tGx8h-Lnnvg,6533
|
|
309
314
|
gbdtransformation/brands/phtm/__init__.py,sha256=UHmbQDIPDdApISBKfO9tKOX6LgUQ_Ib-IVMR5kCVMTY,86
|
|
310
315
|
gbdtransformation/brands/phtm/filters.py,sha256=yNBSktkG4dBGe_E8vxT6N4k6kwkM1A2llNLD4lHVh88,3599
|
|
311
|
-
gbdtransformation/brands/phtm/schema,sha256=
|
|
312
|
-
gbdtransformation/brands/phtm/
|
|
316
|
+
gbdtransformation/brands/phtm/schema,sha256=Nb5tI5MUrzn19c8GpLFuJhpiLn0Fa9XPza10eNHeesI,2877
|
|
317
|
+
gbdtransformation/brands/phtm/schema.classic,sha256=3JOKHUfK0jSo0NBlDmeGFAKqfYdMJOrIPBIoNUMrVFI,808
|
|
318
|
+
gbdtransformation/brands/phtm/template.classic.yml,sha256=U5th90SpXjspWTPuimqftd8vZfJ3tT90mIud5n7Zv8w,2820
|
|
319
|
+
gbdtransformation/brands/phtm/template.yml,sha256=PO7s1HDQM9ushIJuIX3z_dfWO-f62YDzBG_sYKDlnG8,34
|
|
313
320
|
gbdtransformation/brands/qatm/__init__.py,sha256=NBdOewZ1F_3eErahjyR-up8bjz1FSxwEiPSJfDw6GxY,79
|
|
314
321
|
gbdtransformation/brands/qatm/filters.py,sha256=lMPVBX2ProdUtg5LcuQAmlInoGCo1-JZemHrvE1lNvw,2330
|
|
315
322
|
gbdtransformation/brands/qatm/schema,sha256=AP0MxQyD0hY4APRh8nxitlxMqJYJB4AaaTJ8y20-XBA,3283
|
|
@@ -441,7 +448,7 @@ gbdtransformation/brands/wstm/tests/test.xml.gz,sha256=UKm7LTvKaETUtHMKurFGqkqXO
|
|
|
441
448
|
gbdtransformation/brands/xxxx/__init__.py,sha256=fricc3VHm4BwGRFKIIqB0t-NtP3tTVRrEYee_gWpiFo,172
|
|
442
449
|
gbdtransformation/brands/xxxx/filters.py,sha256=YCaQ6yH2LINwCQvbPHDhnORQyWglbswLlSOY6ur3KXQ,1874
|
|
443
450
|
gbdtransformation/brands/xxxx/schema,sha256=g_oWkd7k2e5fAQR1BdNkPSsIgP3dkTyc7esWo_UOHQA,163
|
|
444
|
-
gbdtransformation/brands/xxxx/template.yml,sha256=
|
|
451
|
+
gbdtransformation/brands/xxxx/template.yml,sha256=asJd5FHB2g5mfneMMqIkTSR9w3w-AUROnO6YgTyaR00,4665
|
|
445
452
|
gbdtransformation/brands/zmtm/__init__.py,sha256=Mtsi_-CaLQirHkhnletNhJ4li-pZlzEZMcKjv6mEk50,256
|
|
446
453
|
gbdtransformation/brands/zmtm/filters.py,sha256=FkGfv3nPiYDUy97O7bDzPp824qoDsqX-oh2Ox01NTpA,2344
|
|
447
454
|
gbdtransformation/brands/zmtm/schema,sha256=TFrF4FR76cytcbtQkDWxtF74I0tCPRDIvWRFeqaJt6Q,3242
|
|
@@ -553,7 +560,7 @@ gbdtransformation/designs/vnid/filters.py,sha256=HlZJp1Zb1zU37tZO-xBe0Kt-TlCT0nl
|
|
|
553
560
|
gbdtransformation/designs/vnid/schema,sha256=HxkKmaih8mUTYZst9aIbEgv_uXhqS6PQp3C4S7utz18,3830
|
|
554
561
|
gbdtransformation/designs/vnid/template.yml,sha256=PO7s1HDQM9ushIJuIX3z_dfWO-f62YDzBG_sYKDlnG8,34
|
|
555
562
|
gbdtransformation/designs/woid/__init__.py,sha256=Cdy9Ki01mAvufymKb9QSLwfFggaoerOenq6BxhPu500,66
|
|
556
|
-
gbdtransformation/designs/woid/filters.py,sha256=
|
|
563
|
+
gbdtransformation/designs/woid/filters.py,sha256=RVqDYsGL-9BNEpe5VmAXdBwtM8B5HuHDI1ycP65ssmc,17352
|
|
557
564
|
gbdtransformation/designs/woid/schema,sha256=DoJKgqrbOIPrrSJ7WcJM6aQpDqG34yD0MT7bsxauNpM,19967
|
|
558
565
|
gbdtransformation/designs/woid/template.yml,sha256=td3Y7vfssL569Anr4Sz1y11ejOZmbRbC_-xw2ON7Vk4,27778
|
|
559
566
|
gbdtransformation/designs/xxid/__init__.py,sha256=Cdy9Ki01mAvufymKb9QSLwfFggaoerOenq6BxhPu500,66
|
|
@@ -572,10 +579,10 @@ gbdtransformation/utilities/st66.xsd,sha256=co8aFN3a5TpudllRttWmfLeiZu8ulNipfeXm
|
|
|
572
579
|
schemas/ShazamConfig.py,sha256=D67os5B11C41h_WZ7kk54Ss0Kk7tHh8W0d_1c_aX-lY,1191
|
|
573
580
|
schemas/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
574
581
|
schemas/schema_extractor.py,sha256=3-ImtnI777f6b3VA0A_w-NoXdlGz5VZMzK6MnPdQQAY,10294
|
|
575
|
-
wipo_gbd_transformation-1.1.
|
|
576
|
-
wipo_gbd_transformation-1.1.
|
|
577
|
-
wipo_gbd_transformation-1.1.
|
|
578
|
-
wipo_gbd_transformation-1.1.
|
|
579
|
-
wipo_gbd_transformation-1.1.
|
|
580
|
-
wipo_gbd_transformation-1.1.
|
|
581
|
-
wipo_gbd_transformation-1.1.
|
|
582
|
+
wipo_gbd_transformation-1.1.56.dist-info/LICENSE.md,sha256=6r2dL13EwZqSt2ellLbJRFTA-6ECIDOer4YthCfkac0,35654
|
|
583
|
+
wipo_gbd_transformation-1.1.56.dist-info/METADATA,sha256=-GsZkwzqAtr15pV7LlkbNrADlvlquHLOkExZqpL2YGg,577
|
|
584
|
+
wipo_gbd_transformation-1.1.56.dist-info/SOURCES_Stefans-Mac-Studio.local_Sep-18-063455-2024_Conflict.txt,sha256=NeGxpq7lHSg1kaKoQE1hRDhEL5c39TAp008ptbN08NU,29740
|
|
585
|
+
wipo_gbd_transformation-1.1.56.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
586
|
+
wipo_gbd_transformation-1.1.56.dist-info/entry_points.txt,sha256=NFLtlP3mPHUi-hEoUcz4CXa7vcpP8bbwd18HS4arbEk,223
|
|
587
|
+
wipo_gbd_transformation-1.1.56.dist-info/top_level.txt,sha256=oU1j-JNLga18Fd-EV6Xl9wM8zxYoNVEzb7P8MDhTPJg,26
|
|
588
|
+
wipo_gbd_transformation-1.1.56.dist-info/RECORD,,
|
{wipo_gbd_transformation-1.1.54.dist-info → wipo_gbd_transformation-1.1.56.dist-info}/LICENSE.md
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{wipo_gbd_transformation-1.1.54.dist-info → wipo_gbd_transformation-1.1.56.dist-info}/top_level.txt
RENAMED
|
File without changes
|