semvec/pypi-packages huggingface dataset:
rekor_monitor_nyu_sscs 4.0
A Python monitor for Sigstore's Rekor transparency log.
Requires Python: >=3.13

# Python Rekor Monitor

This is a python monitor for Sigstore's transparency log, [Rekor](https://docs.sigstore.dev/logging/overview/). This project was developed as part of NYU's Software Supply Chain Security class.

## Installation & Requirements

You may either run `git clone` on this repository or download the latest release in [Releases](https://github.com/yongjae354/python-rekor-monitor/releases).

Please use `pip install -r requirements.txt` to install the dependencies on `requirements.txt`.

The python version used for this project is 3.13.2. Older versions may still work but might cause some issues.

## Usage

This program performs 3 main functions.
1. Fetches the latest checkpoint on the Rekor transparency log 
2. Verifies an inclusion of an entry to the transparency log.
3. Verifies the integrity of transparency log at any point of time.

First, to create an entry in the Rekor log, you must sign an artifact using Sigstore Cosign. 
1. Create an artifact file that you wish to sign.
2. [Install sigstore Cosign.](https://docs.sigstore.dev/cosign/system_config/installation/)
3. Sign your artifact using sigstore. You may do this by running `cosign sign-blob <your-artifact> --bundle <your-artifact.bundle>`
More documentation on cosign can be found here: https://docs.sigstore.dev/cosign/signing/signing_with_blobs/

To skip this step, you may alternatively use the `artifact.md` and [`artifact.bundle`](https://github.com/yongjae354/python-rekor-monitor/blob/main/artifact.bundle) files for the next steps.

### Fetching the latest checkpoint
`python main.py --checkpoint`

### Verifying inclusion for your entry
```shell
python main.py --inclusion <log-index> --artifact <your-artifact>
```
This command verifies the inclusion of your log entry. The log index can be found in your bundle file created by Cosign.

### Verifying consistency of the Rekor log
```shell
python main.py --consistency --tree-id <tree-id> --tree-size <tree-size> --root-hash <root-hash>
```

This command verifies that the checkpoint you provide is consistent with the latest checkpoint. The tree-id, tree-size and root-hash fields can be found in any checkpoint of the log, fetched by `--checkpoint`.

## Acknowledgements

The program is built on top of starter code from this template: https://github.com/mayank-ramnani/python-rekor-monitor-template
types-Pygments 2.19.0.20251121
Typing stubs for Pygments
Requires Python: >=3.9

## Typing stubs for Pygments

This is a [type stub package](https://typing.python.org/en/latest/tutorials/external_libraries.html)
for the [`Pygments`](https://github.com/pygments/pygments) package. It can be used by type checkers
to check code that uses `Pygments`. This version of
`types-Pygments` aims to provide accurate annotations for
`Pygments==2.19.*`.

This stub package is marked as [partial](https://typing.python.org/en/latest/spec/distributing.html#partial-stub-packages).
If you find that annotations are missing, feel free to contribute and help complete them.


This package is part of the [typeshed project](https://github.com/python/typeshed).
All fixes for types and metadata should be contributed there.
See [the README](https://github.com/python/typeshed/blob/main/README.md)
for more details. The source for this package can be found in the
[`stubs/Pygments`](https://github.com/python/typeshed/tree/main/stubs/Pygments)
directory.

This package was tested with the following type checkers:
* [mypy](https://github.com/python/mypy/) 1.18.2
* [pyright](https://github.com/microsoft/pyright) 1.1.407

It was generated from typeshed commit
[`3e1b90bb2d772781c2b6f318e0f44ef791cf5160`](https://github.com/python/typeshed/commit/3e1b90bb2d772781c2b6f318e0f44ef791cf5160).
types-ldap3 2.9.13.20251121
Typing stubs for ldap3
Requires Python: >=3.9

## Typing stubs for ldap3

This is a [type stub package](https://typing.python.org/en/latest/tutorials/external_libraries.html)
for the [`ldap3`](https://github.com/cannatag/ldap3) package. It can be used by type checkers
to check code that uses `ldap3`. This version of
`types-ldap3` aims to provide accurate annotations for
`ldap3==2.9.*`.

This package is part of the [typeshed project](https://github.com/python/typeshed).
All fixes for types and metadata should be contributed there.
See [the README](https://github.com/python/typeshed/blob/main/README.md)
for more details. The source for this package can be found in the
[`stubs/ldap3`](https://github.com/python/typeshed/tree/main/stubs/ldap3)
directory.

This package was tested with the following type checkers:
* [mypy](https://github.com/python/mypy/) 1.18.2
* [pyright](https://github.com/microsoft/pyright) 1.1.407

It was generated from typeshed commit
[`3e1b90bb2d772781c2b6f318e0f44ef791cf5160`](https://github.com/python/typeshed/commit/3e1b90bb2d772781c2b6f318e0f44ef791cf5160).
pnpq 0.2.1
Python library for laboratory devices often used in quantum networking and computing testbeds.
Requires Python: >=3.13
Keywords: optics, ozoptics, physics, quantum, thorlabs

# PnPQ

Plug and Play with Quantum!

PnPQ is a Python library for controlling optical devices used in quantum network testbeds.

## Features

Provides a blocking API that allows for control of Thorlabs and OzOptics devices including:
- Optical delay lines
- Optical switches
- Motorized polarization controllers
- Motorized rotation mounts

Uses [Pint](https://pint.readthedocs.io/en/stable/) to enable safe, transparent conversion between standard scientific units of measurement and each device's internal representation (e.g., converting motor steps into degrees).

Unlike competing libraries, PnPQ's multithreaded architecture enables constant logging of status updates during usage, even while other commands are being sent.

High unit test coverage and complete type safety.

## Documentation

The documentation can be found at [https://moonshot-nagayama-pj.github.io/PnPQ/](https://moonshot-nagayama-pj.github.io/PnPQ/).

## Example

Below is sample code that moves the paddles of a Thorlabs motorized polarization controller (mpc320) with serial number `123456789` to a position representing 160 degrees.
```py
  with AptConnection(serial_number="123456789") as connection:
    device = PolarizationControllerThorlabsMPC320(connection=connection)
    device.move_absolute(ChanIdent.CHANNEL_1, 160 * pnpq_ureg.degree)
```
The `with` syntax is necessary in order to properly open and close the connection object.

More information can be found in the [documentation's getting started guide](https://moonshot-nagayama-pj.github.io/PnPQ/).

## Contributing

Please see [`CONTRIBUTING.md`](CONTRIBUTING.md).

## Getting help

If you have a specific question about how to use our software that is not answered by the documentation, please feel free to create a GitHub issue.

## Citing

If our software significantly contributed to your research, we ask that you cite it in your publications.

The best way to do so is by using the metadata in [our `CITATION.cff` file](CITATION.cff).

GitHub automatically generates APA and BibTeX-style citations from this file and makes them available from the "Cite this repository" link on the right-hand side. However, these citations do not include our DOI, making it difficult to locate our software. Please try to include either:

* The [concept DOI](https://zenodo.org/help/versioning), which points to the software as a whole: `10.5281/zenodo.16886214`.
    - This can also be found in `CITATION.cff`.
* A version-specific DOI, which can be found by first looking up [our concept DOI](https://doi.org/10.5281/zenodo.16886214) and then checking the list of available versions at Zenodo. A new DOI is generated for each release.
GokuNEmu 0.1.10
10D emulator for the nonlinear matter power spectrum built on Goku simulations
Requires Python: >=3.10

# GokuNEmu: A Neural Network Emulator Based on the Goku Simulation Suite

**GokuNEmu** is a neural network (NN) emulator for the nonlinear matter power spectrum, trained on simulations from the **Goku** suite using the [T2N-MusE](https://github.com/astro-YYH/T2N-MusE) emulation technique.

---

## Installation

We recommend installing GokuNEmu via `pip`:

```bash
pip install gokunemu
```

> **Note for Intel Mac users:**  
> You may need to install (if not yet) `pytorch` via `conda` before installing GokuNEmu due to potential compatibility issues with `pip` wheels:
> ```bash
> conda install -c conda-forge pytorch
> ```

---

## Usage

Example notebooks are provided in the `examples/` directory:

- `example.ipynb`: Demonstrates how to use GokuNEmu for predicting the nonlinear matter power spectrum.
- `speed_benchmark.ipynb`: Benchmarks the runtime performance.

## Training data
The data used as the training set for the emulator are available at https://github.com/astro-YYH/T2N-MusE.

---

## Citation

If you use **GokuNEmu**, please cite:

- The main GokuNEmu paper: https://arxiv.org/abs/2507.07177  
- The Goku simulations: https://arxiv.org/abs/2501.06296  
- The T2N-MusE emulation method: https://arxiv.org/abs/2507.07184

---

## License

This project is licensed under the **MIT License**.
numcodecs 0.16.5
A Python package providing buffer compression and transformation codecs for use in data storage and communication applications.
Requires Python: >=3.11

Numcodecs
=========

Numcodecs is a Python package providing buffer compression and transformation
codecs for use in data storage and communication applications.

.. image:: https://readthedocs.org/projects/numcodecs/badge/?version=latest
    :target: https://numcodecs.readthedocs.io/en/latest/?badge=latest

.. image:: https://github.com/zarr-developers/numcodecs/workflows/Linux%20CI/badge.svg?branch=main
    :target: https://github.com/zarr-developers/numcodecs/actions?query=workflow%3A%22Linux+CI%22

.. image:: https://github.com/zarr-developers/numcodecs/workflows/OSX%20CI/badge.svg?branch=main
    :target: https://github.com/zarr-developers/numcodecs/actions?query=workflow%3A%22OSX+CI%22

.. image:: https://github.com/zarr-developers/numcodecs/workflows/Wheels/badge.svg?branch=main
    :target: https://github.com/zarr-developers/numcodecs/actions?query=workflow%3AWheels

.. image:: https://codecov.io/gh/zarr-developers/numcodecs/branch/main/graph/badge.svg
    :target: https://codecov.io/gh/zarr-developers/numcodecs
datakit-lite 0.0.1
Shared data utilities for Python data projects
Requires Python: >=3.12
Keywords: data, timer, library, utilities

# datakit-lite

[![PyPI](https://img.shields.io/pypi/v/datakit-lite.svg)](https://pypi.org/project/datakit-lite/)
[![Python versions](https://img.shields.io/pypi/pyversions/datakit-lite.svg)](https://pypi.org/project/datakit-lite/)
[![License: MIT](https://img.shields.io/badge/license-MIT-green.svg)](https://opensource.org/licenses/MIT)
[![CI Status](https://github.com/denisecase/datakit-lite/actions/workflows/ci.yml/badge.svg)](https://github.com/denisecase/datakit-lite/actions/workflows/ci.yml)
[![Docs](https://img.shields.io/badge/docs-mkdocs--material-blue)](https://denisecase.github.io/datakit-lite/)

> Helpful utilities for Python data projects

## Installation

```shell
uv add datakit-lite
```

Or add to pyproject.toml dependencies.

## Contributing

- See [CONTRIBUTING.md](./CONTRIBUTING.md)
- See [DEVELOPER.md](./DEVELOPER.md)
iflow-mcp_tushare-mcp 0.1.0
基于 Model Context Protocol (MCP) 的智能股票数据助手
Requires Python: >=3.8

# Tushare MCP Server

<div align="center">

基于 Model Context Protocol (MCP) 的智能股票数据助手

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Python Version](https://img.shields.io/badge/python-3.8%2B-blue)](https://www.python.org/downloads/)

</div>

## 🚀 核心功能

### 1. 股票基础信息查询
- 支持通过股票代码（如：000001.SZ）精确查询
- 支持通过股票名称（如：平安银行）模糊查询
- 返回信息包含：
  - 股票代码和名称
  - 所属行业和地区
  - 上市日期
  - 市场类型
  - 交易状态

### 2. 智能股票搜索
- 支持模糊关键词搜索
- 同时匹配股票代码和名称
- 支持行业关键词搜索（如："新能源"、"科技"）
- 返回匹配度最高的股票列表

### 3. 财务报表分析
- 支持查询上市公司利润表数据
- 灵活的时间范围查询（年报、季报、半年报）
- 多种报表类型支持（合并报表、母公司报表等）
- 主要指标一目了然：
  - 每股收益
  - 营业收入和成本
  - 期间费用
  - 利润指标
- 支持历史数据对比分析

### 4. 安全的Token管理
- 交互式Token配置流程
- 本地安全存储（加密保存）
- Token有效性自动验证
- 定期Token状态检查

## 🎯 使用场景

1. **投资研究**
   ```
   "帮我查找所有新能源相关的股票"
   "查询比亚迪的基本信息"
   "获取平安银行2023年的利润表"
   ```

2. **财务分析**
   ```
   "查看腾讯控股最新一期合并报表"
   "对比阿里巴巴近三年的利润变化"
   "分析小米集团的季度利润趋势"
   ```

3. **行业分析**
   ```
   "列出所有医药行业的股票"
   "查找深圳地区的科技公司"
   ```

4. **报表查询**
   ```
   "查询平安银行2023年第一季度的利润表"
   "获取比亚迪的母公司报表"
   "查看茅台近5年的年度利润表"
   ```

## 🛠️ 技术特点

- 基于MCP协议，支持与Claude等AI助手自然对话
- 实时连接Tushare Pro数据源
- 智能错误处理和提示
- 支持并发请求处理
- 数据缓存优化

## 📦 安装说明

### 环境要求
- Python 3.8+
- Tushare Pro账号和API Token

### 快速开始

1. 安装包
```bash
git clone https://github.com/zhewenzhang/tushare_MCP.git
cd tushare_MCP
pip install -r requirements.txt
```

2. 启动服务
```bash
python server.py
```

3. 在Claude中安装
```bash
mcp install server.py
```

## 🔑 首次配置

1. **获取Token**
   - 访问 [Tushare Token页面](https://tushare.pro/user/token)
   - 登录获取API Token

2. **配置Token**
   ```
   对Claude说：请帮我配置Tushare token
   ```

3. **验证配置**
   ```
   对Claude说：请检查token状态
   ```

## 📚 API参考

### 工具函数

1. **股票查询**
```python
get_stock_basic_info(ts_code="", name="")
# 示例：get_stock_basic_info(ts_code="000001.SZ")
```

2. **股票搜索**
```python
search_stocks(keyword="")
# 示例：search_stocks(keyword="新能源")
```

3. **利润表查询**
```python
get_income_statement(ts_code="", start_date="", end_date="", report_type="1")
# 示例：get_income_statement(ts_code="000001.SZ", start_date="20230101", end_date="20231231")
```

4. **Token管理**
```python
setup_tushare_token(token="")
check_token_status()
```

## 🔒 数据安全

- Token存储：用户主目录下的`.tushare_mcp/.env`
- 环境变量：使用python-dotenv安全管理
- 数据传输：HTTPS加密

## 🤝 贡献指南

欢迎提交Issue和Pull Request！

## 📄 开源协议

MIT License - 详见 [LICENSE](LICENSE) 文件
settleup-calculator 1.0.1
A custom library for calculating expense splits and settlements
Requires Python: >=3.8
Keywords: expense calculator split settlement finance

# SettleUp Calculator Library

A custom Python library for calculating expense splits and settlements.

## Features

- Calculate expense splits using multiple methods:
  - Equal split
  - Percentage-based split
  - Exact amount split
- Calculate net balances for users
- Generate minimum settlement transactions

## Installation

```bash
pip install settleup-calculator
```

Or install from source:

```bash
python setup.py install
```

## Usage

### Basic Expense Split

```python
from settleup_calculator import ExpenseCalculator, SplitMethod
from decimal import Decimal

# Equal split
splits = ExpenseCalculator.calculate_split(
    total_amount=Decimal("100.00"),
    participants=["user1", "user2", "user3"],
    split_method=SplitMethod.EQUAL
)
# Result: {"user1": Decimal("33.33"), "user2": Decimal("33.33"), "user3": Decimal("33.34")}

# Percentage split
splits = ExpenseCalculator.calculate_split(
    total_amount=Decimal("100.00"),
    participants=["user1", "user2"],
    split_method=SplitMethod.PERCENTAGE,
    participant_data={
        "user1": {"percentage": 60},
        "user2": {"percentage": 40}
    }
)
# Result: {"user1": Decimal("60.00"), "user2": Decimal("40.00")}

# Exact split
splits = ExpenseCalculator.calculate_split(
    total_amount=Decimal("100.00"),
    participants=["user1", "user2", "user3"],
    split_method=SplitMethod.EXACT,
    participant_data={
        "user1": {"amount": 50},
        "user2": {"amount": 30},
        "user3": {"amount": 20}
    }
)
# Result: {"user1": Decimal("50.00"), "user2": Decimal("30.00"), "user3": Decimal("20.00")}
```

### Calculate Settlements

```python
from settleup_calculator import SplitCalculator

expenses = [
    {
        "paid_by": "user1",
        "amount": Decimal("100.00"),
        "participants": ["user1", "user2"],
        "split_method": "equal"
    },
    {
        "paid_by": "user2",
        "amount": Decimal("50.00"),
        "participants": ["user1", "user2"],
        "split_method": "equal"
    }
]

balances = SplitCalculator.calculate_balances(expenses)
settlements = SplitCalculator.calculate_settlements(balances)
```

## License

MIT License
device-protocol-sdk 1.2.6
无人设备协议开发SDK
Requires Python: >=3.8

# Device Protocol SDK

无人机设备协议开发工具包，提供标准化接口实现多类型无人机设备的快速接入。

[![PyPI Version](https://img.shields.io/pypi/v/device-protocol-sdk)](https://pypi.org/project/device-protocol-sdk/)
[![Python Versions](https://img.shields.io/pypi/pyversions/device-protocol-sdk)](https://pypi.org/project/device-protocol-sdk/)

## 功能特性

- 🛠️ **协议无关抽象**：统一各类无人机设备的控制接口
- 🔌 **连接池管理**：自动维护设备连接，支持多设备并行控制
- 🚀 **实时状态推送**：内置WebSocket状态推送工具
- 🔍 **动态协议发现**：运行时自动加载用户协议实现

## 安装

```bash
pip install device-protocol-sdk
capiscio-a2a-security 0.1.1
DEPRECATED: Use 'capiscio-sdk' instead.
Requires Python: >=3.10

# ⚠️ DEPRECATED

This package (`capiscio-a2a-security`) has been renamed to **`capiscio-sdk`**.

Please update your `requirements.txt` or `pyproject.toml`:

```bash
pip uninstall capiscio-a2a-security
pip install capiscio-sdk
```

This package is now a hollow shell that installs `capiscio-sdk` as a dependency to ensure continuity, but you should update your references.