lifx-emulator
Standalone LIFX device emulator with CLI and HTTP management API.
This package provides a ready-to-run emulator for testing LIFX LAN protocol libraries. It includes a command-line interface and an optional HTTP API for runtime device management.
Installation
pip install lifx-emulator
Quick Start
# Start with default configuration (1 color light)
lifx-emulator
# Create multiple device types
lifx-emulator --color 2 --multizone 1 --tile 1
# Enable HTTP management API
lifx-emulator --api
# List available LIFX products
lifx-emulator list-products
# Create devices by product ID
lifx-emulator --product 27 --product 38 --product 55
Features
- Command-line interface for quick emulator setup
- HTTP management API with web dashboard
- Real-time device monitoring and management
- Support for all LIFX device types (color, multizone, tile, infrared, HEV, switch)
- Persistent device state across restarts
- Testing scenarios for protocol edge cases
HTTP Management API
Enable with --api to get:
- Web Dashboard:
http://localhost:8080- Real-time monitoring UI - REST API: Device management, statistics, and scenario control
- OpenAPI Docs:
http://localhost:8080/docs- Interactive API documentation
# Start with API server
lifx-emulator --color 2 --api --api-port 9090
# Add a device via API
curl -X POST http://localhost:9090/api/devices \
-H "Content-Type: application/json" \
-d '{"product_id": 27}'
Documentation
Full documentation is available at: https://djelibeybi.github.io/lifx-emulator
Related Packages
- lifx-emulator-core: Core library for embedding the emulator in your own projects
License
Metadata
Release files for lifx-emulator 4.7.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| lifx_emulator-4.7.1.tar.gz | 175.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| lifx_emulator-4.7.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 279.0 kB
Release files / lifx_emulator-4.7.1.tar.gz
| Download URL | lifx_emulator-4.7.1.tar.gz |
|---|---|
| Size | 175.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ec9882c8d3fce0f6cc0638401c4d6d190747cddaec6edad2b0fc3e3518576fc8
|
|
BLAKE2b-256 checksum How to use checksums |
a9b14792cb61662e45f5682d4b9b21c7e1ed6c3336cae76a1d878f08daff387b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 1, 2026.
Transparency logRelease files / lifx_emulator-4.7.1-py3-none-any.whl
| Download URL | lifx_emulator-4.7.1-py3-none-any.whl |
|---|---|
| Size | 103.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
905c6aeebc3574a31912c537554d781f108c78c29861eec20d2512a7ddc00c57
|
|
BLAKE2b-256 checksum How to use checksums |
897c19220fcf646f9603482bb23344070d71f0d1665b0430c80146cf29f42562
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 1, 2026.
Transparency log