semvec/pypi-packages huggingface dataset:
micropython-keypad 0.6.0
Keypad library generic matrix keypads
License: MIT
Requires Python: >=3.4

# micropython-keypad

Implementation for matrix keyboards and keypads.

For now support 8 and 16bit i2c expanders based on PCF8574 and PCF8575

Contributions are welcome

TODO:
 - Do more generic class
 - Implement optional non-blocking reading (use interrupt if available)
 - Read expander state before write to preserve other pin states
 - Think about solution to support more keypads (5x4, 4x4, 3x4, invert etc...)
 - Implement more interfaces (SPI expander, direct GPIO, more I2C expanders)
flask-http-client 0.0.10
HTTP client extension for Flask.
License: MIT

HTTP client extension for Flask.
===========================================

对requests库的包装，在flask配置文件中配置base_url, HttpBasicAuth, verify等。


安装
------

.. code-block:: sh

    pip install flask-http-client

使用
------


First init::

    from flask_http_client import HTTPClient
    http_client = HTTPClient()
    http_client.init_app(app)

API
----

和requests的API一致，需要注意的是 url = base_url + path，所以base_url和path需要自己做好处理。

.. code-block::

    params = {}
    resp = http_client.request('GET', '/users/', params=params)
    resp = http_client.get('/users', params=params)


配置项
------

可以在构造方法修改配置前缀，默认为 HTTP_CLIENT

.. code-block:: py

    http_client = HttpClient(config_prefix='YOUR_CONFIG_PREFIX')


=====================   ================================================
配置项                  说明
=====================   ================================================
HTTP_CLIENT_BASE_URL     api的url_prefix
HTTP_CLIENT_USERNAME     BasicAuth的username
HTTP_CLIENT_PASSWORD     BasicAuth的password
HTTP_CLIENT_VERIFY       requests的verfy配置，可以是自定义证书的路径
=====================   ================================================