Skip to main content

No project description provided

Project description

PyPI version

This is a Python class that queries the API of GLEIF.org to return data about a specific entity (corporation.) It can also parse the XML-files provided by GLEIF. It is also possible to search for organisation id to find LEI codes and also to get child notes for a specific LEI code.

Usage if you query the API:

from pygleif import GLEIF

data = GLEIF('8RS0AKOLN987042F2V04')
print(data.registration.initial_registration_date)

1. How to use

Usage if you use the XML files:

from pygleif import GLEIFParseRelationshipRecord

# XML is the content (converted to text) of a <RelationshipRecord>
data = GLEIFParseRelationshipRecord(XML)
print(data.raw.Relationship.StartNode.NodeID.text) #  Uses BeautifulSoup to convert to object

There are also some examples available in the sources' example folder.

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

pygleif-3.0.1.tar.gz (6.9 kB view details)

Uploaded Source

Built Distribution

pygleif-3.0.1-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

Details for the file pygleif-3.0.1.tar.gz.

File metadata

  • Download URL: pygleif-3.0.1.tar.gz
  • Upload date:
  • Size: 6.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for pygleif-3.0.1.tar.gz
Algorithm Hash digest
SHA256 3a5b2bf8a7806cb95d212a9cbcb01641b8e0f7f0be237aa545c4323ce4e62db0
MD5 b6c1a3c6e202b4f34d5eedfc3eb9ce99
BLAKE2b-256 e94a3b31029a4a4a1550464934abcb4dee94feb5cd27107190f6afa88d6cd00f

See more details on using hashes here.

File details

Details for the file pygleif-3.0.1-py3-none-any.whl.

File metadata

  • Download URL: pygleif-3.0.1-py3-none-any.whl
  • Upload date:
  • Size: 8.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for pygleif-3.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 53ebe00570e69c81b69680498a2526c40b65578e7f4c145c53a07c99ccea0d61
MD5 4d3c1014a13ce14037c5069b0010a41e
BLAKE2b-256 bd045220caf1a9a64bd2f2b8b87763f9dcd052574bdb574507e23c42d2244fef

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