followthemoney 3.7.0__tar.gz → 3.7.1__tar.gz

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.

Files changed (166) hide show
  1. {followthemoney-3.7.0/followthemoney.egg-info → followthemoney-3.7.1}/PKG-INFO +1 -1
  2. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/__init__.py +1 -1
  3. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/property.py +6 -0
  4. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/schema/Address.yaml +1 -0
  5. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/schema/BankAccount.yaml +3 -0
  6. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/schema/Company.yaml +3 -0
  7. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/schema/CryptoWallet.yaml +1 -0
  8. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/schema/Identification.yaml +1 -0
  9. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/schema/LegalEntity.yaml +7 -0
  10. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/schema/Sanction.yaml +1 -0
  11. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/schema/Security.yaml +2 -0
  12. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/schema/Thing.yaml +1 -0
  13. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/schema/Vessel.yaml +2 -0
  14. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/types/common.py +2 -2
  15. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/types/name.py +5 -1
  16. {followthemoney-3.7.0 → followthemoney-3.7.1/followthemoney.egg-info}/PKG-INFO +1 -1
  17. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney.egg-info/requires.txt +1 -1
  18. {followthemoney-3.7.0 → followthemoney-3.7.1}/setup.py +2 -2
  19. {followthemoney-3.7.0 → followthemoney-3.7.1}/LICENSE +0 -0
  20. {followthemoney-3.7.0 → followthemoney-3.7.1}/MANIFEST.in +0 -0
  21. {followthemoney-3.7.0 → followthemoney-3.7.1}/README.md +0 -0
  22. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/cli/__init__.py +0 -0
  23. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/cli/aggregate.py +0 -0
  24. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/cli/cli.py +0 -0
  25. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/cli/exports.py +0 -0
  26. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/cli/mapping.py +0 -0
  27. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/cli/sieve.py +0 -0
  28. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/cli/util.py +0 -0
  29. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/compare.py +0 -0
  30. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/exc.py +0 -0
  31. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/export/__init__.py +0 -0
  32. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/export/common.py +0 -0
  33. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/export/csv.py +0 -0
  34. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/export/excel.py +0 -0
  35. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/export/graph.py +0 -0
  36. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/export/neo4j.py +0 -0
  37. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/export/rdf.py +0 -0
  38. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/graph.py +0 -0
  39. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/helpers.py +0 -0
  40. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/mapping/__init__.py +0 -0
  41. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/mapping/csv.py +0 -0
  42. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/mapping/entity.py +0 -0
  43. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/mapping/property.py +0 -0
  44. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/mapping/query.py +0 -0
  45. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/mapping/source.py +0 -0
  46. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/mapping/sql.py +0 -0
  47. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/messages.py +0 -0
  48. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/model.py +0 -0
  49. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/namespace.py +0 -0
  50. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/offshore.py +0 -0
  51. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/ontology.py +0 -0
  52. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/proxy.py +0 -0
  53. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/py.typed +0 -0
  54. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/rdf.py +0 -0
  55. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/schema/Airplane.yaml +0 -0
  56. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/schema/Analyzable.yaml +0 -0
  57. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/schema/Article.yaml +0 -0
  58. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/schema/Assessment.yaml +0 -0
  59. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/schema/Asset.yaml +0 -0
  60. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/schema/Associate.yaml +0 -0
  61. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/schema/Audio.yaml +0 -0
  62. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/schema/Call.yaml +0 -0
  63. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/schema/CallForTenders.yaml +0 -0
  64. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/schema/Contract.yaml +0 -0
  65. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/schema/ContractAward.yaml +0 -0
  66. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/schema/CourtCase.yaml +0 -0
  67. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/schema/CourtCaseParty.yaml +0 -0
  68. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/schema/Debt.yaml +0 -0
  69. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/schema/Directorship.yaml +0 -0
  70. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/schema/Document.yaml +0 -0
  71. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/schema/Documentation.yml +0 -0
  72. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/schema/EconomicActivity.yaml +0 -0
  73. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/schema/Email.yaml +0 -0
  74. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/schema/Employment.yaml +0 -0
  75. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/schema/Event.yaml +0 -0
  76. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/schema/Family.yaml +0 -0
  77. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/schema/Folder.yaml +0 -0
  78. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/schema/HyperText.yaml +0 -0
  79. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/schema/Image.yaml +0 -0
  80. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/schema/Interest.yaml +0 -0
  81. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/schema/Interval.yaml +0 -0
  82. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/schema/License.yaml +0 -0
  83. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/schema/Membership.yaml +0 -0
  84. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/schema/Mention.yaml +0 -0
  85. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/schema/Message.yaml +0 -0
  86. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/schema/Note.yaml +0 -0
  87. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/schema/Occupancy.yaml +0 -0
  88. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/schema/Organization.yaml +0 -0
  89. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/schema/Ownership.yaml +0 -0
  90. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/schema/Package.yaml +0 -0
  91. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/schema/Page.yaml +0 -0
  92. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/schema/Pages.yaml +0 -0
  93. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/schema/Passport.yaml +0 -0
  94. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/schema/Payment.yaml +0 -0
  95. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/schema/Person.yaml +0 -0
  96. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/schema/PlainText.yaml +0 -0
  97. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/schema/Position.yaml +0 -0
  98. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/schema/Post.yaml +0 -0
  99. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/schema/Project.yaml +0 -0
  100. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/schema/ProjectParticipant.yaml +0 -0
  101. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/schema/PublicBody.yaml +0 -0
  102. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/schema/RealEstate.yaml +0 -0
  103. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/schema/Representation.yaml +0 -0
  104. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/schema/Similar.yaml +0 -0
  105. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/schema/Succession.yaml +0 -0
  106. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/schema/Table.yaml +0 -0
  107. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/schema/TaxRoll.yaml +0 -0
  108. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/schema/Trip.yaml +0 -0
  109. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/schema/UnknownLink.yaml +0 -0
  110. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/schema/UserAccount.yaml +0 -0
  111. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/schema/Value.yaml +0 -0
  112. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/schema/Vehicle.yaml +0 -0
  113. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/schema/Video.yaml +0 -0
  114. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/schema/Workbook.yaml +0 -0
  115. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/schema.py +0 -0
  116. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/translations/ar/LC_MESSAGES/followthemoney.mo +0 -0
  117. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/translations/ar/LC_MESSAGES/followthemoney.po +0 -0
  118. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/translations/bs/LC_MESSAGES/followthemoney.mo +0 -0
  119. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/translations/bs/LC_MESSAGES/followthemoney.po +0 -0
  120. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/translations/de/LC_MESSAGES/followthemoney.mo +0 -0
  121. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/translations/de/LC_MESSAGES/followthemoney.po +0 -0
  122. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/translations/es/LC_MESSAGES/followthemoney.mo +0 -0
  123. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/translations/es/LC_MESSAGES/followthemoney.po +0 -0
  124. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/translations/fr/LC_MESSAGES/followthemoney.mo +0 -0
  125. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/translations/fr/LC_MESSAGES/followthemoney.po +0 -0
  126. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/translations/fr/followthemoney.po +0 -0
  127. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/translations/messages.pot +0 -0
  128. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/translations/nb/LC_MESSAGES/followthemoney.mo +0 -0
  129. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/translations/nb/LC_MESSAGES/followthemoney.po +0 -0
  130. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/translations/nl/LC_MESSAGES/followthemoney.mo +0 -0
  131. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/translations/nl/LC_MESSAGES/followthemoney.po +0 -0
  132. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/translations/pt_BR/LC_MESSAGES/followthemoney.mo +0 -0
  133. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/translations/pt_BR/LC_MESSAGES/followthemoney.po +0 -0
  134. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/translations/ru/LC_MESSAGES/followthemoney.mo +0 -0
  135. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/translations/ru/LC_MESSAGES/followthemoney.po +0 -0
  136. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/translations/ru/followthemoney.po +0 -0
  137. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/translations/tr/LC_MESSAGES/followthemoney.mo +0 -0
  138. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/translations/tr/LC_MESSAGES/followthemoney.po +0 -0
  139. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/types/__init__.py +0 -0
  140. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/types/address.py +0 -0
  141. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/types/checksum.py +0 -0
  142. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/types/country.py +0 -0
  143. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/types/date.py +0 -0
  144. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/types/email.py +0 -0
  145. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/types/entity.py +0 -0
  146. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/types/gender.py +0 -0
  147. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/types/iban.py +0 -0
  148. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/types/identifier.py +0 -0
  149. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/types/ip.py +0 -0
  150. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/types/json.py +0 -0
  151. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/types/language.py +0 -0
  152. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/types/mimetype.py +0 -0
  153. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/types/number.py +0 -0
  154. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/types/phone.py +0 -0
  155. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/types/registry.py +0 -0
  156. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/types/string.py +0 -0
  157. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/types/topic.py +0 -0
  158. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/types/url.py +0 -0
  159. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney/util.py +0 -0
  160. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney.egg-info/SOURCES.txt +0 -0
  161. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney.egg-info/dependency_links.txt +0 -0
  162. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney.egg-info/entry_points.txt +0 -0
  163. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney.egg-info/namespace_packages.txt +0 -0
  164. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney.egg-info/not-zip-safe +0 -0
  165. {followthemoney-3.7.0 → followthemoney-3.7.1}/followthemoney.egg-info/top_level.txt +0 -0
  166. {followthemoney-3.7.0 → followthemoney-3.7.1}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: followthemoney
3
- Version: 3.7.0
3
+ Version: 3.7.1
4
4
  Home-page: https://followthemoney.tech/
5
5
  Author: Organized Crime and Corruption Reporting Project
6
6
  Author-email: data@occrp.org
@@ -3,7 +3,7 @@ import os
3
3
  from followthemoney.model import Model
4
4
  from followthemoney.util import set_model_locale
5
5
 
6
- __version__ = "3.7.0"
6
+ __version__ = "3.7.1"
7
7
 
8
8
 
9
9
  model_path = os.path.dirname(__file__)
@@ -24,6 +24,7 @@ class PropertyDict(TypedDict, total=False):
24
24
  hidden: Optional[bool]
25
25
  matchable: Optional[bool]
26
26
  deprecated: Optional[bool]
27
+ maxLength: Optional[int]
27
28
  # stub: Optional[bool]
28
29
  rdf: Optional[str]
29
30
  range: Optional[str]
@@ -58,6 +59,7 @@ class Property:
58
59
  "type",
59
60
  "matchable",
60
61
  "deprecated",
62
+ "max_length",
61
63
  "_range",
62
64
  "format",
63
65
  "range",
@@ -109,6 +111,9 @@ class Property:
109
111
  else:
110
112
  self.matchable = self.type.matchable
111
113
 
114
+ #: The maximum length of the property value.
115
+ self.max_length = int(data.get("maxLength") or self.type.max_length)
116
+
112
117
  #: If the property is of type ``entity``, the set of valid schema to be added
113
118
  #: in this property can be constrained. For example, an asset can be owned,
114
119
  #: but a person cannot be owned.
@@ -197,6 +202,7 @@ class Property:
197
202
  "qname": self.qname,
198
203
  "label": self.label,
199
204
  "type": self.type.name,
205
+ "maxLength": self.max_length,
200
206
  }
201
207
  if self.description:
202
208
  data["description"] = self.description
@@ -54,6 +54,7 @@ Address:
54
54
  postalCode:
55
55
  label: "Postal code"
56
56
  description: "Zip code or postcode."
57
+ maxLength: 16
57
58
  region:
58
59
  label: "Region"
59
60
  description: "Also province or area."
@@ -27,15 +27,18 @@ BankAccount:
27
27
  accountNumber:
28
28
  label: Account number
29
29
  type: identifier
30
+ maxLength: 64
30
31
  iban:
31
32
  label: IBAN
32
33
  # type: identifier
33
34
  # format: iban
34
35
  type: iban
36
+ maxLength: 64
35
37
  bic:
36
38
  label: Bank Identifier Code
37
39
  type: identifier
38
40
  format: bic
41
+ maxLength: 16
39
42
  bank:
40
43
  label: Bank
41
44
  type: entity
@@ -31,6 +31,7 @@ Company:
31
31
  label: "VOEN"
32
32
  description: "Azerbaijan taxpayer ID"
33
33
  type: identifier
34
+ maxLength: 32
34
35
  coatoCode:
35
36
  label: "COATO / SOATO / OKATO"
36
37
  type: identifier
@@ -107,6 +108,8 @@ Company:
107
108
  label: PermID
108
109
  description: LSEG/Refinitiv code for a company
109
110
  type: identifier
111
+ maxLength: 16
110
112
  ricCode:
111
113
  label: Reuters Instrument Code
112
114
  type: identifier
115
+ maxLength: 16
@@ -23,6 +23,7 @@ CryptoWallet:
23
23
  label: Address
24
24
  description: Public key used to identify the wallet
25
25
  type: identifier
26
+ maxLength: 128
26
27
  privateKey:
27
28
  label: Private key
28
29
  creationDate:
@@ -35,5 +35,6 @@ Identification:
35
35
  number:
36
36
  label: "Document number"
37
37
  type: identifier
38
+ maxLength: 64
38
39
  authority:
39
40
  label: "Authority"
@@ -82,6 +82,7 @@ LegalEntity:
82
82
  label: "V.A.T. Identifier"
83
83
  description: "(EU) VAT number"
84
84
  type: identifier
85
+ maxLength: 32
85
86
  jurisdiction:
86
87
  label: Jurisdiction
87
88
  type: country
@@ -109,30 +110,36 @@ LegalEntity:
109
110
  description: "Russian company ID"
110
111
  type: identifier
111
112
  # format: inn
113
+ maxLength: 32
112
114
  ogrnCode:
113
115
  label: "OGRN"
114
116
  description: "Major State Registration Number"
115
117
  type: identifier
116
118
  # format: ogrn
119
+ maxLength: 32
117
120
  leiCode:
118
121
  # cf. https://www.gleif.org/en/about-lei/introducing-the-legal-entity-identifier-lei
119
122
  label: "LEI"
120
123
  description: "Legal Entity Identifier"
121
124
  type: identifier
122
125
  format: lei
126
+ maxLength: 32
123
127
  dunsCode:
124
128
  label: "DUNS"
125
129
  description: "Data Universal Numbering System - Dun & Bradstreet identifier"
126
130
  type: identifier
131
+ maxLength: 32
127
132
  npiCode:
128
133
  label: "NPI"
129
134
  description: "National Provider Identifier"
130
135
  type: identifier
136
+ maxLength: 32
131
137
  swiftBic:
132
138
  label: "SWIFT/BIC"
133
139
  description: "Bank identifier code"
134
140
  type: identifier
135
141
  format: bic
142
+ maxLength: 16
136
143
  parent:
137
144
  label: "Parent company"
138
145
  description: "If this entity is a subsidiary, another entity (company or organisation) is its parent"
@@ -31,6 +31,7 @@ Sanction:
31
31
  unscId:
32
32
  label: "UN SC identifier"
33
33
  type: identifier
34
+ maxLength: 16
34
35
  program:
35
36
  label: "Program"
36
37
  provisions:
@@ -25,6 +25,7 @@ Security:
25
25
  description: International Securities Identification Number
26
26
  type: identifier
27
27
  format: isin
28
+ maxLength: 16
28
29
  registrationNumber:
29
30
  label: Registration number
30
31
  type: identifier
@@ -35,6 +36,7 @@ Security:
35
36
  label: Financial Instrument Global Identifier
36
37
  type: identifier
37
38
  format: figi
39
+ maxLength: 16
38
40
  issuer:
39
41
  label: "Issuer"
40
42
  type: entity
@@ -58,6 +58,7 @@ Thing:
58
58
  label: Wikidata ID
59
59
  type: identifier
60
60
  format: qid
61
+ maxLength: 32
61
62
  keywords:
62
63
  label: Keywords
63
64
  topics:
@@ -20,6 +20,7 @@ Vessel:
20
20
  imoNumber:
21
21
  label: IMO Number
22
22
  type: identifier
23
+ maxLength: 16
23
24
  crsNumber:
24
25
  label: CRS Number
25
26
  type: identifier
@@ -50,3 +51,4 @@ Vessel:
50
51
  mmsi:
51
52
  label: MMSI
52
53
  type: identifier
54
+ maxLength: 16
@@ -19,7 +19,7 @@ class PropertyTypeToDict(TypedDict, total=False):
19
19
  label: str
20
20
  plural: str
21
21
  description: Optional[str]
22
- max_length: int
22
+ maxLength: int
23
23
  group: Optional[str]
24
24
  matchable: Optional[bool]
25
25
  pivot: Optional[bool]
@@ -198,7 +198,7 @@ class PropertyType(object):
198
198
  "label": gettext(self.label),
199
199
  "plural": gettext(self.plural),
200
200
  "description": gettext(self.docs),
201
- "max_length": self.max_length,
201
+ "maxLength": self.max_length,
202
202
  }
203
203
  if self.group:
204
204
  data["group"] = self.group
@@ -53,7 +53,11 @@ class NameType(PropertyType):
53
53
  right_clean = clean_name_light(right)
54
54
  if left_clean is None or right_clean is None:
55
55
  return 0.0
56
- return levenshtein_similarity(left_clean, right_clean)
56
+ return levenshtein_similarity(
57
+ left_clean,
58
+ right_clean,
59
+ max_length=self.max_length,
60
+ )
57
61
 
58
62
  def node_id(self, value: str) -> Optional[str]:
59
63
  slug = slugify(value)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: followthemoney
3
- Version: 3.7.0
3
+ Version: 3.7.1
4
4
  Home-page: https://followthemoney.tech/
5
5
  Author: Organized Crime and Corruption Reporting Project
6
6
  Author-email: data@occrp.org
@@ -3,7 +3,7 @@ pyyaml<7.0.0,>=5.0.0
3
3
  types-PyYAML
4
4
  sqlalchemy2-stubs
5
5
  banal<1.1.0,>=1.0.6
6
- rigour<1.0.0,>=0.5.1
6
+ rigour<1.0.0,>=0.6.1
7
7
  click<9.0.0,>=8.0
8
8
  stringcase<2.0.0,>=1.2.0
9
9
  requests<3.0.0,>=2.21.0
@@ -5,7 +5,7 @@ with open("README.md") as f:
5
5
 
6
6
  setup(
7
7
  name="followthemoney",
8
- version="3.7.0",
8
+ version="3.7.1",
9
9
  author="Organized Crime and Corruption Reporting Project",
10
10
  author_email="data@occrp.org",
11
11
  url="https://followthemoney.tech/",
@@ -35,7 +35,7 @@ setup(
35
35
  "types-PyYAML",
36
36
  "sqlalchemy2-stubs",
37
37
  "banal >= 1.0.6, < 1.1.0",
38
- "rigour >= 0.5.1, < 1.0.0",
38
+ "rigour >= 0.6.1, < 1.0.0",
39
39
  "click >= 8.0, < 9.0.0",
40
40
  "stringcase >= 1.2.0, < 2.0.0",
41
41
  "requests >= 2.21.0, < 3.0.0",
File without changes
File without changes
File without changes