semvec/pypi-packages huggingface dataset:
attribute-dict 1.0.0
A subclass of dict that allows object-style access to its entries

# attribute_dict
A subclass of dict that allows object-style access to its entries.

# Installation
```sh
pipenv install attribute_dict
```

# Usage
```py
    from attribute_dict import AttributeDict
    sample_dict = AttributeDict({'foo': 'bar'})
    sample_dict # => AttributeDict({'foo': 'bar'})

    # The object is just subclassed from dict, and has all of the standard functions
    isinstance(sample_dict, dict) # => True

    # Create a new AttributeDict by "stacking" iterables
    # Each iterable will overwrite keys in the previous one (kwargs are processed last!)
    sample_dict = AttributeDict({'foo': 'foo'}, {'foo': 'ba', 'bar': 'foo'}, {'foo': 'bar'}, {'foobar': 'bar'}, foobar='foo')
    # => AttributeDict({'foo': 'bar', 'bar': 'foo', 'foobar': 'foo'})

    # Create a new AttributeDict by shallow-copying an existing one
    new_sample_dict = sample_dict.copy()
    new_sample_dict # => AttributeDict({'foo': 'bar', 'bar': 'foo', 'foobar': 'foo'})
    isinstance(new_sample_dict, AttributeDict) # => True

    # NOTE: Child values are NOT processed!
    sample_dict = AttributeDict({'foo': iterable_two})
    sample_dict # => AttributeDict({'foo': {'foo': 'ba', 'bar': 'foo'}})
    sample_dict.foo # => {'foo': 'ba', 'bar': 'foo'}
    sample_dict.__class__.__name__ # => 'AttributeDict'
    sample_dict.foo.__class__.__name__ # => 'dict'
```

# Tests
Tests use nose2. Clone the Github project. Install dev dependencies, and run tests using the nose2 command.

```sh
pipenv install --dev
pipenv shell
nose2
```
python-brihome 0.0.3
A small package to control Brihome smart led bulbs.

# python-brihome

[![PyPI version](https://badge.fury.io/py/python-brihome.svg)](https://badge.fury.io/py/python-brihome)

This library aims to control the brihome smart light bulbs.
It internally uses the pytuya library and is able to control
many parameters on the led bulb.

install via

`pip install python-brihome`

Actually the briihome is part of a family of ESP8266MOD low cost 
WiFi smart devices from Shenzhen Xenon. These bulbs are sold under
different names. If your bulb was around 10-20€, and port `6668` is open
chances are good you can control it with this library.

### Docs
For an example see [examples](examples/rgb.py).

### FAQ
In Order to use the `brihome.Bulb(...)` constructor you need
to obtain the **local device id** and the **device key** that 
your bulb uses. You can find these by sniffing the brihome app's 
traffic. Refer to [this document](https://github.com/clach04/python-tuya/) 
to obtain valid device id and device key.

### Contributing
Pull request are welcome. Not every function the bulb supports are
implemented. Help on error handling and extended functionality
is welcome.