semvec/pypi-packages huggingface dataset:
koko-keywords 0.3.3
A python client  for the Koko Keywords API. The client handles caching to ensure very low latency.
License: MIT
Requires Python: >=3

Koko Keyword Python Client
============

A python client  for the [Koko Keywords API](https://developers.kokocares.org). The client handles caching to ensure very low latency.


## Install

```
pip install koko_keywords
```

## Usage

Set the `KOKO_KEYWORDS_AUTH` environment to the authentication string provided
by Koko. To get an api key, complete our [sign up form](https://r.kokocares.org/api_signup).

```
export KOKO_KEYWORDS_AUTH=username:password
```

Import the library

```py
import koko_keywords
```

Then use the `match` function to check whether a query prompt matches a risky
keyword

```py
koko_keywords.match("sewerslide")
```

There is one optional param, `filter`. 

### Filter
Filter the keyword based on the taxonomy using a colon delimited list of “dimension=value” filters. Omitting a dimension does not filter by that dimension e.g.

```py
koko_keywords.match("sewerslide", "category=eating,parenting:confidence=1,2")
```

This matches "sewerslide" against eating eating and parenting, with a confidence of 1 and 2 and any intensity (as intensity was omitted).

## Performance
The underlying library is written in Rust and cross-compiled to the four major CPU targets. Regexes are cached based on the cache expiration headers (currently set to an hour). This ensures very low latency and overhead (< 1μs/req).


## Error Handling
A RuntimeError will be raised with hints on how to resolve the issue. No exception handling should be necessary.

## Logging
Minimal log messages are logged to STDERR

## License

```
WWWWWW||WWWWWW
 W W W||W W W
      ||
    ( OO )__________
     /  |           \
    /o o|    MIT     \
    \___/||_||__||_|| *
         || ||  || ||
        _||_|| _||_||
       (__|__|(__|__|
```

(The MIT License)

Copyright (c) 2017 Koko AI Inc. <us@kokocares.org>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
lennoxs30api 0.2.22
API Wrapper for Lennox S30 Cloud and LAN API
License: MIT

# PyPI - lennoxs30api

pip install lennoxs30api

## API Wrapper for www.lennoxicomfort.com

By Pete Rager  

This asyncio module connects to the Lennox Cloud API to retrieve data from S30 / E30 thermostats.  This API does not work for older models that use a different API.  Those models are supported by this project:  https://github.com/thevoltagesource/myicomfort

Prerequistes:

1. Python version 3.8.6 or later

2. A Lennox sign-on (email address and password)

3. You may need to install aiohttp https://docs.aiohttp.org/en/stable/

Sample program Instructions:

1. Grab the repo

2. Edit the test_async.py program to supply the following
 
    LOG_PATH = '/home/pete/lennoxs30api'    #  Directoy to stash the log file in

    EMAIL_ADDRESS = 'myemail@myemail.com'

    PASSWORD = 'mypassword'

Command Line Program Instructions:

The command line program uses asyncio and runs 3 different tasks

- Task 1 (runner) - this task connects to the cloud API and periodically polls it at a 10 second interval

- Task 2 (poller) - this task runs on a 15 second interval and prints out information from all active Zones

- Task 3 (prompt) - this task reads from the command line and executes commands on behalf of the user to enabling API testing.  Cmd List

        cool, heat, off - sets the HVAC mode to cool, heat or off.  usage - just type the word followed by enter eg cool

        auto, on, circulate - sets the Fan mocde to auto, on, or ciruclate

        csp <TempF> - sets the cool setpoint in F.  example  csp 76

        hsp <TempF> - sets the heat setpoint in F.  example hsp 65

To exit the program hit crtl-c

## Reporting Bugs

Please enabled debug logging when reporting bugs and provide sample code.  Do not publicly post the debug logs as they contain Personally Identifiable Information that is part of the communication protocol.  Your password IS NOT in the logs, but other information such as email, home address, etc., that is part of the lennox communications is.

## Enhancements

Submit enhancement requests as issues or better yet send a pull request.