semvec/pypi-packages huggingface dataset:
pypowerview 0.2
Python API for talking to Powerview Hub

## Status

# pypowerview
Python3 interface implementation for Powerview Hub

## Notes
This is for use with [Home-Assistant](http://home-assistant.io)

## Usage
```python
from pypowerview import PowerView

# Connect via IP
pv = PowerView('192.168.1.50')

# Return an array of shade objects
shades = pv.get_shades()

# Return first shade in array
shade = shades[0]

# Return attributes of shade
print(shade.id)
print(shade.name)
print(shade.position) # Position represented 0 (close) to 100 (open)

# Update shade position

pv.get_status(shade)

# Close shade

pv.close_shade(shade)

# Open Shade

pv.open_shade(shade)

# Stop shade in motion

pv.stop_shade(shade)

# Set shade to specific position (0 - 100)

pv.set_shade_position(shade, 55)
```
steptrace 0.0.1
Run python code and print lines being run

# steptrace
Traces which python lines are being execuded

    usage:
        python -m steptrace mycode.py
    this will run mycode.py, printing each executed line

    E.g, if mycode.py is:
        def foo(x):
            return x+1
        a = foo(3)
    then output of 'python -m steptrace mycode.py' will be:
    ~path~/mycode.py(1) def foo(x):
    ~path~/mycode.py(4) a = foo(3)
    ~path~/mycode.py(1) def foo(x):
    ~path~/mycode.py(2) ret = x+1
    ~path~/mycode.py(3) return ret
    ~path~/mycode.py(3) return ret
    ~path~/mycode.py(4) a = foo(3)
    (Steptrace) The program finished.

    How this module works:
    the code is heavily based on Pdb.
    Basically, we're just using Pdb with two main differences:
        1) User input is automaticaly set to be 'step'
        2) Printing only the lines in the given file. see usage.

    There is ALOT of room for improvement!
    Feel free to contact me at:
        daniel.carmon91@gmail.com