Metadata-Version: 2.4
Name: lexstandard
Version: 1.0.0
Summary: LEX (Lead Exchange Standard) — open standard for multi-industry sales lead interchange
Author: LEX Contributors
License: MIT
Project-URL: Homepage, https://lexstandard.org
Project-URL: Repository, https://github.com/lexstandard/lex
Project-URL: Issues, https://github.com/lexstandard/lex/issues
Project-URL: Changelog, https://github.com/lexstandard/lex/releases
Keywords: lex,lead-exchange,edi,automotive,crm,lead
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Office/Business
Requires-Python: >=3.9
Description-Content-Type: text/markdown

# 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:

```python
from lex import LexClient, LexMessage, MessageType, AssetClass
```

### pip (local editable install)

```bash
pip install -e ./libraries/python
```

## Quick Start — LexClient

```python
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

```python
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 |
