semvec/pypi-packages huggingface dataset:
ir-metric 0.1.4
ir_metrics is a Python package designed to facilitate information retrieval (IR) metric calculations. It provides a simple and convenient way to compute various metrics commonly used in IR evaluation.
Requires Python: >=3.9,<4.0

# ir_metrics

## Overview

ir_metrics is a Python package designed to facilitate information retrieval (IR) metric calculations. It provides a simple and convenient way to compute various metrics commonly used in IR evaluation.

## Installation

Install the package using pip:

```
pip install ir_metric
```

## Quick Start

To use ir_metrics, import the metric module and call the desired metric function. Here's a quick example of computing the average precision:


```
from ir_metric import metric

# Example data
actual_ranking = [1, 2, 3]
predicted_ranking = [5, 3, 1]

# Compute average precision at k=2
result = metric.average_precision_at_k(actual_ranking, predicted_ranking, k=2)

print(result)  # Output: 0.25
```

## Available Metrics

Currently, ir_metrics supports the following metrics:

- Average Precision (average_precision_at_k)
- Precision at k (precision_at_k)
- Recall at k (recall_at_k)


## Contributions

Contributions and bug reports are welcome! Feel free to open issues or submit pull requests on the GitHub repository: [https://github.com/harshkumarchourasia/ir_metric]

## License

This project is licensed under the MIT License.
pyl2h 0.2.1
Python library for controlling Link2Home devices
Requires Python: >=3.7
Keywords: iot,smarthome,link2home,l2h

# Link2Home Protocoll implementation

This projects implements (part of) the propretiary [Link2Home](https://www.l2h-rev.de/) communication protocol for monitoring and controlling devices from third party projects.

:warning: This is under development and in very early stage!
:warning: This project is based on reverse engineering and is neither associated nor supported by the offical product. This is mere a workaround to the missing of an official open API or third party integrations

# Basics
The Link2Home protocol is relying on two major parts:
1. Authenticated HTTP Calls to a backend hosted by the vendor. This is mainly for user profile portability, storing device metadata and discovery
2. Unauthenticated UDP Broad- and Unicasts for changing device state and announcing changes

This project currently relies solely on 2. and is operating solely within the local network.

# Usage

With importing the `UDPServer` class, you've are able to access the data stream of device change updates, the current directory of known devices and sending command messages

```
from l2h import UDPServer

server = UDPServer()

def deviceCallback(deviceStatus):
    print("New Device Update: {}".format(deviceStatus))

devices = server.getDevices()
server.setStatus("192.168.1.3", 1, True)

server.listen(deviceCallback)
```

Devices will be auto-discovered with their first state switch (i.e. when they are sending their first status update after the program has started), only after that, the library will be able to successfully communicate with the device. It is recommended that you trigger the devices manually (either by their physical buttons or via the official app) after having the server up to make autodiscovery work faster. Please Note: Apps currently also show up as devices.

`main.py` is also offering a CLI mode that will log status updates of devices and allow to alternate states of a device by it's IP supplied as an argument:

```
python main.py --ip 192.168.1.3
```

# Development

As of now, this library has been developed and tested solely with a EMQ303WF-1 smart socket
nonebot-plugin-aibot 0.1.2
nonebot-plugin-aibot
Requires Python: <4.0,>=3.8


# nonebot-plugin-aibot

_✨ NoneBot 插件简单描述 ✨_

<a href="./LICENSE">
    <img src="https://img.shields.io/github/license/teressssa/nonebot-plugin-aibot.svg" alt="license">
</a>
<a href="https://pypi.python.org/pypi/nonebot-plugin-aibot">
    <img src="https://img.shields.io/pypi/v/nonebot-plugin-aibot.svg" alt="pypi">
</a>
<img src="https://img.shields.io/badge/python-3.11+-blue.svg" alt="python">

</div>

## 📖 介绍

这里是插件的详细介绍部分

## 💿 安装



使用包管理器安装，代理源上可能没有此包，需要取消代理

```
pip config unset global.index-url
```

在虚拟环境中安装包


    source .venv/Scripts/activate
    pip install --target=. nonebot-plugin-aibot
    pip install --pre --upgrade bigdl-llm[all]
    pip install --upgrade transformers
打开 nonebot2 项目根目录下的 `pyproject.toml` 文件, 在 `[tool.nonebot]` 部分追加写入

    plugins = ["nonebot_plugin_aibot/plugins"]