wipo-gbd-transformation 1.1.91__py3-none-any.whl → 1.1.93__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.

@@ -62,12 +62,16 @@ def translate_kind(kind):
62
62
  raise Exception('Kind "%s" is not mapped.' % kind)
63
63
 
64
64
  def translate_status(trademark):
65
+ if not trademark:
66
+ return 'Unknown'
67
+
65
68
  if trademark._operationCategory == 'Delete':
66
69
  return 'Delete'
67
70
 
68
71
  status = trademark.KRMarkCurrentStatusCode
69
72
 
70
- if not status: return 'Unknown'
73
+ if not status:
74
+ return 'Unknown'
71
75
 
72
76
  # Ended can also mean expired (bof)
73
77
  if status == 'Ended':
@@ -141,6 +141,11 @@ def get_related_docs(priors):
141
141
  def get_correspondence(corr):
142
142
  if not corr: return
143
143
 
144
+ # if corr is a list, as for 2025-09-17 it is always repeating the same contact person several times,
145
+ # so we can take the first instance
146
+ if isinstance(corr, list):
147
+ corr = corr[0]
148
+
144
149
  correspondence = { 'name' : corr.add1 }
145
150
  adrlines = []
146
151
  i = 2
@@ -0,0 +1,25 @@
1
+ Metadata-Version: 2.1
2
+ Name: wipo-gbd-transformation
3
+ Version: 1.1.93
4
+ Summary: GBD XML ETL package
5
+ Home-page: https://github.com/GBD-Wipo/xmlE
6
+ Author: WIPO GDB team
7
+ Author-email: gbd@wipo.int
8
+ License: UNKNOWN
9
+ Keywords: gbdtransformation
10
+ Platform: UNKNOWN
11
+ Classifier: Programming Language :: Python :: 3.9
12
+ License-File: LICENSE.md
13
+ Requires-Dist: PyYAML (>=5.3.1)
14
+ Requires-Dist: boto3 (>=1.16.1)
15
+ Requires-Dist: dicttoxml (>=1.7.4)
16
+ Requires-Dist: jinja2 (==2.11.2)
17
+ Requires-Dist: lingua-language-detector
18
+ Requires-Dist: lxml (>=4.6.1)
19
+ Requires-Dist: markupsafe (==2.0.1)
20
+ Requires-Dist: munch (>=2.5.0)
21
+ Requires-Dist: tabulate (>=0.8.7)
22
+ Requires-Dist: xmltodict (>=0.12.0)
23
+
24
+ GBD XML ETL package
25
+
@@ -214,7 +214,7 @@ gbdtransformation/brands/khtm/template.yml,sha256=PO7s1HDQM9ushIJuIX3z_dfWO-f62Y
214
214
  gbdtransformation/brands/khtm/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
215
215
  gbdtransformation/brands/khtm/tests/khtm.xml,sha256=S9btAbaiOPde9trr7xCGxE4QmjjNeZqMQ6R-2XMK42w,6332
216
216
  gbdtransformation/brands/krtm/__init__.py,sha256=hWGAqFRjPh5TtZ7HYuSKFlwrU_1TsSKsrMAtTHbDrEk,140
217
- gbdtransformation/brands/krtm/filters.py,sha256=RONTOg4vF7FICcZ8kZ_zbU5qBgGkVHZKYwVFTuSdE1Y,4417
217
+ gbdtransformation/brands/krtm/filters.py,sha256=ql08nYFPiMm6oR_rIIGanztuLXA0lIPkA7KJzRj_niE,4475
218
218
  gbdtransformation/brands/krtm/schema,sha256=2ItfPX8_nT_WQr5LrVh32TXHARoq7Ikk6ZOzZB3Xjm8,6286
219
219
  gbdtransformation/brands/krtm/template.yml,sha256=sr-PJFVHSs0r01PV0f1jAwBJ3m65rcxDv2kVVI2e1Bg,7477
220
220
  gbdtransformation/brands/kwtm/__init__.py,sha256=yqzC7OagUR0RLui3pHPWo5WxLyksznHcpI-NEEgnlYE,36
@@ -412,7 +412,7 @@ gbdtransformation/brands/uatm/filters.py,sha256=Er8L7T5If-2s_oDZIhgIpUKBTHR9gN1Z
412
412
  gbdtransformation/brands/uatm/schema,sha256=xyi3dhfyhzwFzeNA4vl5CZ_3FGNm6kcePHQt4Nd_qWM,4318
413
413
  gbdtransformation/brands/uatm/template.yml,sha256=7E7Q9HUg8aFdiwzpYYqB0LIWbkG_zkRh8mGVpk7fL6k,5974
414
414
  gbdtransformation/brands/ustm/__init__.py,sha256=nAKYGg8pFwhesOakhSSbHADYx422ODF73hEIjbswwOw,9731
415
- gbdtransformation/brands/ustm/filters.py,sha256=G6M2DHBnQUnBBK6gDYUXcTJ-dAe3AKILayaOXkFXfbA,6624
415
+ gbdtransformation/brands/ustm/filters.py,sha256=ly125T56p1KC5qMG8WlO-zmH42zaSciXzQqSkFG-ztg,6824
416
416
  gbdtransformation/brands/ustm/schema,sha256=7vcbDMFy76nAxZ5dRjssbOhHNFOqVIlVldrNssBB1Mc,133581
417
417
  gbdtransformation/brands/ustm/template.yml,sha256=0stb2cq5WpWeeRwFO7o3cd1yq1KlQQiNI__ORcYPmt8,5592
418
418
  gbdtransformation/brands/uytm/__init__.py,sha256=UHmbQDIPDdApISBKfO9tKOX6LgUQ_Ib-IVMR5kCVMTY,86
@@ -589,9 +589,9 @@ gbdtransformation/utilities/st66.xsd,sha256=co8aFN3a5TpudllRttWmfLeiZu8ulNipfeXm
589
589
  schemas/ShazamConfig.py,sha256=D67os5B11C41h_WZ7kk54Ss0Kk7tHh8W0d_1c_aX-lY,1191
590
590
  schemas/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
591
591
  schemas/schema_extractor.py,sha256=3-ImtnI777f6b3VA0A_w-NoXdlGz5VZMzK6MnPdQQAY,10294
592
- wipo_gbd_transformation-1.1.91.dist-info/licenses/LICENSE.md,sha256=6r2dL13EwZqSt2ellLbJRFTA-6ECIDOer4YthCfkac0,35654
593
- wipo_gbd_transformation-1.1.91.dist-info/METADATA,sha256=QV0oVkO5nZ6mXGjy4cT_ph1y-3lIoOpN5bnug29OwWA,804
594
- wipo_gbd_transformation-1.1.91.dist-info/WHEEL,sha256=lTU6B6eIfYoiQJTZNc-fyaR6BpL6ehTzU3xGYxn2n8k,91
595
- wipo_gbd_transformation-1.1.91.dist-info/entry_points.txt,sha256=NFLtlP3mPHUi-hEoUcz4CXa7vcpP8bbwd18HS4arbEk,223
596
- wipo_gbd_transformation-1.1.91.dist-info/top_level.txt,sha256=oU1j-JNLga18Fd-EV6Xl9wM8zxYoNVEzb7P8MDhTPJg,26
597
- wipo_gbd_transformation-1.1.91.dist-info/RECORD,,
592
+ wipo_gbd_transformation-1.1.93.dist-info/LICENSE.md,sha256=6r2dL13EwZqSt2ellLbJRFTA-6ECIDOer4YthCfkac0,35654
593
+ wipo_gbd_transformation-1.1.93.dist-info/METADATA,sha256=daJ_aOdB9oT76pWmPSRpX3rluQ4iawz9y4lbU3WT2jE,689
594
+ wipo_gbd_transformation-1.1.93.dist-info/WHEEL,sha256=G16H4A3IeoQmnOrYV4ueZGKSjhipXx8zc8nu9FGlvMA,92
595
+ wipo_gbd_transformation-1.1.93.dist-info/entry_points.txt,sha256=KmwWxkYogxtcrgRU6miWDcikp4yJ3cqr68yMRJq4Pwo,224
596
+ wipo_gbd_transformation-1.1.93.dist-info/top_level.txt,sha256=oU1j-JNLga18Fd-EV6Xl9wM8zxYoNVEzb7P8MDhTPJg,26
597
+ wipo_gbd_transformation-1.1.93.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (78.1.1)
2
+ Generator: bdist_wheel (0.37.1)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -3,3 +3,4 @@ gbd-transform = gbdtransformation.execs:run
3
3
  gbd-transform-organize = gbdtransformation.execs:organize
4
4
  gbd-transform-test = gbdtransformation.execs:test
5
5
  gbd-transform-xpath = gbdtransformation.execs:shazam
6
+
@@ -1,31 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: wipo-gbd-transformation
3
- Version: 1.1.91
4
- Summary: GBD XML ETL package
5
- Home-page: https://github.com/GBD-Wipo/xmlE
6
- Author: WIPO GDB team
7
- Author-email: gbd@wipo.int
8
- Keywords: gbdtransformation
9
- Classifier: Programming Language :: Python :: 3.9
10
- License-File: LICENSE.md
11
- Requires-Dist: boto3>=1.16.1
12
- Requires-Dist: jinja2==2.11.2
13
- Requires-Dist: xmltodict>=0.12.0
14
- Requires-Dist: dicttoxml>=1.7.4
15
- Requires-Dist: PyYAML>=5.3.1
16
- Requires-Dist: munch>=2.5.0
17
- Requires-Dist: tabulate>=0.8.7
18
- Requires-Dist: markupsafe==2.0.1
19
- Requires-Dist: lxml>=4.6.1
20
- Requires-Dist: lingua-language-detector
21
- Dynamic: author
22
- Dynamic: author-email
23
- Dynamic: classifier
24
- Dynamic: description
25
- Dynamic: home-page
26
- Dynamic: keywords
27
- Dynamic: license-file
28
- Dynamic: requires-dist
29
- Dynamic: summary
30
-
31
- GBD XML ETL package