# Installation ## Requirements - Python 3.10 or higher - No external dependencies (stdlib only) ## Install from PyPI ```bash pip install genro-tytx ``` ## Optional Dependencies For faster JSON encoding/decoding with orjson: ```bash pip install genro-tytx[fast] ``` For MessagePack support: ```bash pip install genro-tytx[msgpack] ``` For all extras: ```bash pip install genro-tytx[all] ``` ## Development Installation Clone the repository: ```bash git clone https://github.com/genropy/genro-tytx.git cd genro-tytx pip install -e ".[dev]" ``` ## Verify Installation ```python >>> from genro_tytx import to_tytx, from_tytx >>> from decimal import Decimal >>> to_tytx({"price": Decimal("100.50")}) '{"price": "100.50::N"}::JS' >>> from_tytx('{"price": "100.50::N"}::JS') {'price': Decimal('100.50')} ``` ## Performance Options ### orjson (Recommended) For better JSON performance, install orjson: ```bash pip install orjson ``` TYTX auto-detects orjson and uses it when available.