pygleif 2025.2.1
pip install pygleif
Latest version
Released:
Query the GLEIF API using Python
Navigation
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT
- Author: ggravlingen
- Tags lei-code, lei, api, gleif, leicode
- Requires: Python >=3.11
-
Provides-Extra:
test
Classifiers
- Development Status
- Intended Audience
- Natural Language
- Programming Language
Project description
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 number
The library is strictly typed using Pydantic
.
Installing the library
pip install pygleif
Example: fetching data for a specific LEI:
from pygleif import PyGleif
gleif_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:
from pygleif import Search
gleif_response = Search("5560142720")
# Print the LEI of the company with the LEI above
print(response.data[0].attributes.lei)
# prints 213800T8PC8Q4FYJZR07
Project details
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT
- Author: ggravlingen
- Tags lei-code, lei, api, gleif, leicode
- Requires: Python >=3.11
-
Provides-Extra:
test
Classifiers
- Development Status
- Intended Audience
- Natural Language
- Programming Language
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pygleif-2025.2.1.tar.gz
.
File metadata
- Download URL: pygleif-2025.2.1.tar.gz
- Upload date:
- Size: 7.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b5c694804f99c6c90b5e059e9e64aa69efd12787270f180263e39ff8d303ce3f |
|
MD5 | 58f3c6ed0dff7bb885d4125a9c3c2e58 |
|
BLAKE2b-256 | c0d807507db2286da52a9f68a44c6b7aee5d5b6a70eaeaa6467618cd23de6fbc |
File details
Details for the file pygleif-2025.2.1-py3-none-any.whl
.
File metadata
- Download URL: pygleif-2025.2.1-py3-none-any.whl
- Upload date:
- Size: 8.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b21d71ea09e78631f21d2e21cd068fc66eb52d9227dfa37316d27fc072e1afca |
|
MD5 | acf1498c2d2cd2f0c53d6fe8e54180db |
|
BLAKE2b-256 | 8aeff00286d67cabe033722e7b83ba43579c969886978a9b345b490890080959 |