Name | pygleif JSON |
Version |
2025.2.1
JSON |
| download |
home_page | None |
Summary | Query the GLEIF API using Python |
upload_time | 2025-02-12 19:51:05 |
maintainer | None |
docs_url | None |
author | None |
requires_python | >=3.11 |
license | MIT |
keywords |
lei-code
lei
api
gleif
leicode
|
VCS |
 |
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
|
[](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 number
The 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 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:
```python
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
```
Raw data
{
"_id": null,
"home_page": null,
"name": "pygleif",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.11",
"maintainer_email": null,
"keywords": "lei-code, lei, api, gleif, leicode",
"author": null,
"author_email": "ggravlingen <no@email.com>",
"download_url": "https://files.pythonhosted.org/packages/c0/d8/07507db2286da52a9f68a44c6b7aee5d5b6a70eaeaa6467618cd23de6fbc/pygleif-2025.2.1.tar.gz",
"platform": "any",
"description": "[](https://badge.fury.io/py/pygleif)\n\nThis library uses Python to query the GLEIF.org's API. Currently, the library supports:\n- Fetching data for a specific API\n- Searching for a LEI using an organisation number\n\nThe library is strictly typed using [`Pydantic`](https://github.com/pydantic/pydantic).\n\n#### Installing the library\n`pip install pygleif`\n\n#### Example: fetching data for a specific LEI:\n\n```python\nfrom pygleif import PyGleif\n\ngleif_response = PyGleif(\"549300MLUDYVRQOOXS22\")\n\n# Print the name of the company with the LEI above\nprint(gleif_response.response.data.attributes.entity.legal_name.name)\n# prints UK EQUITY FUND (OFFSHORE)\n```\n\n#### Example: search for a LEI using organisation number:\n\n```python\nfrom pygleif import Search\n\ngleif_response = Search(\"5560142720\")\n\n# Print the LEI of the company with the LEI above\nprint(response.data[0].attributes.lei)\n\n# prints 213800T8PC8Q4FYJZR07\n```\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Query the GLEIF API using Python",
"version": "2025.2.1",
"project_urls": {
"Source Code": "https://github.com/ggravlingen/pygleif"
},
"split_keywords": [
"lei-code",
" lei",
" api",
" gleif",
" leicode"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "8aeff00286d67cabe033722e7b83ba43579c969886978a9b345b490890080959",
"md5": "acf1498c2d2cd2f0c53d6fe8e54180db",
"sha256": "b21d71ea09e78631f21d2e21cd068fc66eb52d9227dfa37316d27fc072e1afca"
},
"downloads": -1,
"filename": "pygleif-2025.2.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "acf1498c2d2cd2f0c53d6fe8e54180db",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.11",
"size": 7962,
"upload_time": "2025-02-12T19:51:03",
"upload_time_iso_8601": "2025-02-12T19:51:03.996714Z",
"url": "https://files.pythonhosted.org/packages/8a/ef/f00286d67cabe033722e7b83ba43579c969886978a9b345b490890080959/pygleif-2025.2.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "c0d807507db2286da52a9f68a44c6b7aee5d5b6a70eaeaa6467618cd23de6fbc",
"md5": "58f3c6ed0dff7bb885d4125a9c3c2e58",
"sha256": "b5c694804f99c6c90b5e059e9e64aa69efd12787270f180263e39ff8d303ce3f"
},
"downloads": -1,
"filename": "pygleif-2025.2.1.tar.gz",
"has_sig": false,
"md5_digest": "58f3c6ed0dff7bb885d4125a9c3c2e58",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.11",
"size": 7759,
"upload_time": "2025-02-12T19:51:05",
"upload_time_iso_8601": "2025-02-12T19:51:05.652326Z",
"url": "https://files.pythonhosted.org/packages/c0/d8/07507db2286da52a9f68a44c6b7aee5d5b6a70eaeaa6467618cd23de6fbc/pygleif-2025.2.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-02-12 19:51:05",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "ggravlingen",
"github_project": "pygleif",
"travis_ci": false,
"coveralls": true,
"github_actions": true,
"lcname": "pygleif"
}