semvec/pypi-packages huggingface dataset:
mPython-yeelight 0.0.1
Yeelight LAN Control for mPython/micropython
License: MIT

<img width="400" src="/docs/images/mpython.png"/> <img width="400" src="/docs/images/yeelight.png"/>

## 概述

`yeelight` 是掌控板或micropython驱动库，用于控制局域网内的YeeLight智能灯泡/小米智能灯具设备。

## 库的安装方法

可通过以下任一方法进行安装。
1. 将项目中的`yeelight.py` 
2. 在掌控板REPL界面中，使用upip安装，步骤如下：
    * 前置条件需要掌控板连接网络
    * 导入upip模块，执行`import upip`
    * 执行`upip.install('mPython-yeelight'）

```python
>>> import upip
>>> upip.install('mPython-yeelight')
```

## 使用

准备工作：

* YeeLight智能灯泡在使用前，须要先配置好连接好wifi，并将 `局域网控制` 功能打开。
* 掌控板确保已与智能灯泡在同个局域网内，并网络通畅。

yeelight Library Documentation：https://mpython-yeelight.readthedocs.io    </br>

YeeLight第三方控制协议：https://www.yeelight.com/download/Yeelight_Inter-Operation_Spec.pdf

## 简单示例

```python
from mpython import *
from yeelight import *

my_wifi = wifi()                    # 连接到与YeeLight相同的局域网内
my_wifi.connectWiFi("","")          


discover_bulbs()        # 发现局域网内YeeLight的设备信息

bulb=Bulb("192.168.0.7")    # 构建Bulb类用于控制，传入IP参数

bulb.turn_on()              # 开灯
sleep(2)
bulb.turn_off()             # 关灯
sleep(2)
bulb.toggle()               # 翻转
sleep(2)
bulb.set_rgb(255,0,0)       # 设置RGB值
bulb.set_brightness(50)     # 调节亮度
sleep(2)
bulb.set_hsv(180,100)       # 设置HSV值
sleep(2)
```

## 执照

所有代码均在MIT许可下发布。
kclip 1.0.1
Parse Kindle Clippings text file
License: MIT

kclip
=====

**kclip** reads Kindle clipping text files and generates objects suitable for further processing.

Installation & Requirements
---------------------------

* Python >=3.7 (only tested with Python 3.7)
* ``pip install kclip``

Usage
-----

**Module usage**::

    import kclip
    for clipping in get_clippings_from_filename(source_filename):
        # do something with the generated object
        print(clipping)


**Command-line demo**:

Iterate the generated objects and print them to stdout:

* ``kclip.py -i source_filename``



**Tests**:

* ``test_kclip.py``


License
-------
MIT, see ``LICENSE.txt``, `jbsmithjj@gmail.com <mailto:jbsmithjj@gmail.com>`_
django-remote-auth-ldap 1.0.0
REMOTE_USER authentication using LDAP
License: MIT

Django Remote Auth LDAP
=========================

[![Build Status](https://travis-ci.org/apmorton/django-remote-auth-ldap.png?branch=master)](https://travis-ci.org/apmorton/django-remote-auth-ldap)

Purpose
-------

This app combines [django-auth-ldap](http://pythonhosted.org/django-auth-ldap/) with django's [RemoteUserBackend](https://docs.djangoproject.com/en/dev/howto/auth-remote-user/)
It allows django applications hosted in IIS to take advantage of Windows Authentication in IIS (401 Challenge) while also having the advanced features offered in `django-auth-ldap`


Features
--------

- [PEP 8](http://www.python.org/dev/peps/pep-0008/) compliance
- [semver](http://semver.org/) compliance


Installing
----------

Install with pip/easy_install from the pypi

`pip install django-remote-auth-ldap`

or clone the latest source

    git clone https://github.com/apmorton/django-remote-auth-ldap.git
    cd django-remote-auth-ldap
    python setup.py install


Using
-----

In your django settings.py file configure django-auth-ldap normally, verify that the configuration is indeed working!

Add the `RemoteUserMiddleware` class after the `AuthenticationMiddleware` class
```python
MIDDLEWARE_CLASSES = (
    ...
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'django_remote_auth_ldap.middleware.RemoteUserMiddleware',
    ...
)
```

Set the RemoteUserLDAPBackend as the authentication backend
```python
AUTHENTICATION_BACKENDS = (
    'django_remote_auth_ldap.backend.RemoteUserLDAPBackend',
)
```

The application expects the remote user to be in the form `domain\user` (which is how IIS returns it)

Settings
--------

There are a few settings you can use to control the behavior

- `DRAL_CHECK_DOMAIN` - Boolean - whether or not to check the domain against a known list - default True
- `DRAL_STRIP_DOMAIN` - Boolean - whether or not to strip the domain off the username before passing to django-auth-ldap - default True
- `DRAL_DOMAINS` - List - list of domains to check against, should be lowercase! - default []
- `DRAL_HEADER` - String - header to check for remote user in - default REMOTE_USER