Skip to main content

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

License

UPL-1.0

Metadata

Release files for lifx-emulator 4.8.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lifx-emulator 4.8.0
File Size Uploaded
lifx_emulator-4.8.0.tar.gz 180.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for lifx-emulator 4.8.0
File Interpreter ABI Platform
lifx_emulator-4.8.0-py3-none-any.whl Python 3 none any Details

Total release size: 284.9 kB

Release files / lifx_emulator-4.8.0.tar.gz

Download URL lifx_emulator-4.8.0.tar.gz
Size 180.5 kB
Tags Source
SHA-256 checksum
How to use checksums
f0e7633a52d6b57db82f4fcde02c786446c33c19df628126cdfd9c3fa7ae8eca
BLAKE2b-256 checksum
How to use checksums
f38e19bff8d00e0f51c8f85fb5914c8fe8b81afc56361ade0744af4cafe9aea4
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 18, 2026.

Transparency log

Release files / lifx_emulator-4.8.0-py3-none-any.whl

Download URL lifx_emulator-4.8.0-py3-none-any.whl
Size 104.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b1edfdc4510e8a400d252bb6b85bed9b0e763e605b4e030ff1d878ea7bf1b939
BLAKE2b-256 checksum
How to use checksums
af8a19a6d06db9efc612eb9145b23a4ea21e7c767b447b398def08c21c8b6974
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 18, 2026.

Transparency log

Release history Release notifications | RSS feed

4.11.0

2 release files

4.10.0

2 release files

This release

4.8.0 This release

2 release files

4.7.2

2 release files

4.7.1

2 release files

4.7.0

2 release files

4.6.1

2 release files

4.6.0

2 release files

4.5.1

2 release files

4.5.0

2 release files

4.3.1

2 release files

4.3.0

2 release files

4.2.0

2 release files

4.0.0

2 release files

3.1.0

2 release files

3.0.1

2 release files

2.4.0

2 release files

2.3.1

2 release files

2.3.0

2 release files

2.2.1

2 release files

2.2.0

2 release files

2.1.0

2 release files

2.0.0

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page