Skip to main content

Generate Nanoleaf light effects.

Project description

nanoleafeffects

Generate Nanoleaf effects using generative AI.

Supported generators

Currently only supports Google GenAI. Be sure to create an API key in Google AI Studio.

Example usage

from nanoleafeffects.generator import GoogleAIGenerator
generator = GoogleAIGenerator(api_key="YOUR_API_KEY", model="gemini-2.5-flash")
effect_json = generator.generate_effect("A calming blue wave effect that slowly transitions between shades of blue")
print(effect_json)
{
  "animName": "Calming Blue Wave",
  "animType": "plugin",
  "hexPalette": ["ADD8E6", "4169E1", "00008B"],
  "pluginUuid": "027842e4-e1d6-4a4c-a731-be74a1ebd4cf",
  "pluginType": "color",
  "pluginOptions": [
    {
      "name": "loop",
      "value": true
    },
    {
      "name": "transTime",
      "value": 500
    },
    {
      "name": "delayTime",
      "value": 100
    },
    {
      "name": "linDirection",
      "value": "right"
    }
  ]
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nanoleafeffects-0.1.0.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nanoleafeffects-0.1.0-py3-none-any.whl (9.6 kB view details)

Uploaded Python 3

File details

Details for the file nanoleafeffects-0.1.0.tar.gz.

File metadata

  • Download URL: nanoleafeffects-0.1.0.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.8

File hashes

Hashes for nanoleafeffects-0.1.0.tar.gz
Algorithm Hash digest
SHA256 751a73858639d0133c66876674930d27f3b5e81c715ba25750ea65a2f7f8315b
MD5 30e5ed608baaa3db3f7ece14729f4643
BLAKE2b-256 b66f89bf8984860d638ea4469c83fffc65ba7344b7e84202ff8712c865a7fe0a

See more details on using hashes here.

File details

Details for the file nanoleafeffects-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for nanoleafeffects-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 abfdd0da1c663941897185a66ab803b17ae1c36e3057a055fe530215b2082215
MD5 5880724da76fe3cc75c6e2f224f0d0f0
BLAKE2b-256 6874ce3a4e771d03807a567476b6ff573ad019101582e244125d0e812caf5787

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page