Standalone LIFX Emulator with CLI and HTTP management API
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file lifx_emulator-4.2.0.tar.gz.
File metadata
- Download URL: lifx_emulator-4.2.0.tar.gz
- Upload date:
- Size: 141.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5552d16141932d2c82b026097c6ca98e5a8ecce6a47759ac1f91995a7922c061
|
|
| MD5 |
65e29b63c4b915e3269f46079a5d0c00
|
|
| BLAKE2b-256 |
ff2c86624c2854fa41e4c7c811acff54c678ccb4852129d37989e4558580be8b
|
Provenance
The following attestation bundles were made for lifx_emulator-4.2.0.tar.gz:
Publisher:
ci.yml on Djelibeybi/lifx-emulator
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
lifx_emulator-4.2.0.tar.gz -
Subject digest:
5552d16141932d2c82b026097c6ca98e5a8ecce6a47759ac1f91995a7922c061 - Sigstore transparency entry: 908232263
- Sigstore integration time:
-
Permalink:
Djelibeybi/lifx-emulator@2c975789287b6bd64d88d6623633d09ea1736b8f -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Djelibeybi
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@2c975789287b6bd64d88d6623633d09ea1736b8f -
Trigger Event:
push
-
Statement type:
File details
Details for the file lifx_emulator-4.2.0-py3-none-any.whl.
File metadata
- Download URL: lifx_emulator-4.2.0-py3-none-any.whl
- Upload date:
- Size: 93.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
45c61474211367df75183d1fe2136630223aad0546abf60f1e61eb63ee2eeb17
|
|
| MD5 |
8a09ba04808bf308153bc2ac927d6a39
|
|
| BLAKE2b-256 |
62b451a6fe33ecd740c069adac08dce2cbbccbf5617b23d2bb21516c2aad2cbf
|
Provenance
The following attestation bundles were made for lifx_emulator-4.2.0-py3-none-any.whl:
Publisher:
ci.yml on Djelibeybi/lifx-emulator
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
lifx_emulator-4.2.0-py3-none-any.whl -
Subject digest:
45c61474211367df75183d1fe2136630223aad0546abf60f1e61eb63ee2eeb17 - Sigstore transparency entry: 908232265
- Sigstore integration time:
-
Permalink:
Djelibeybi/lifx-emulator@2c975789287b6bd64d88d6623633d09ea1736b8f -
Branch / Tag:
refs/heads/main - Owner: https://github.com/Djelibeybi
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci.yml@2c975789287b6bd64d88d6623633d09ea1736b8f -
Trigger Event:
push
-
Statement type: