{"id":46670508,"url":"https://github.com/emredjan/leipy","last_synced_at":"2026-03-08T21:51:58.482Z","repository":{"id":62575533,"uuid":"113103016","full_name":"emredjan/leipy","owner":"emredjan","description":"Python wrapper for the GLEIF LEI Lookup API","archived":false,"fork":false,"pushed_at":"2018-04-18T19:08:19.000Z","size":18,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-26T09:57:08.281Z","etag":null,"topics":["api","api-wrapper","gleif","legal-entity-identifier","lei","python","python-wrapper","requests"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/emredjan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-12-04T22:36:18.000Z","updated_at":"2022-08-23T13:54:16.000Z","dependencies_parsed_at":"2022-11-03T17:46:18.248Z","dependency_job_id":null,"html_url":"https://github.com/emredjan/leipy","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/emredjan/leipy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emredjan%2Fleipy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emredjan%2Fleipy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emredjan%2Fleipy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emredjan%2Fleipy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/emredjan","download_url":"https://codeload.github.com/emredjan/leipy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/emredjan%2Fleipy/sbom","scorecard":{"id":376395,"data":{"date":"2025-08-11","repo":{"name":"github.com/emredjan/leipy","commit":"d2d75a4fa9adb1ecfb430f7a911a6998e24c2481"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/16 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENCE:0","Info: FSF or OSI recognized license: MIT License: LICENCE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-18T14:20:51.812Z","repository_id":62575533,"created_at":"2025-08-18T14:20:51.813Z","updated_at":"2025-08-18T14:20:51.813Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30274852,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-08T20:45:49.896Z","status":"ssl_error","status_checked_at":"2026-03-08T20:45:49.525Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","api-wrapper","gleif","legal-entity-identifier","lei","python","python-wrapper","requests"],"created_at":"2026-03-08T21:51:58.014Z","updated_at":"2026-03-08T21:51:58.477Z","avatar_url":"https://github.com/emredjan.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![PyPI version](https://badge.fury.io/py/leipy.svg)](https://badge.fury.io/py/leipy)\n\n# LEIPY\n\nA python wrapper / client for GLEIF public API. Suggestions, requests, contributions welcome.\n\n(I started this as a hobby / learning project, so it's rough around the edges. If you are looking for a better solution, check out [pygleif](https://github.com/ggravlingen/pygleif))\n\n## Dependencies\n\n1. Python \u003e= 3.4\n2. [requests](http://docs.python-requests.org/en/master/): For API requests\n3. [dateutil](https://dateutil.readthedocs.io/en/stable/): For correctly parsing dates as datetime objects\n4. [pandas](https://pandas.pydata.org/): Optional, for returning output as DataFrame \n\n## Installation\n\nYou can install the package from PyPI with pip, which would take care of the dependencies:\n\n```bash\n$ pip install leipy\n```\n\n## Usage\n\nImport, instantiate and make the request:\n\n```python\nfrom leipy import GLEIF\n\ngleif = GLEIF(api_version='v1')\n\nraw_output, results, results_df = gleif.request(\n    ['HWUPKR0MPOU8FGXBT394','7ZW8QJWVPR4P1J1KQY45'], \n    return_dataframe=True\n)\n```\n\nAfter that, you can access the raw output from the API, results as a class with easy to access instance members, and results as a pandas DataFrame\n\n#### Raw output example\n\n```python\n[{'LEI': {'$': 'HWUPKR0MPOU8FGXBT394'},\n  'Entity': {'LegalName': {'$': 'Apple Inc.'},\n   'LegalAddress': {'Line1': {'$': 'C/O C T Corporation System'},\n    'Line2': {'$': '818 West 7th Street'},\n    'Line3': {'$': 'Suite 930'},\n    'City': {'$': 'Los Angeles'},\n    'Region': {'$': 'US-CA'},\n    'Country': {'$': 'US'},\n    'PostalCode': {'$': '90017'}},\n   'HeadquartersAddress': {'Line1': {'$': '1 Infinite Loop'},\n    'City': {'$': 'Cupertino'},\n    'Region': {'$': 'US-CA'},\n    'Country': {'$': 'US'},\n    'PostalCode': {'$': '95014'}},\n   'BusinessRegisterEntityID': {'@register': 'RA000598', '$': 'C0806592'},\n   'LegalJurisdiction': {'$': 'US'},\n   'LegalForm': {'$': 'INCORPORATED'},\n   'EntityStatus': {'$': 'ACTIVE'}},\n  'Registration': {'InitialRegistrationDate': {'$': '2012-06-06T15:53:00.000Z'},\n   'LastUpdateDate': {'$': '2017-12-12T21:19:00.000Z'},\n   'RegistrationStatus': {'$': 'ISSUED'},\n   'NextRenewalDate': {'$': '2018-12-13T00:31:00.000Z'},\n   'ManagingLOU': {'$': 'EVK05KS7XY1DEII3R011'},\n   'ValidationSources': {'$': 'FULLY_CORROBORATED'}}},\n {'LEI': {'$': '7ZW8QJWVPR4P1J1KQY45'},\n  'Entity': {'LegalName': {'$': 'Google LLC'},\n   'LegalAddress': {'Line1': {'$': 'C/O Corporation Service Company'},\n    'Line2': {'$': '251 Little Falls Drive'},\n    'City': {'$': 'Wilmington'},\n    'Region': {'$': 'US-DE'},\n    'Country': {'$': 'US'},\n    'PostalCode': {'$': '19808'}},\n   'HeadquartersAddress': {'Line1': {'$': '1600 Amphitheatre Parkway'},\n    'City': {'$': 'Mountain View'},\n    'Region': {'$': 'US-CA'},\n    'Country': {'$': 'US'},\n    'PostalCode': {'$': '94043'}},\n   'BusinessRegisterEntityID': {'@register': 'RA000602', '$': '3582691'},\n   'LegalJurisdiction': {'$': 'US'},\n   'LegalForm': {'$': 'LIMITED LIABILITY COMPANY'},\n   'EntityStatus': {'$': 'ACTIVE'}},\n  'Registration': {'InitialRegistrationDate': {'$': '2012-06-06T15:52:00.000Z'},\n   'LastUpdateDate': {'$': '2018-03-28T17:00:00.000Z'},\n   'RegistrationStatus': {'$': 'ISSUED'},\n   'NextRenewalDate': {'$': '2018-08-17T18:10:00.000Z'},\n   'ManagingLOU': {'$': 'EVK05KS7XY1DEII3R011'},\n   'ValidationSources': {'$': 'FULLY_CORROBORATED'}}}]\n```\n\n#### Results class example\n\n```python\n\u003e\u003e\u003e print(results.legal_name)\n['Apple Inc.', 'Google LLC']\n\n\u003e\u003e\u003e print(results.lei_reg_status)\n['ISSUED', 'ISSUED']\n\n\u003e\u003e\u003e print(results.date_last_updated)\n[datetime.datetime(2017, 12, 12, 21, 19, tzinfo=tzutc()),\n datetime.datetime(2018, 3, 28, 17, 0, tzinfo=tzutc())]\n```\n\n#### Results DataFrame example\n\n```python\n\u003e\u003e\u003eresults_df\n```\n\n| |country_hq|country_legal|date_initial_reg|date_last_updated|date_next_renewal|legal_name|lei|lei_reg_status|status|\n|-|----------|-------------|----------------|-----------------|-----------------|----------|---|--------------|------|\n|0\t|US\t|US\t|2012-06-06 15:53:00+00:00\t|2017-12-12 21:19:00+00:00\t|2018-12-13 00:31:00+00:00\t|Apple Inc.\t|HWUPKR0MPOU8FGXBT394\t|ISSUED\t|ACTIVE|\n|1\t|US\t|US\t|2012-06-06 15:52:00+00:00\t|2018-03-28 17:00:00+00:00\t|2018-08-17 18:10:00+00:00\t|Google LLC\t|7ZW8QJWVPR4P1J1KQY45\t|ISSUED\t|ACTIVE|","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femredjan%2Fleipy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Femredjan%2Fleipy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Femredjan%2Fleipy/lists"}