pygleif


Namepygleif JSON
Version 2024.8.2 PyPI version JSON
download
home_pageNone
SummaryQuery the GLEIF API using Python
upload_time2024-08-08 18:17:50
maintainerNone
docs_urlNone
authorNone
requires_python>=3.11
licenseMIT
keywords lei-code lei api gleif leicode
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage
            [![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 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/38/3f/64eb5cc9408b808d15210859763652b12ab1549b8c8b23ecaab4e681b486/pygleif-2024.8.2.tar.gz",
    "platform": "any",
    "description": "[![PyPI version](https://badge.fury.io/py/pygleif.svg)](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": "2024.8.2",
    "project_urls": {
        "Source Code": "https://github.com/ggravlingen/pygleif"
    },
    "split_keywords": [
        "lei-code",
        " lei",
        " api",
        " gleif",
        " leicode"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a2dfaca53ec39ddc8bf7a1b4e77dd1a468095d2b6ef6c002888b66cc78ae25d6",
                "md5": "4c6209b3625b1db335b3d510317e6548",
                "sha256": "ec96c18cb2914aa0d50b59089ce44a39454fb8829186f4707e54d54bec2ee462"
            },
            "downloads": -1,
            "filename": "pygleif-2024.8.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "4c6209b3625b1db335b3d510317e6548",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.11",
            "size": 7499,
            "upload_time": "2024-08-08T18:17:49",
            "upload_time_iso_8601": "2024-08-08T18:17:49.021928Z",
            "url": "https://files.pythonhosted.org/packages/a2/df/aca53ec39ddc8bf7a1b4e77dd1a468095d2b6ef6c002888b66cc78ae25d6/pygleif-2024.8.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "383f64eb5cc9408b808d15210859763652b12ab1549b8c8b23ecaab4e681b486",
                "md5": "de6669948918493c6de99218b6c46df8",
                "sha256": "d0209ebbcbed4db74a236fe2a29b18c58ca43557375b5bdea6fb06c58a62f228"
            },
            "downloads": -1,
            "filename": "pygleif-2024.8.2.tar.gz",
            "has_sig": false,
            "md5_digest": "de6669948918493c6de99218b6c46df8",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.11",
            "size": 7878,
            "upload_time": "2024-08-08T18:17:50",
            "upload_time_iso_8601": "2024-08-08T18:17:50.423015Z",
            "url": "https://files.pythonhosted.org/packages/38/3f/64eb5cc9408b808d15210859763652b12ab1549b8c8b23ecaab4e681b486/pygleif-2024.8.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-08-08 18:17:50",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "ggravlingen",
    "github_project": "pygleif",
    "travis_ci": false,
    "coveralls": true,
    "github_actions": true,
    "lcname": "pygleif"
}
        
Elapsed time: 0.75959s