Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lexstandard-1.0.0.tar.gz (67.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lexstandard-1.0.0-py3-none-any.whl (68.1 kB view details)

Uploaded Python 3

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

Hashes for lexstandard-1.0.0.tar.gz
Algorithm Hash digest
SHA256 17c42fa670925927d9b6ac92af43a4f6c97892b239a0d7e312c048f1b5215612
MD5 2a60b73e3dde0ee7188d89488d73bf1f
BLAKE2b-256 8c6845d9564fb4c688b7c02a38d4aedb227b6d960a709213e1bca89571f2b094

See more details on using hashes here.

Provenance

The following attestation bundles were made for lexstandard-1.0.0.tar.gz:

Publisher: publish-python.yml on lexstandard/lex-internal

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for lexstandard-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d2e04c6260c1f1273fe0ad26b2b6cc0f1ad6a3b4fbf83d6a31d3bcdc0739a96e
MD5 b6ea14edeb0da3724bb531a0086d618a
BLAKE2b-256 84a611ff0854c7aee83b4eb3d04fa966531462ce3d72999aaafa83c7f9b73c04

See more details on using hashes here.

Provenance

The following attestation bundles were made for lexstandard-1.0.0-py3-none-any.whl:

Publisher: publish-python.yml on lexstandard/lex-internal

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page