Python SDK
Import-ready Lexmount Python SDK documentation for Lex Home.
Lexmount Python SDK is the Python entry point for creating remote browser sessions, managing persistent contexts, uploading extensions, and retrieving session downloads.
Features
- ๐ Easy to Use: Simple and intuitive API design
- ๐ Type-Safe: Complete type hints for better IDE support
- ๐ Well Documented: Comprehensive docstrings and examples
- ๐ก๏ธ Production Ready: Error handling, logging, and retry support
- ๐ Session Management: Create, list, and delete browser sessions
- ๐ฅ Session Downloads: List, fetch, archive, and clear session downloads
- ๐ Advanced Querying: Pagination support and status filtering
Installation
pip install lexmountRequirements:
- Python 3.8+
- httpx >= 0.23.0
- python-dotenv >= 0.19.0
- playwright (optional, for browser automation)
Runtime Configuration
Environment Variables
export LEXMOUNT_API_KEY="your-api-key"
export LEXMOUNT_PROJECT_ID="your-project-id"
export LEXMOUNT_BASE_URL="https://api.lexmount.com" # OptionalOr use a .env file:
LEXMOUNT_API_KEY=your-api-key
LEXMOUNT_PROJECT_ID=your-project-idWhat To Read Next
- Quick Start for setup and first connection.
- Capabilities for sessions, contexts, extensions, and downloads.
- Examples for quickstart scripts and API reference entry points.
Lexmount Docs