Skip to main content

ISO 20275 Entity Legal Type package for Python

Project description

https://badge.fury.io/py/iso-20275.svg https://travis-ci.org/Gawaboumga/iso-20275-python.svg?branch=master

ISO standard 20275 ‘Financial Services – Entity Legal Forms (ELF)’, Python wrapper.

Its aim is to enable legal forms within jurisdictions to be codified and thus facilitate the classification of legal entities according to their legal form and is codified through: iso 20275:2017

Column description

Everything is stored in UTF-8 format.

  • ELF Code: 4 alphanumerical characters ([A-Z0-9]{4}) representing the identifier of the legal entity type. One should pay attention that this code is not unique among the dataset. Indeed, a same legal entity can have different entries based on the language used.

  • Country of formation: Common name of the country corresponding to the: “English short name (using Title case)” of ISO 3166-1.

  • Country Code: Alpha-2 code of ISO 3166-1.

  • Jurisdiction of formation: Optional Common name of the subdivision within the country corresponding to the: “English short name (using Title case)” of ISO 3166-2.

  • Country sub-division code (ISO 3166-2): Optional (extended) Alpha-2 code of ISO 3166-2.

  • Entity Legal Form name Local name: Official name used within the country. If the country has different official languages, one may find several entries corresponding to the different languages.

  • Language: Common name of the language used to express the local name corresponding to the: “Name” (using Title case) of ISO 639-1.

  • Language Code (ISO 639-1): Alpha-2 code of ISO 639-1.

  • Entity Legal Form name Transliterated name (per ISO 01.140.10): Transliteration to latinized alphabet (more than ASCII) of local name according to ISO 01.140.10.

  • Abbreviations Local language: Optional Abbreviations of the legal entity type local name.

  • Abbreviations transliterated: Optional Transliterated abbreviation of the legal entity type local name in latinized alphabet (more than ASCII).

  • Date created YYYY-MM-DD (ISO 8601): Date of creation according to ISO 8601, per se, 2017-11-30 for the moment.

  • ELF Status ACTV/INAC: Either Active or Inactive.

  • Modification: Optional Explanation of the modification.

  • Modification date YYYY-MM-DD (ISO 8601): Optional Date of the modification according to ISO 8601.

  • Reason: Optional Explanation on the legal entity type.

Code examples

/!\ Beware /!\ Two datasets are available within this package. The Elf and the OriginalElf, the original one (OriginalElf) is a mapping of the file without some normalization in the data. This is the pure form. Whereas Elf got some modifications to clean up some inputs. See Differences section for more details.

There exists 220 elements sharing a same ELF code. You need to specify which version you would like to use explicitly.

len(Elf['254M']) # 2 entries for this specific entity.
Elf['254M'][0].local_name # Private company limited by shares for the English entry.
Elf['254M'][1].local_name # '私人股份有限公司' for the Chinese entry.

len(Elf['CDOV']) # 1 entry for this specific entity.
Elf['CDOV'][0].local_name # International Business Corporation.

# You can iterate over all the ELF code.
for elf_code, values in Elf.items():
    pass

# You can access to both version of the dataset, a normalized one and the original.
Elf['358I'][0].local_abbreviations # "corp.;inc.;co.;ltd. Incorporated;company;limited;corporation"
OriginalElf['358I'][0].local_abbreviations # "corp., inc., co., ltd. Incorporated, company, limited, corporation, or no abbreviation"

Differences

Here, we will review which changes were made on the data or remarks were observed.

Original file (OriginalElf)

Differences in comparison to the original file.

Modification:

  • n/a, N/A, "" were converted to NA.

Remark:

  • (Opening) parenthesis are sometimes preceeded (or followed) by a space, sometimes not. Same with the closing ones.

  • Not trimmed data.

  • Some entries have symbol: or .

  • Some entries have: &.

Modified file (Elf)

Differences in comparison to the original file.

Modification:

  • n/a, N/A, "", no abbreviation were converted to NA.

  • Parenthesis have been normalized, one space before opening parenthesis and one after the closing one.

  • Data haves been trimmed.

  • Symbols or have been removed.

  • & were replaced by &.

  • and and or were replaced by ; in abbreviations.

  • Commas , have been replaced by ; in abbreviations.

Rows: 266, 269, 270, 271, 273, 274, 275, 276, 277, 278, 307, 310, 311, 312, 313, 315, 318, 322, 324, 1133 and 1743 have been modified to avoid comments within abbreviations columns. See Difference.txt for further information.

Written by Youri Hubaut. Distributed under MIT license.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

iso-20275-0.0.3.tar.gz (101.4 kB view details)

Uploaded Source

Built Distribution

iso_20275-0.0.3-py2.py3-none-any.whl (101.2 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file iso-20275-0.0.3.tar.gz.

File metadata

  • Download URL: iso-20275-0.0.3.tar.gz
  • Upload date:
  • Size: 101.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.0

File hashes

Hashes for iso-20275-0.0.3.tar.gz
Algorithm Hash digest
SHA256 e1704a2c0118f0483b05d261583366d7b5921d6cea53e62759e26419a686f675
MD5 df6a5ca27e1719cb5e0ed0adf8c203ae
BLAKE2b-256 6f36c4ca0bbe9be2b0c1db2ff38f51b19924e712257ca01dd6e3ca7bbcd68539

See more details on using hashes here.

File details

Details for the file iso_20275-0.0.3-py2.py3-none-any.whl.

File metadata

  • Download URL: iso_20275-0.0.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 101.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.0

File hashes

Hashes for iso_20275-0.0.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 20066e280250b1b7319d13332ab3b5558d6b825e2c0d88f74b1c640b2a82bf4f
MD5 22dd2ae5cd612ecd1bae8e2cbf38cf23
BLAKE2b-256 606e4ad436e3f69ec18c842ec4cc661221b89538bde7dbd0da982b2b038db5ea

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page