Skip to main content

leisearchpro

Python client for the LEISearchPro API: look up and search Legal Entity Identifiers (LEIs), find the LEI behind a BIC or ISIN, map corporate groups, and screen entities against OFAC, EU, UN and UK sanctions lists.

No dependencies beyond the Python standard library.

Get a free API key

Sign up at https://leisearch.pro/signup: free, no card. The free plan is for evaluation and prototyping. Higher limits, monitoring, webhooks and KYB / UBO checks come with the paid plans.

Install

pip install leisearchpro

Use

from leisearchpro import LEISearchPro

client = LEISearchPro(api_key="lsi_...")        # or set LEISEARCHPRO_API_KEY

record = client.lei("7LTWFZYICNSX8D621K86")  # Deutsche Bank AG
print(record["legalName"], record["entityStatus"])

hits = client.search("Barclays", jurisdiction="GB")
by_bic = client.by_bic("DEUTDEFF")
issuer = client.by_isin("DE0005140008")
group = client.group("7LTWFZYICNSX8D621K86")

screen = client.screen_name("Gazprombank")

Check an LEI's format and check digits offline, with no API call:

from leisearchpro import is_valid_lei
is_valid_lei("7LTWFZYICNSX8D621K86")   # True

A rate-limited call (HTTP 429) waits for the server's Retry-After and is retried once (LEISearchPro(retries=...)). Other errors raise LEISearchProError, with .status and .detail.

Examples

See examples/:

  • validate_leis.py: check a list of LEIs and flag lapsed or unknown ones.
  • bic_to_lei.py: find the LEI behind a list of BICs (useful for CHAPS ISO 20022 payments).

MIT licence.

Metadata

Release files for leisearchpro 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for leisearchpro 0.1.0
File Size Uploaded Provenance Actions
leisearchpro-0.1.0.tar.gz 7.1 kB Without provenance Details for leisearchpro-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for leisearchpro 0.1.0
File Interpreter ABI Platform Actions
leisearchpro-0.1.0-py3-none-any.whl Python 3 none any Details for leisearchpro-0.1.0-py3-none-any.whl

Total release size: 13.6 kB

Release files / leisearchpro-0.1.0.tar.gz

Download URL leisearchpro-0.1.0.tar.gz
Size 7.1 kB
Tags Source
SHA-256 checksum
How to use checksums
4b374602013f438d0deaa2d89672d44bea06905d0227fc68e877a6cec16103c6
BLAKE2b-256 checksum
How to use checksums
d7cbc1e92f80fa0c0f9c8520cda3cfe154f7140719eb81b3fdb5acf5f4d5091c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release files / leisearchpro-0.1.0-py3-none-any.whl

Download URL leisearchpro-0.1.0-py3-none-any.whl
Size 6.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fe328d2605baaa0a8cde16c848d5d45a70d652950f9d5a1b86e70cdca9dffe6e
BLAKE2b-256 checksum
How to use checksums
e85213ce593784e7be17e6ccd4cb8067c39bffeb54b8dc6744f8b658fe2e4cc8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Security for leisearchpro 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page