semvec/pypi-packages huggingface dataset:
materialshapes 0.3
Material shapes in pure python.
Requires Python: >3.8

# materialshapes-python
<p align="center">
  <img src="https://firebasestorage.googleapis.com/v0/b/design-spec/o/projects%2Fgoogle-material-3%2Fimages%2Fm0c35amt-1.png?alt=media&token=ab563092-217d-4d71-986d-1b4d87b5ba3e" width="50%">
</p>

A complete Python port of the official Material Design 3 shape system from Android. It includes rounded polygon generation, shape morphing, and smooth transitions based on Google's original Java source.

Uses pycairo for 2D graphics rendering. Can be used with Python GUI libraries. A Kivy widget is already included.

[Material Design Shape System](https://m3.material.io/styles/shape/overview-principles)


## Docs

There is no separate documentation yet.

The examples serve as the documentation and cover all major features.
Check them out to understand usage and integration.

## Install

You can easily install it from pip by executing:
```console
pip3 install materialshapes --upgrade
```

## Examples


File: `kivy.py`

Run using:
```
python3 -m examples.kivy
```

https://github.com/user-attachments/assets/31c2ae03-9be8-4a34-b95d-b7e7219773b1


File: `loading_indicator.py`

Run using:
```
python3 -m examples.loading_indicator
```


https://github.com/user-attachments/assets/c52553f1-c4f0-4af1-8360-f72acfd78949
leaf-hello-world 0.1.0
Leaf Adapter with a basic Hello World function. Creating a hello world message every x interval.
Requires Python: <4.0,>=3.12

# Laboratory Equipment Adapter Framework - LEAF

This is a demo adapter for the Laboratory Equipment Adapter Framework (LEAF). It is a simple adapter that will be used to showcase how an adapter can be created and integrated into the LEAF framework.

## Installation

To install the adapter, you can use the following command:

```bash
# Clone the repository...

# Install the adapter into your python environment
poetry build
pip install dist/leaf_hello_world-0.1.0.tar.gz
```

## Usage

Once installed within `leaf` you can add a new equipment to the (minimal) config file.

```
EQUIPMENT_INSTANCES:
  - equipment:
      adapter: hello_world
      data:
        instance_id: example_equipment_id1
        institute: example_equipment_institute1
      requirements:
        interval: 11
OUTPUTS:
  - plugin: MQTT
    broker: test.mosquitto.org
    port: 1883
```

You can then start the leaf program and it should sent a 'hello world' message every 11 seconds.
binformatlib 6.3.0
A beginner-friendly binary format packing/unpacking module with full hex and byte control.
Requires Python: >=3.6


# binformatlib

**Version**: 6.3.0  
**Author**: jony eldry  
**License**: MIT

`binformatlib` is a lightweight and beginner-friendly Python library for packing and unpacking binary files with full control over bytes and hexadecimal representations. It supports recursive nested field structures, custom EOF markers, and encodes the full file as hex for maximum readability and integrity.

---

## ✨ Features

- Convert values (strings, integers, bytes, lists, etc.) into binary-safe formats
- Pack structured data dictionaries into hex-encoded binary files
- Unpack hex-encoded binary files back into nested Python dictionaries
- Flat field key formatting using dot notation (e.g., `header.version`)
- Optional custom EOF marker
- Simple to use and extend

---

## 📦 Installation

You can install `binformatlib` via `pip`:

```bash
pip install binformatlib
```

---

## 🚀 Quick Start

### Packing a File

```python
from binformatlib import pack

format = {
    "meta": {
        "version": 1,
        "author": "jony"
    },
    "data": None,
    "end of file": "<EOF>"
}

pack(format, "output.bin", "Hello, World!")
```

### Unpacking a File

```python
from binformatlib import unpack

data = unpack("output.bin")
print(data)
```

---

## 🔧 Internals

### `_to_bytes(value)`

Converts input of type `str`, `int`, `bytes`, `list`, or `None` into a `bytes` object.

### `_flatten_fields(dict, prefix='')`

Recursively flattens nested dictionaries into key-value pairs using dot notation.

### `pack(format: dict, output_file: str, data: str) -> bool`

Serializes and hex-encodes a structured dictionary with data into a `.bin` file.

### `unpack(input_file: str) -> dict`

Reconstructs the original nested dictionary from a packed `.bin` file.

### `tohex(value)`

Converts a string to its hexadecimal representation.

### `fromhex(hex_string: bytes)`

Converts a hexadecimal-encoded bytestring back to raw bytes.

---

## 🧪 Example

```bash
$ python binformatlib.py
{'data': b'test'}
```

---

## 📁 File Format

Each line in the binary file follows the format:

```ini
key=hexvalue

```

Where `key` can use dot-notation (e.g., `meta.version`) and `hexvalue` is the hex string of the binary-encoded data.

---

## 🛠 Development

Clone and run locally:

```bash
git clone https://github.com/yourusername/binformatlib.git
cd binformatlib
python binformatlib.py
```

---

## 📄 License

This project is licensed under the MIT License.

---

## ✉️ Contact

**Author**: jony eldry  
**Email**: umayashinderu@gmail.com
transfx 0.0.4
transFX is a Python package
Requires Python: >=3.12

# transFX

一个简单易用的 Python 数学变换和工具包。

## 安装

```bash
pip install transfx
```

或者使用 uv：

```bash
uv pip install transfx
```

## 快速开始

```python
import transfx

# 创建 TransFX 实例
fx = transfx.TransFX()
print(f"版本: {fx.get_version()}")

# 数学运算
print(transfx.add(1, 2, 3))      # 6
print(transfx.sum(10, 20, 30))   # 60
print(transfx.sub(100, 25, 15))  # 60
print(transfx.mul(2, 3, 4))      # 24
print(transfx.div(120, 2, 3))    # 20.0

# 欢迎消息
transfx.hello()  # Hello, World! This is from transFX Welcom Package.
```

## 功能特性

- **数学运算**: 支持加法、减法、乘法、除法运算
- **类型安全**: 严格的类型检查和错误处理
- **简单易用**: 直观的 API 设计
- **轻量级**: 无外部依赖

## API 文档

### 数学函数

- `add(*args)`: 计算所有参数的和
- `sum(*args)`: 计算所有参数的和（与 add 相同）
- `sub(*args)`: 从第一个参数中依次减去后面的参数
- `mul(*args)`: 计算所有参数的乘积
- `div(*args)`: 从第一个参数开始依次除以后面的参数

### 工具函数

- `hello()`: 显示欢迎消息

### 主类

- `TransFX()`: 主要的 TransFX 类
  - `get_version()`: 获取版本信息

## 许可证

GPL-3.0 License