semvec/pypi-packages huggingface dataset:
tamarix-analytics 0.0.7
A Python package for row matching and F1 score calculations.
Requires Python: >=3.8

# Tamarix Analytics

A Python package for row matching and F1 score calculations using the Hungarian algorithm.

## Installation

```bash
pip install tamarix-analytics
```

## Usage

```python
from tamarix_analytics import match_rows, f1_score_unordered, f1_score_ordered, get_row_score
```

## Methods

### 1. `def match_rows(tentative_data: list[BaseModel], ground_truth: list[BaseModel]) -> Sequence[Tuple[int, int]]`

Finds the optimal assignment of rows between two objects using the Hungarian algorithm.
The optimal assignment is invariant to the order of the objects in the lists.
This allows to make a comparison between tables even if the order/number of rows is different.

**Input**:
- `tentative_data: list[BaseModel]` - list of arbitrary objects for comparison
- `ground_truth: list[BaseModel]` - ground truth list of objects to match `tentative_data` against.

**Output**:
A list of 2-tuples where the first item is the index of an object in the ground truth list and the second item is the index of an object in the tentative list.

### 2. `def f1_score_unordered(tentative_data: list[BaseModel], ground_truth: list[BaseModel]) -> float`

Calculates the F1 score between two list of arbitrary objects, without penalizing the wrong order of objects in the list. Internally uses the `match_rows` function to find the best mapping between the rows.

**Input**:
- `tentative_data: list[BaseModel]` - list of arbitrary objects for comparison
- `ground_truth: list[BaseModel]` - ground truth list of objects.

**Output**:
F1 score as float

### 3. `def f1_score_ordered(tentative_data: list[BaseModel], ground_truth: list[BaseModel]) -> float`

Caluclates the F1 score where values are checked with consideration to the structure and order of the tables being compared.

**Input**:
- `tentative_data: list[BaseModel]` - list of arbitrary objects for comparison
- `ground_truth: list[BaseModel]` - ground truth list of objects.

**Output**:
F1 score as float

### 4. `def row_score(tentative_data: list[BaseModel], ground_truth: list[BaseModel]) -> float`

The ratio between the number of items in the `ground_truth` list over the number of items in `tentative_data`.

**Input**:
- `tentative_data: list[BaseModel]` - list of arbitrary objects for comparison
- `ground_truth: list[BaseModel]` - ground truth list of objects.

**Output**:
Row score ratio as float
icm20602 0.2.3
A Python library for ICM20602 sensor, Raspberry PI ready
Requires Python: >=3.6

# ICM20602

![PyPI](https://img.shields.io/pypi/v/icm20602.svg)
![License](https://img.shields.io/github/license/kagankongar/ICM20602.svg)

#### Python library for the icm-20602 and mpu-6500 IMU comm via spi, suitable for Raspberry Pi

Capable of reading acceleration and gyroscope values, 
threaded use, calibration, DLPF, smoothing and inclination 
calculation.

Since ICM-20602 is the successor of MPU-6500, they are register 
address compatible. This library can be used for both. Be sure to 
connect the wires correct.

Both IMUs were tested on RaspBerry Pi 5, 2GB, Linux RPLite 6.6.62+rpt-rpi-2712 


### Installation
pip install icm20602


### Dependencies
spidev


### Usage

Please check examples/ directory for usage


### ToDo

- Better documentation
- FIFO Support


### License

Copyright (c) 2025 kagankongar  (kagan.kongar@gmail.com). 
Available under the **MIT License**. For more information, 
see [LICENSE](LICENSE).
django-skillprofil 0.4
A Django app to organize skillprofiles.
Requires Python: >=3.10

==================
django-skillprofil
==================

django-skillprofil is a Django app to organize peoples skillprofile.

Detailed documentation is in the "docs" directory.

Quick start
-----------

1. Add "skillprofil" to your INSTALLED_APPS setting like this::

    INSTALLED_APPS = [
        ...,
        "skillprofil",
    ]

2. Include the skillprofile URLconf in your project urls.py like this::

    path("skillprofil/", include("django_skillprofil.interfaces.urls")),

3. Run ``python manage.py migrate`` to create the models.

4. Start the development server and visit the admin to create a poll.

5. Visit the ``/skillprofil/`` URL to participate in the poll.
selphyprint 0.0.5
Prepare an image for printing on Canon Selphy printers without cropping
Requires Python: >=3.7
Keywords: Canon Selphy crop bleeding

# selphyprint

`selphyprint` prepars image files for printing on Canon Selphy printers without cropping. 
The image is resized to fit into the usable area of the print and padded with borders required to avoid cropping.
Additional borders can be added if desired. The resulting image is saved into a file that can be sent directly to the printer.

# Printer configuration

Configure your printer to use the borderless mode and from your system print dialog choose "Fill Page".

# Installation

Install from PiPY:
```commandline
pip install selphyprint
```

# Usage

To prepare a single image for printing use the following command:
```commandline
selphyprint --input <input-image-file> --output <output-image-file>
```
For example:
```commandline
selphyprint --input waves.tif --output waves-print.tif
```

You can also process all files in a directory, for example:
```commandline
selphyprint --input /home/roman/photos --output /home/roman/prints
```
Cross-Sectional-Parameter-Calculation 0.1.0
一个用以进行圆环截面参数计算的库，我主要是把它拿来算桩的相关问题
Requires Python: >=3.6

# 环形截面参数计算库

## 简介
这是一个用于计算环形几何属性的Python库，支持多种单位和常见计算，包括环形面积、惯性矩和回转半径。

## 安装
可以通过以下方式安装本库：

~~~markdown
```bash
pip install YourLibraryName
~~~

## 快速入门

### 导入库

在使用之前，首先需要导入库：

```python
from your_library import annular_area_mm2, annular_area_cm2, annular_area_m2, annular_moment_of_inertia_mm4, annular_moment_of_inertia_cm4, annular_moment_of_inertia_m4, annular_radius_of_gyration_mm, annular_radius_of_gyration_cm, annular_radius_of_gyration_m
```

### 计算环形面积

#### 单位为毫米（mm²）

```python
area_mm2 = annular_area_mm2(diameter_mm=100, thickness_mm=5)
print(f"环形面积（mm²）：{area_mm2}")
```

#### 单位为厘米（cm²）

```python
area_cm2 = annular_area_cm2(diameter_cm=10, thickness_cm=0.5)
print(f"环形面积（cm²）：{area_cm2}")
```

#### 单位为米（m²）

```python
area_m2 = annular_area_m2(diameter_m=0.1, thickness_m=0.005)
print(f"环形面积（m²）：{area_m2}")
```

### 计算环形惯性矩

#### 单位为立方毫米（mm⁴）

```python
moment_mm4 = annular_moment_of_inertia_mm4(diameter_mm=100, thickness_mm=5)
print(f"环形惯性矩（mm⁴）：{moment_mm4}")
```

#### 单位为立方厘米（cm⁴）

```python
moment_cm4 = annular_moment_of_inertia_cm4(diameter_cm=10, thickness_cm=0.5)
print(f"环形惯性矩（cm⁴）：{moment_cm4}")
```

#### 单位为米（m⁴）

```python
moment_m4 = annular_moment_of_inertia_m4(diameter_m=0.1, thickness_m=0.005)
print(f"环形惯性矩（m⁴）：{moment_m4}")
```

### 计算环形回转半径

#### 单位为毫米（mm）

```python
radius_mm = annular_radius_of_gyration_mm(diameter_mm=100, thickness_mm=5)
print(f"环形回转半径（mm）：{radius_mm}")
```

#### 单位为厘米（cm）

```python
radius_cm = annular_radius_of_gyration_cm(diameter_cm=10, thickness_cm=0.5)
print(f"环形回转半径（cm）：{radius_cm}")
```

#### 单位为米（m）

```python
radius_m = annular_radius_of_gyration_m(diameter_m=0.1, thickness_m=0.005)
print(f"环形回转半径（m）：{radius_m}")
```

## 函数说明

### 基础函数

- `annular_area_*`: 计算环形面积。
- `annular_moment_of_inertia_*`: 计算环形惯性矩。
- `annular_radius_of_gyration_*`: 计算环形回转半径。

### 输入参数

- `diameter_*`: 环形外径。
- `thickness_*`: 环形厚度。

### 注意事项

- 所有输入参数必须为正数。
- 单位转换函数支持`mm`（毫米）、`cm`（厘米）、`m`（米）。

## 许可证

本项目使用 [MIT 许可证](LICENSE.txt)

## 联系方式

如果有任何问题或建议，请联系 [2727671635@QQ.COM]。

## 致谢

感谢所有对本项目做出贡献的人！