Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ggravlingen/pygleif
Query the API of GLEIF.org using Python.
https://github.com/ggravlingen/pygleif
company finance gleif know-your-customer kyc legal-entity-identifier lei lei-code
Last synced: about 16 hours ago
JSON representation
Query the API of GLEIF.org using Python.
- Host: GitHub
- URL: https://github.com/ggravlingen/pygleif
- Owner: ggravlingen
- License: mit
- Created: 2018-02-06T20:25:43.000Z (almost 7 years ago)
- Default Branch: main
- Last Pushed: 2024-10-24T02:49:31.000Z (25 days ago)
- Last Synced: 2024-10-24T03:16:38.948Z (25 days ago)
- Topics: company, finance, gleif, know-your-customer, kyc, legal-entity-identifier, lei, lei-code
- Language: Python
- Homepage:
- Size: 349 KB
- Stars: 19
- Watchers: 4
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![PyPI version](https://badge.fury.io/py/pygleif.svg)](https://badge.fury.io/py/pygleif)
This library uses Python to query the GLEIF.org's API. Currently, the library supports:
- Fetching data for a specific API
- Searching for a LEI using an organisation numberThe library is strictly typed using [`Pydantic`](https://github.com/pydantic/pydantic).
#### Installing the library
`pip install pygleif`#### Example: fetching data for a specific LEI:
```python
from pygleif import PyGleifgleif_response = PyGleif("549300MLUDYVRQOOXS22")
# Print the name of the company with the LEI above
print(gleif_response.response.data.attributes.entity.legal_name.name)
# prints UK EQUITY FUND (OFFSHORE)
```#### Example: search for a LEI using organisation number:
```python
from pygleif import Searchgleif_response = Search("5560142720")
# Print the LEI of the company with the LEI above
print(response.data[0].attributes.lei)# prints 213800T8PC8Q4FYJZR07
```