LEX (Lead Exchange Standard) — open standard for multi-industry sales lead interchange
Project description
LEX Python Library
LEX (Lead Exchange Standard) — Python library generated from the canonical Haxe implementation.
Requirements
- Python 3.8+
- No external dependencies for core functionality
Installation
Manual
Copy the libraries/python/ folder into your project and import directly:
from lex import LexClient, LexMessage, MessageType, AssetClass
pip (local editable install)
pip install -e ./libraries/python
Quick Start — LexClient
from lex import LexClient
client = LexClient()
result = client.parse_json(json_str)
if result['valid']:
print('Valid LEX message')
else:
for error in result['errors']:
print(error['message'])
Quick Start — Fluent DSL Builder
from lex import LexMessage, MessageType, AssetClass, LeadSource
message = (
LexMessage.build_lead()
.sender('DEALER-001')
.customer(email='buyer@example.com')
.desired_asset(asset_class=AssetClass.VEHICLE, year=2024)
.build()
)
Files
| File | Description |
|---|---|
lex_core.py |
Compiled Haxe core |
lex_client.py |
High-level LexClient wrapper |
lex_dsl.py |
Fluent DSL builder + enum types |
__init__.py |
Package exports |
examples.py |
Usage examples |
Project details
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file lexstandard-1.0.0.tar.gz.
File metadata
- Download URL: lexstandard-1.0.0.tar.gz
- Upload date:
- Size: 67.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
17c42fa670925927d9b6ac92af43a4f6c97892b239a0d7e312c048f1b5215612
|
|
| MD5 |
2a60b73e3dde0ee7188d89488d73bf1f
|
|
| BLAKE2b-256 |
8c6845d9564fb4c688b7c02a38d4aedb227b6d960a709213e1bca89571f2b094
|
Provenance
The following attestation bundles were made for lexstandard-1.0.0.tar.gz:
Publisher:
publish-python.yml on lexstandard/lex-internal
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
lexstandard-1.0.0.tar.gz -
Subject digest:
17c42fa670925927d9b6ac92af43a4f6c97892b239a0d7e312c048f1b5215612 - Sigstore transparency entry: 1399071260
- Sigstore integration time:
-
Permalink:
lexstandard/lex-internal@142a3536f5b87818d58b176aabb8253fb3b5f275 -
Branch / Tag:
refs/tags/v0.0.1 - Owner: https://github.com/lexstandard
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-python.yml@142a3536f5b87818d58b176aabb8253fb3b5f275 -
Trigger Event:
release
-
Statement type:
File details
Details for the file lexstandard-1.0.0-py3-none-any.whl.
File metadata
- Download URL: lexstandard-1.0.0-py3-none-any.whl
- Upload date:
- Size: 68.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d2e04c6260c1f1273fe0ad26b2b6cc0f1ad6a3b4fbf83d6a31d3bcdc0739a96e
|
|
| MD5 |
b6ea14edeb0da3724bb531a0086d618a
|
|
| BLAKE2b-256 |
84a611ff0854c7aee83b4eb3d04fa966531462ce3d72999aaafa83c7f9b73c04
|
Provenance
The following attestation bundles were made for lexstandard-1.0.0-py3-none-any.whl:
Publisher:
publish-python.yml on lexstandard/lex-internal
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
lexstandard-1.0.0-py3-none-any.whl -
Subject digest:
d2e04c6260c1f1273fe0ad26b2b6cc0f1ad6a3b4fbf83d6a31d3bcdc0739a96e - Sigstore transparency entry: 1399071268
- Sigstore integration time:
-
Permalink:
lexstandard/lex-internal@142a3536f5b87818d58b176aabb8253fb3b5f275 -
Branch / Tag:
refs/tags/v0.0.1 - Owner: https://github.com/lexstandard
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-python.yml@142a3536f5b87818d58b176aabb8253fb3b5f275 -
Trigger Event:
release
-
Statement type: