semvec/pypi-packages huggingface dataset:
bunnydns 0.1.0
Python SDK for the Bunny.net DNS API
Requires Python: >=3.10
Keywords: api, bunny, bunnycdn, dns, sdk

# bunnydns

[![PyPI version](https://badge.fury.io/py/bunnydns.svg)](https://pypi.org/project/bunnydns/)
[![Tests](https://github.com/franzs/bunnydns/actions/workflows/tests.yml/badge.svg)](https://github.com/franzs/bunnydns/actions/workflows/tests.yml)
[![Documentation](https://readthedocs.org/projects/bunnydns/badge/?version=latest)](https://bunnydns.readthedocs.io)
[![License: GPL](https://img.shields.io/badge/License-GPL-yellow.svg)](https://www.gnu.org/licenses/gpl-3.0.html)

A Python SDK for the [Bunny.net  DNS API](https://docs.bunny.net/api-reference/core/dns-zone/).

## Installation

```bash
pip install bunnydns
```

## Quick Start

```Python
#!/usr/bin/env python3

from bunnydns import BunnyDNS, DnsRecordInput, RecordType

client = BunnyDNS(access_key="your-api-key")

# List all zones
zones = client.list_dns_zones()
for zone in zones.items:
    print(zone.domain)

# Create a zone
zone = client.add_dns_zone(domain="example.com")

# Add a record
record = client.add_dns_record(
    zone_id=zone.id,
    record=DnsRecordInput(
        type=RecordType.A,
        name="www",
        value="1.2.3.4",
        ttl=300,
    ),
)

# Export zone file
zone_file = client.export_dns_zone(zone_id=zone.id)

# Enable DNSSEC
ds = client.enable_dnssec(zone_id=zone.id)
print(ds.ds_record)
```

## Documentation

Full documentation is available at bunnydns.readthedocs.io.

## License

GPL License. See [LICENSE](./LICENSE) for details.
easy-recon-sdk 1.0.1
Easy Recon SDK for Python
Requires Python: >=3.7

# Easy Recon SDK for Python

Easy Recon 是一个轻量级的对账 SDK，支持实时对账和定时对账策略，旨在帮助开发者快速集成标准化的核账能力。

## 核心特性

- **实时对账**: 在支付和通知及退款发生时立即进行对账，保证数据一致性。
- **定时对账**: 支持后台定时任务触发的离线核账，作为兜底机制。
- **退款支持**: 支持全额退款和部分退款的核账逻辑。
- **数据库无关**: 基于标准 SQL 构建，兼容 MySQL 和 PostgreSQL。
- **自动建表**: 支持 SDK 初始化时自动创建所需的数据库表结构。

## 安装

```bash
pip install easy-recon-sdk
```

## 快速开始

### 1. 初始化配置

初始化 SDK 并配置数据库连接信息。建议开启自动建表功能以便快速上手。

```python
from config.recon_config import ReconConfig
from core.easy_recon_factory import EasyReconFactory

config = ReconConfig(
    db_host="localhost",
    db_port=3306,
    db_user="root",
    db_password="password",
    db_name="easy_recon",
    auto_create_table=True # 首次运行时自动创建表
)

# 创建 API 客户端实例
easy_recon = EasyReconFactory.create(config)
```

### 2. 订单对账 (Reconcile Order)

在发起支付或分账请求时调用：

```python
from entity.recon_order_split_sub import ReconOrderSplitSub

# 定义分账明细
split_subs = [
    ReconOrderSplitSub(
        sub_order_no="SUB_001",
        merchant_id="M_001",
        split_amount=100.00
    )
]

# 执行实时对账
success = easy_recon.recon_order(
    order_no="ORD_20231027001",
    pay_amount=100.00,
    platform_income=0.00,
    pay_fee=0.00,
    split_details=split_subs,
    pay_status=1,   # 1: 成功
    split_status=1, # 1: 成功
    notify_status=0 # 0: 处理中
)

if success:
    print("对账记录创建成功")
else:
    print("对账记录创建失败")
```

### 3. 处理通知 (Handle Notification)

当收到下游（如网关或子商户系统）的异步通知时调用：

```python
easy_recon.recon_notify(
    order_no="ORD_20231027001",
    merchant_id="M_001",
    notify_url="http://callback.url",
    notify_status=1, # 1: 成功
    notify_result="Success"
)
```

### 4. 退款对账 (Reconcile Refund)

处理退款业务时调用：

```python
easy_recon.recon_refund(
    order_no="ORD_20231027001",
    refund_amount=50.00,
    refund_time=datetime.now(),
    refund_status=1, # 1: 成功
    split_details=...
)
```

## 环境要求

- Python 3.7+
- MySQL 或 PostgreSQL 数据库
mpltoolbox 26.2.0
Interactive tools for Matplotlib
Requires Python: >=3.11

[![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-2.1-4baaaa.svg)](CODE_OF_CONDUCT.md)
[![PyPI badge](http://img.shields.io/pypi/v/mpltoolbox.svg)](https://pypi.python.org/pypi/mpltoolbox)
[![Anaconda-Server Badge](https://anaconda.org/conda-forge/mpltoolbox/badges/version.svg)](https://anaconda.org/conda-forge/mpltoolbox)
[![License: BSD 3-Clause](https://img.shields.io/badge/License-BSD%203--Clause-blue.svg)](LICENSE)
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/scipp/mpltoolbox/HEAD?labpath=docs%2Fdemo.ipynb)

# Mpltoolbox

## About

Mpltoolbox aims to provide some basic tools (that other libraries such as bokeh or plotly support) for drawing points, lines, rectangles, polygons on Matplotlib figures.

There are many interactive examples in the Matplotlib documentation pages,
but the code snippets are often long and potentially not straightforward to maintain.

With `mpltoolbox`, activating these tools should (hopefully) just be a one-liner.

## Installation

```sh
python -m pip install mpltoolbox
```

## Examples

```Py
import matplotlib.pyplot as plt
import mpltoolbox as tbx
%matplotlib widget
```

### Points

```Py
fig, ax = plt.subplots()
ax.set_xlim(0, 100)
ax.set_ylim(0, 100)

points = tbx.Points(ax=ax)
```

![points](https://mpltoolbox.readthedocs.io/en/latest/_images/points_4_0.png)


### Lines

```Py
fig, ax = plt.subplots()
ax.set_xlim(0, 100)
ax.set_ylim(0, 100)

lines = tbx.Lines(ax=ax, n=2)
```

![lines](https://mpltoolbox.readthedocs.io/en/latest/_images/lines_4_0.png)

### Rectangles

```Py
fig, ax = plt.subplots()
ax.set_xlim(0, 100)
ax.set_ylim(0, 100)

rectangles = tbx.Rectangles(ax=ax)
```

![rects](https://mpltoolbox.readthedocs.io/en/latest/_images/rectangles_4_0.png)

### Ellipses

```Py
fig, ax = plt.subplots()
ax.set_xlim(0, 100)
ax.set_ylim(0, 100)

ellipses = tbx.Ellipses(ax=ax)
```

![ellipses](https://mpltoolbox.readthedocs.io/en/latest/_images/ellipses_4_0.png)
cirque 1.1.0
Python client for the communication with the SDR platform. The client consists of the api to the individual modules on the platform and generates the grpc files. Additionally, some utility files for postprocessing are part of this program.
Requires Python: >=3.9

# cirque
Communication Interface to Readout Electronics of QUantum Experiments
This repository provides a comfortable way of communication with the SDR-Systems developed by KIT-IPE.
It allows setting up the connection with the ipe-servicehub and abstracts the grpc-Calls for the endpoints.

## Important note
This package is only useful in combination with the Quantum Interface Controller hardware system developed at KIT-IPE.
This package is a wrapper around the python stubs auto-generated from the protobuf-messages. It is intended to offer a more user-friendly way of communicating with the Quantum Interface Controller Systems.

## Installation

To install `cirque` use

```shell
pip install cirque
```

### Local installation

> [!note]
> Local installation is only possible with access to the internal gitlab repository at gitlab.kit.edu

To install the package and make it available globally using `import cirque` globally, clone the repository and call
```shell
pip install -e .
```
from within this directory.


## Usage

The connection to the Quantum Interface Controller system can be set up as follows:

```shell
from cirque import servicehubutils

# Note: currently only IPv4 adresses are supported
platform_ip = "127.0.0.1"
con = servicehubutils.FPGAConnection(ip=platform_ip, port=50058)
```

the `con` object can now be used to communicate with the individual modules, as described in the documentation.

```shell
from cirque import pimc

# Instantiate platform information and management core
my_pimc = pimc.PIMC(con)
platform_ready = my_pimc.get_platform_ready()
```


## LICENSE
cirque is released under the terms of the **GNU General Public License** as published by the Free Software Foundation, either version 3 of the License, or any later version.
Please see the [COPYING](COPYING) files for details.