semvec/pypi-packages huggingface dataset:
enumerate_skip 1.0
enumerate extended to support manual advancement or skipping      of the index
License: MIT

===============================
enumerate_skip
===============================

This package provides 2 iterators, `enumerate_skip` and `enumerate_manual`, that
extend the behaviour of the standard libraries `enumerate` a bit.

`enumerate_skip` has been extended with a `skip` method that makes sure the next
`index` yielded is the same as the current one. The word `skip` might not make
sense at first, but this function was written because I needed to not handle
some values yielded by an iterator, like::

  for index, obj in enumerate(...):
      if obj.has_some_attr():
          continue
      # do something with object and index here

If `index` in that example was printed to the user (or something similar), there
would be gaps. Using `enumerate_skip` instead, the above example could be
written as::

  it = enumerate_skip(...)
  for index, obj in it:
      if obj.has_some_attr():
          it.skip()
          continue
      # do something with object and index here

`enumerate_manual` works the other way around: you have to manually call
`advance` on it to increment the `index`::

  it = enumerate_manual(...)
  for index, obj in it:
      if obj.has_some_attr():
          continue
      # do something with object and index here
      it.advance()
python-hue 0.1.2
Python client for Philips Hue
License: MIT
Keywords: phillips hue,client

==========
Python-Hue
==========

Python client for the Philips Hue lighting system. I figured out almost all of
this by monitoring the traffic on my router. I then found https://github.com/alistairg/IndigoHue/blob/master/Hue.indigoPlugin/Contents/Server%20Plugin/plugin.py
which gave some clues about RGB support and the magic strings (select, lselect)
to send alerts.

Sample Usage is not docs::

    from hue import Hue;
    h = Hue(); # Initialize the class
    h.station_ip = "192.168.1.222"  # Your base station IP
    h.get_state(); # Authenticate, bootstrap your lighting system
    l = h.lights.get('l3') # get bulb #3
    l.bri(0) # Dimmest
    l.bri(255) # Brightest
    l.rgb(120, 120, 0) # [0-255 rgb values]
    l.rgb("#9af703") # Hex string
    l.on()
    l.off()
    l.toggle()
    l.alert() # short alert
    l.alert("lselect") # long alert
    l.setState({"bri": 220, "alert": "select"}) # Complex send

Have fun! Let me know how you're using it.