followthemoney 3.6.0__py2.py3-none-any.whl → 3.6.1__py2.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 followthemoney might be problematic. Click here for more details.
- followthemoney/__init__.py +1 -1
- followthemoney/types/name.py +6 -1
- followthemoney/types/topic.py +1 -1
- {followthemoney-3.6.0.dist-info → followthemoney-3.6.1.dist-info}/METADATA +5 -1
- {followthemoney-3.6.0.dist-info → followthemoney-3.6.1.dist-info}/RECORD +10 -10
- {followthemoney-3.6.0.dist-info → followthemoney-3.6.1.dist-info}/entry_points.txt +1 -0
- {followthemoney-3.6.0.dist-info → followthemoney-3.6.1.dist-info}/LICENSE +0 -0
- {followthemoney-3.6.0.dist-info → followthemoney-3.6.1.dist-info}/WHEEL +0 -0
- {followthemoney-3.6.0.dist-info → followthemoney-3.6.1.dist-info}/namespace_packages.txt +0 -0
- {followthemoney-3.6.0.dist-info → followthemoney-3.6.1.dist-info}/top_level.txt +0 -0
followthemoney/__init__.py
CHANGED
followthemoney/types/name.py
CHANGED
|
@@ -3,6 +3,7 @@ from rigour.text.distance import levenshtein_similarity
|
|
|
3
3
|
from rigour.names import pick_name
|
|
4
4
|
from normality import slugify
|
|
5
5
|
from normality.cleaning import collapse_spaces, strip_quotes
|
|
6
|
+
from fingerprints.cleanup import clean_name_light
|
|
6
7
|
|
|
7
8
|
from followthemoney.types.common import PropertyType
|
|
8
9
|
from followthemoney.util import dampen
|
|
@@ -48,7 +49,11 @@ class NameType(PropertyType):
|
|
|
48
49
|
|
|
49
50
|
def compare(self, left: str, right: str) -> float:
|
|
50
51
|
"""Compare two names for similarity."""
|
|
51
|
-
|
|
52
|
+
left_clean = clean_name_light(left)
|
|
53
|
+
right_clean = clean_name_light(right)
|
|
54
|
+
if left_clean is None or right_clean is None:
|
|
55
|
+
return 0.0
|
|
56
|
+
return levenshtein_similarity(left_clean, right_clean)
|
|
52
57
|
|
|
53
58
|
def node_id(self, value: str) -> Optional[str]:
|
|
54
59
|
slug = slugify(value)
|
followthemoney/types/topic.py
CHANGED
|
@@ -58,7 +58,7 @@ class TopicType(EnumType):
|
|
|
58
58
|
"fin.adivsor": _("Financial advisor"),
|
|
59
59
|
"reg.action": _("Regulator action"),
|
|
60
60
|
"reg.warn": _("Regulator warning"),
|
|
61
|
-
"role.pep": _("
|
|
61
|
+
"role.pep": _("Politician"),
|
|
62
62
|
"role.pol": _("Non-PEP"),
|
|
63
63
|
"role.rca": _("Close Associate"),
|
|
64
64
|
"role.judge": _("Judge"),
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: followthemoney
|
|
3
|
-
Version: 3.6.
|
|
3
|
+
Version: 3.6.1
|
|
4
|
+
Summary: UNKNOWN
|
|
4
5
|
Home-page: https://followthemoney.tech/
|
|
5
6
|
Author: Organized Crime and Corruption Reporting Project
|
|
6
7
|
Author-email: data@occrp.org
|
|
7
8
|
License: MIT
|
|
9
|
+
Platform: UNKNOWN
|
|
8
10
|
Classifier: Intended Audience :: Developers
|
|
9
11
|
Classifier: Operating System :: OS Independent
|
|
10
12
|
Classifier: Programming Language :: Python
|
|
@@ -125,3 +127,5 @@ or `major` arguments.
|
|
|
125
127
|
When the schema is updated, please update the docs, ideally including the
|
|
126
128
|
diagrams. For the RDF namespace and JavaScript version of the model,
|
|
127
129
|
run `make generate`.
|
|
130
|
+
|
|
131
|
+
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
followthemoney/__init__.py,sha256=
|
|
1
|
+
followthemoney/__init__.py,sha256=WVOrr3U8o6llMvfuRXimFUw-T0ajT6bE05TqR8eQhfg,360
|
|
2
2
|
followthemoney/compare.py,sha256=1GFkCfTzA8QR0CH90kvySR8hvl9hQRUerW5Xw2Ivmpg,5134
|
|
3
3
|
followthemoney/exc.py,sha256=ynZs_UnTVxHR-iBfat_CpVLraYzVX5yLtVf5Ti14hl4,734
|
|
4
4
|
followthemoney/graph.py,sha256=VNDKrUBkz_-DmKsr5v-Xm8VfxzabnTwkU_MFk92_TjA,10848
|
|
@@ -143,12 +143,12 @@ followthemoney/types/ip.py,sha256=Z4s8mIlY5-IK9Oo13_YbL9lMQpY8SE_NAz0eqaonaYo,13
|
|
|
143
143
|
followthemoney/types/json.py,sha256=Hefwns1-ziJf310MWvdfX5ICkOgj9cnnMJuqq1e6qKY,1676
|
|
144
144
|
followthemoney/types/language.py,sha256=4GT8_kqCwq4tOs7s9TffM7SSr9AaszAQsNJHK27fqVY,2612
|
|
145
145
|
followthemoney/types/mimetype.py,sha256=EZ5hIdn-wosfLc-GjXDaOzevxaSXPbSPHDUJmPT1h0I,1355
|
|
146
|
-
followthemoney/types/name.py,sha256=
|
|
146
|
+
followthemoney/types/name.py,sha256=WsVVDIPJ0Hdlll3XvUgRHlpAbtUxu_p-yJmHaEH-4Gc,2093
|
|
147
147
|
followthemoney/types/number.py,sha256=9l5v3hcAoJ4V6jaBS_-Kc1gtdJlQrY9L98ElC5e_PLQ,943
|
|
148
148
|
followthemoney/types/phone.py,sha256=cppWyfZfOFZoGNjjqpMuTgxSgC1j5JFMpPHMHZYvoDQ,4020
|
|
149
149
|
followthemoney/types/registry.py,sha256=hvQ1oIWz_4PpyUnKA5azbaZCulNb5LCIPyC-AQYVVyw,1936
|
|
150
150
|
followthemoney/types/string.py,sha256=paSCnFt9TJrCmelmw5-OiwCBu0rkqNh6iauteJIj26k,1130
|
|
151
|
-
followthemoney/types/topic.py,sha256=
|
|
151
|
+
followthemoney/types/topic.py,sha256=BuOpyyTKvXoDZ0C6dcHl90Nz64wsmZ8kKLSyBwylHb0,3626
|
|
152
152
|
followthemoney/types/url.py,sha256=6p3ctjh0S_VciPLYuyMPwvK9147rpkhWDd4f2kahe10,1470
|
|
153
153
|
tests/export/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
154
154
|
tests/export/test_csv.py,sha256=r0ACsWnGdLHIZgXvbshGBQ9An0v1dJGAWulRT-Xittc,1261
|
|
@@ -177,10 +177,10 @@ tests/types/test_phones.py,sha256=_GTl-0r5hok8ovUJPRqP7k9kJYMVbanjYUMLrbzFb5U,11
|
|
|
177
177
|
tests/types/test_registry.py,sha256=IkrHjrEiIIPd4PdMFUg_jVh_gsE6CzGXIF8s3LIbnl0,296
|
|
178
178
|
tests/types/test_topic.py,sha256=m35GSwTy-r77YACGDDac09nYLBIUua42Dy7z292m9EU,707
|
|
179
179
|
tests/types/test_urls.py,sha256=JVmzJ0DKDBle_xLjmOHn0hgDTCpLmljrcfbOM1GSGRw,1170
|
|
180
|
-
followthemoney-3.6.
|
|
181
|
-
followthemoney-3.6.
|
|
182
|
-
followthemoney-3.6.
|
|
183
|
-
followthemoney-3.6.
|
|
184
|
-
followthemoney-3.6.
|
|
185
|
-
followthemoney-3.6.
|
|
186
|
-
followthemoney-3.6.
|
|
180
|
+
followthemoney-3.6.1.dist-info/LICENSE,sha256=Jln3uF70A9AQySyrP9JAW6sQTubLoKVQunvuJqISv7w,1098
|
|
181
|
+
followthemoney-3.6.1.dist-info/METADATA,sha256=-yLhrfGPKNr-wx54u_K_zOIvWIRDQAeNhMF8ramomLE,4531
|
|
182
|
+
followthemoney-3.6.1.dist-info/WHEEL,sha256=DZajD4pwLWue70CAfc7YaxT1wLUciNBvN_TTcvXpltE,110
|
|
183
|
+
followthemoney-3.6.1.dist-info/entry_points.txt,sha256=ONq-BcCB8Cnk_K1nvWqJPKSRm6sDW0RibLFp0gGtz-k,594
|
|
184
|
+
followthemoney-3.6.1.dist-info/namespace_packages.txt,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
|
|
185
|
+
followthemoney-3.6.1.dist-info/top_level.txt,sha256=O33_kGPehy6-69B_k01UgMK55_JOhwqe2de7ND23b-Y,21
|
|
186
|
+
followthemoney-3.6.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|