{"id":20414933,"url":"https://github.com/cydrobolt/pifx","last_synced_at":"2025-04-12T17:05:14.911Z","repository":{"id":48082696,"uuid":"48139975","full_name":"cydrobolt/pifx","owner":"cydrobolt","description":":bulb: A Python library for the LIFX cloud HTTP API","archived":false,"fork":false,"pushed_at":"2022-12-26T19:47:17.000Z","size":58,"stargazers_count":52,"open_issues_count":7,"forks_count":4,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-03-26T11:21:22.467Z","etag":null,"topics":["api","lifx","python","python-library"],"latest_commit_sha":null,"homepage":"http://pifx.rtfd.org/en/latest/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cydrobolt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-12-16T22:58:55.000Z","updated_at":"2025-03-23T01:44:36.000Z","dependencies_parsed_at":"2023-01-31T01:00:49.355Z","dependency_job_id":null,"html_url":"https://github.com/cydrobolt/pifx","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cydrobolt%2Fpifx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cydrobolt%2Fpifx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cydrobolt%2Fpifx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cydrobolt%2Fpifx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cydrobolt","download_url":"https://codeload.github.com/cydrobolt/pifx/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248602275,"owners_count":21131613,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","lifx","python","python-library"],"created_at":"2024-11-15T06:13:20.995Z","updated_at":"2025-04-12T17:05:14.874Z","avatar_url":"https://github.com/cydrobolt.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg src=\"files/pifx.png\" width=\"300\"\u003e\n\n[![PyPI](https://img.shields.io/pypi/v/pifx.svg)]()\n[![](https://travis-ci.org/cydrobolt/pifx.svg)](https://travis-ci.org/cydrobolt/pifx)\n\nA Python library for the LIFX cloud HTTP API\n\n### Installing PIFX\n\nInstall PIFX using `pip`:\n - `pip install pifx`\n\nInstall PIFX from source:\n - `git clone https://github.com/cydrobolt/pifx.git`\n - `cd pifx`\n - `python setup.py install`\n\n### Using PIFX\n\nCreate an API key\n - Head to https://cloud.lifx.com/settings\n - Generate a new personal API token\n\nImporting `PIFX` in your Python file:\n - `from pifx import PIFX`\n\nCreating a PIFX instance:\n\n - `p = PIFX('API_KEY_GOES_HERE')`\n\nPerforming PIFX actions:\n```python\nimport pifx\n\np = pifx.PIFX(api_key='API_KEY_GOES_HERE')\n\np.toggle_power() # toggle all lights\np.toggle_power('label:Bedroom') # toggle light with label \"Bedroom\"\n\np.set_state(color='blue', brightness='0.85') # set brightness to 85% and color to blue\np.pulse_lights(color='red', period=2.5) # pulse lights with a period of 2.5 seconds\n```\n\nRead [the docs](http://pifx.readthedocs.org/en/latest/) for full usage instructions.\n\n### Hacking on PIFX\n\nRunning tests:\n - `pip install nose`\n - `nosetests`\n\nContributing:\n - We appreciate contributions from all users.\n - Fork the project, add your changes, and make a pull request.\n - Thank you!\n\n### Other information\n\nPIFX is an open source library not affiliated or endorsed by LIFX ®\n\n```\n Copyright © 2015-2018 Chaoyi Zha \u003cme@cydrobolt.com\u003e\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n\n     http://www.apache.org/licenses/LICENSE-2.0\n\n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcydrobolt%2Fpifx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcydrobolt%2Fpifx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcydrobolt%2Fpifx/lists"}