semvec/pypi-packages huggingface dataset:
casambi 0.165
Library to control Casambi light through cloudapi
License: MIT
Requires Python: >=3.6
Keywords: casambi,light

![PyPI - Python Version](https://img.shields.io/pypi/pyversions/casambi) ![PyPI](https://img.shields.io/pypi/v/casambi) ![GitHub](https://img.shields.io/github/license/hellqvio86/casambi) ![GitHub issues](https://img.shields.io/github/issues-raw/hellqvio86/casambi) ![GitHub last commit](https://img.shields.io/github/last-commit/hellqvio86/casambi) ![PyPI - Downloads](https://img.shields.io/pypi/dm/casambi)

# Python library for controlling Casambi lights

Python library for controlling Casambi via Cloud API

## Getting Started
1. Request developer api key from Casambi: https://developer.casambi.com/
2. Setup a site in Casambi app: http://support.casambi.com/support/solutions/articles/12000041325-how-to-create-a-site

## Installating
Install this library through pip: 
```
pip install casambi
```

## Example Code block 1
```python

  import casambi
  import time

  api_key = 'REPLACEME'
  email = 'replaceme@replace.com'
  network_password = 'REPLACEME'
  user_password = 'REPLACEME'

  worker = casambi.Casambi(api_key=api_key, email=email, \
    user_password=user_password, network_password=network_password)
  worker.create_user_session()
  worker.create_network_session()
  worker.ws_open()

  print("Turn unit on!")
  worker.turn_unit_on(unit_id=1)
  time.sleep(60)

  print("Turn unit off!")
  worker.turn_unit_off(unit_id=1)
  time.sleep(60)

  units = worker.get_unit_list()

  print("units: {}".format(units))

  scenes = worker.get_scenes_list()

  print("Scene on!")
  worker.turn_scene_on(scene_id=1)
  time.sleep(60)
  print("Scene off!")
  worker.turn_scene_off(scene_id=1)

  worker.ws_close()
```
## Other Casambi projects
* https://github.com/hellqvio86/aiocasambi - Asynchronous I/O version of this library
* https://github.com/hellqvio86/home_assistant_casambi - Home Assistant Plugin for Casambi
* https://github.com/awahlig/homebridge-casambi Homebridge plugin for Casambi

## Authors

* **Olof Hellqvist** - *Initial work*

## License

This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details

## Disclaimer
This library is neither affiliated with nor endorsed by Casambi.
command-builder 0.1.3
Summary shell commands execution
License: MIT
Requires Python: >=3.6.2,<4.0.0

# Command Builder

Command Builder is a library that manages the execution of shell commands, creating a summary of the executions. The objective is to facilitate the perception of errors.

## Installation

> You need Python 3.6.2 or above.

From the terminal, enter:

```bash
pip install command-builder
```

## Getting started

> The examples refer to the newest version (0.1.3) of command-builder.

First, let's init the command-builder:

```python
from command_builder.command_builder import CommandBuilder

command_builder = CommandBuilder()

```

Adding commands:

```python
command_builder.add(name="ls", command=["ls", "-a"])
command_builder.add(name="pwd", command=["pwd", "-o"])
```

Running commands:

```python
command_builder.run()
```

Output:

```diff
______________________________summary______________________________
+ ls: commands succeeded
- ERROR: pwd: commands failed
```
michell-raytracer 0.0.3
Relativistic non-linear raytracer for Schwarzschild's metric.
License: MIT
Requires Python: >=3.6
Keywords: raytracer,black hole,nonlinear

# Michell's Raytracer

Simple relativistic nonlinear raytracer named after John Michell,
the first man to think about existence of black holes (he called
them "dark stars").

It uses Schwarzschild's metric to implement calculations of rays
paths near black hole.

Here are example of how to use this package:

```
import matplotlib.pyplot as plt
import numpy as np
from michell.raytracer import Raytracer
from michell.scene import Camera, Sphere, Ring, Scene
from michell.textures import ColorTexture, ImageTexture

blackhole_texture = ColorTexture(np.array([0, 0, 0]))
background_texture = ImageTexture("space.jpg")
ring_texture = ImageTexture("rings.jpeg")

blackhole = Sphere(np.array([0, 0, 0]), 1, blackhole_texture)
background = Sphere(np.array([0, 0, 0]), 8, background_texture, inverse=True)
ring = Ring(np.array([0, 0, 0]), (1.5, 4), np.array([0, 1, 0]), ring_texture)

camera = Camera(np.array([-7,0.5,0]), np.array([0, 0, 0]), np.array([0, 1, 0]), np.pi / 3)

scene = Scene(camera)

scene.push_entity(blackhole)
scene.push_entity(ring)
scene.push_entity(background)

raytracer = Raytracer(scene, (300, 200), (0.16, 8), curvature=3)

plt.imsave('output.png', raytracer.render())
```

Firstly we create textures for scene entities. Then we create scene entities.
Next step is to create camera and scene. The last one before making raytracer
is to push entities created earlier to scene's list of entities. And finally
we create raytracer for rendering the scene we created few lines ago.

**REMEMBER** to put sphere in <0, 0, 0> to correctly render black hole.