{"id":21392593,"url":"https://github.com/cheerlights/cheerlights-python-package","last_synced_at":"2026-02-02T06:03:52.060Z","repository":{"id":260514474,"uuid":"881509936","full_name":"cheerlights/cheerlights-python-package","owner":"cheerlights","description":"A Python package to interact with the CheerLights API.","archived":false,"fork":false,"pushed_at":"2024-11-01T14:23:35.000Z","size":16,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-05T03:21:37.382Z","etag":null,"topics":["cheerlights","iot","pypi","python","python-package","python3"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/cheerlights-api/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cheerlights.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-10-31T18:05:26.000Z","updated_at":"2024-11-01T16:30:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"24bc5292-8332-4aa2-87a3-4c3f5c73e70c","html_url":"https://github.com/cheerlights/cheerlights-python-package","commit_stats":null,"previous_names":["cheerlights/cheerlights-python-package"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/cheerlights/cheerlights-python-package","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cheerlights%2Fcheerlights-python-package","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cheerlights%2Fcheerlights-python-package/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cheerlights%2Fcheerlights-python-package/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cheerlights%2Fcheerlights-python-package/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cheerlights","download_url":"https://codeload.github.com/cheerlights/cheerlights-python-package/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cheerlights%2Fcheerlights-python-package/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29006679,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-02T04:25:24.522Z","status":"ssl_error","status_checked_at":"2026-02-02T04:24:51.069Z","response_time":58,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["cheerlights","iot","pypi","python","python-package","python3"],"created_at":"2024-11-22T13:41:45.123Z","updated_at":"2026-02-02T06:03:52.023Z","avatar_url":"https://github.com/cheerlights.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Upload Python Package](https://github.com/cheerlights/cheerlights-python-package/actions/workflows/python-publish.yml/badge.svg)](https://github.com/cheerlights/cheerlights-python-package/actions/workflows/python-publish.yml)\n\n[![PyPI - Version](https://img.shields.io/pypi/v/cheerlights_api)](https://pypi.org/project/cheerlights-api/)\n\n# CheerLights API Python Package\n\nA Python package to interact with the CheerLights API. It allows users to get the current CheerLights color, retrieve the color history, and perform various color-related utilities.\n\n## Installation\n\nYou can install the package using pip:\n\n```bash\npip install cheerlights_api\n```\n\n## Usage Examples\n\n```python\nimport cheerlights_api\n\n# Get the current color name and hex code\ncurrent_color = cheerlights_api.get_current_color()\nprint(current_color)  # Example: {'color': 'red', 'hex': '#FF0000'}\n\n# Get the current color name\ncolor_name = cheerlights_api.get_current_color_name()\nprint(color_name)  # Example: 'red'\n\n# Get the current hex code\nhex_code = cheerlights_api.get_current_hex()\nprint(hex_code)  # Example: '#FF0000'\n\n# Get the history of colors\nhistory = cheerlights_api.get_color_history(5)\nfor entry in history:\n    print(f\"{entry['timestamp']}: {entry['color']} ({entry['hex']})\")\n\n# Convert a color name to hex\nhex_code = cheerlights_api.color_name_to_hex('green')\nprint(hex_code)  # '#00FF00'\n\n# Convert hex code to RGB\nrgb = cheerlights_api.hex_to_rgb('#00FF00')\nprint(rgb)  # (0, 255, 0)\n\n# Check if a color is valid\nis_valid = cheerlights_api.is_valid_color('purple')\nprint(is_valid)  # True\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcheerlights%2Fcheerlights-python-package","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcheerlights%2Fcheerlights-python-package","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcheerlights%2Fcheerlights-python-package/lists"}