Identifiers
rigour.ids
BIC
Bases: StdnumFormat
BIC (ISO 9362 Business identifier codes).
Source code in rigour/ids/stdnum_.py
CPF
Bases: StdnumFormat
Cadastro de Pessoas Físicas, Brazilian national identifier
Source code in rigour/ids/stdnum_.py
FIGI
Bases: StdnumFormat
A FIGI number for a security, as managed by OpenFIGI.
Source code in rigour/ids/stdnum_.py
FormatSpec
IBAN
IMO
Bases: IdentifierFormat
An IMO number for a ship or shipping company
Source code in rigour/ids/imo.py
is_valid(text)
classmethod
Determine if the given string is a valid IMO number.
Source code in rigour/ids/imo.py
normalize(text)
classmethod
Normalize the given string to a valid NPI.
Source code in rigour/ids/imo.py
INN
ISIN
IdentifierFormat
Bases: object
Base class for identifier types.
Source code in rigour/ids/common.py
LEI
Bases: StdnumFormat
Legal Entity Identifier (ISO 17442)
Source code in rigour/ids/stdnum_.py
NPI
Bases: IdentifierFormat
National Provider Identifier.
Source code in rigour/ids/npi.py
is_valid(text)
classmethod
Determine if the given string is a valid NPI.
Source code in rigour/ids/npi.py
normalize(text)
classmethod
Normalize the given string to a valid NPI.
Source code in rigour/ids/npi.py
OGRN
Bases: IdentifierFormat
Primary State Registration Number (Russian company registration).
Source code in rigour/ids/ogrn.py
is_valid(text)
classmethod
Determine if the given string is a valid OGRN.
Source code in rigour/ids/ogrn.py
normalize(text)
classmethod
Normalize the given string to a valid OGRN.
Source code in rigour/ids/ogrn.py
SSN
StrictFormat
Bases: IdentifierFormat
A generic identifier type that applies harsh normalization.
Source code in rigour/ids/strict.py
UEI
Bases: IdentifierFormat
US GSA Unique Entity ID.
Source code in rigour/ids/uei.py
STRONG = False
class-attribute
instance-attribute
Marked false because the SAM database is massively duplicated, and entities in SAM conflate companies and their owners. This makes UEIs more like cluster IDs than unique entity identifiers.
is_valid(text)
classmethod
Determine if the given string is a valid NPI.
normalize(text)
classmethod
Normalize the given string to a valid NPI.
Source code in rigour/ids/uei.py
WikidataQID
Bases: IdentifierFormat
A wikidata item identifier.
Source code in rigour/ids/wikidata.py
is_valid(text)
classmethod
normalize(text)
classmethod
Normalize the given string to a valid wikidata QID.
get_identifier_format(name)
get_identifier_format_names()
get_identifier_formats()
Get a list of all identifier formats.