semvec/pypi-packages huggingface dataset:
alfinx-utils 0.3.9
HTTP headers auto detection tool.
Requires Python: >=3.8

alfinx_autho is a lightweight Python package designed to simplify authentication in FastAPI applications via HTTP headers. It automatically detects x-api-key and x-service-code headers from incoming requests and sends them, along with environment variables AUTHENTICATION_API_URL and X_SERVICE_ORIGIN_CODE, to an external authentication service for verification.

Installation

To install the package, run the following command:


pip install alfinx_utils

from alfinx import check_authentication,decrease_user_limit,save_data_on_mongo

Postman
Headers:

x-api-key: (sЙ™nin API aГ§arД±n)
x-service-code: (sЙ™nin xidmЙ™t kodun)
mseep-python-a2a 0.5.9
A comprehensive Python library for Google's Agent-to-Agent (A2A) protocol
Requires Python: >=3.6
Keywords: mseep, a2a, agent, ai, llm, interoperability, google, protocol, chatbot, openai, anthropic, claude, huggingface, mcp, model-context-protocol, aws-bedrock, langchain

Package managed by MseeP.ai
pidgen2 0.4.6
Tools for particle identification (PID) correction for LHCb detector
Requires Python: >=3.12

# PIDGen2 

## Introduction

PIDGen is a tool to resample PID variables in the full MC bases on distributions from calibration samples. PIDGen2 is a successor of the old PIDGen package. PIDGen2 is available via `lb-conda` and is supposed to replace the old PIDGen, both for Run 3 data, and for Run 1/Run 2. 
An analogous solution updating PIDCorr is under development (see [here](https://groups.cern.ch/group/lhcb-phys-pid-calibration/Lists/Archive/Flat.aspx?RootFolder=%2Fgroup%2Flhcb%2Dphys%2Dpid%2Dcalibration%2FLists%2FArchive%2Fresampling%20in%20PIDCalib2&FolderCTID=0x01200200428956A5A0587D4CA9DBE3C7098FA903)).

## Documentation

See [documentation pages here](https://gitlab.cern.ch/lhcb-rta/pidgen2/-/tree/master/doc). 

## Links

   * [PIDCalib2](https://gitlab.cern.ch/lhcb-rta/pidcalib2)
   * [old version documentation](https://twiki.cern.ch/twiki/bin/view/LHCb/MeerkatPIDResampling)
   * 12/10/21, Run 1/2 performance WG meeting, [PIDGen2](https://indico.cern.ch/event/1084372/#24-news-on-pidgen2)
   * 11/02/21, RTA WP4-5 meeting, [PIDGen in Run3](https://indico.cern.ch/event/997930/#3-new-pidgencorr)
   * [Twiki for the old PIDGen/PIDCorr for Run1/2](https://twiki.cern.ch/twiki/bin/view/LHCb/MeerkatPIDResampling)
   * Details about Run2 PID calibration samples are here: [ChargedPID twiki](https://twiki.cern.ch/twiki/bin/viewauth/LHCbPhysics/ChargedPID)
   * [LHCb-INT-2017-007 internal note](https://gitlab.cern.ch/lhcb-docs/INT/LHCb-INT-2017-007/blob/master/drafts/LHCb-INT-2017-007_v0r0.pdf) describing the PIDGen/PIDCorr procedure used in Run1/2.
eastmoneypy 0.2.0
python lib for operating eastmoney
Keywords: eastmoney python

[![image](https://img.shields.io/pypi/v/eastmoneypy.svg)](https://pypi.org/project/eastmoneypy/)
[![image](https://img.shields.io/pypi/l/eastmoneypy.svg)](https://pypi.org/project/eastmoneypy/)
[![image](https://img.shields.io/pypi/pyversions/eastmoneypy.svg)](https://pypi.org/project/eastmoneypy/)
[![build](https://github.com/zvtvz/eastmoneypy/actions/workflows/build.yaml/badge.svg)](https://github.com/zvtvz/eastmoneypy/actions/workflows/build.yml)
[![package](https://github.com/zvtvz/eastmoneypy/actions/workflows/package.yaml/badge.svg)](https://github.com/zvtvz/eastmoneypy/actions/workflows/package.yaml)

eastmoneypy是使用python来对[东方财富](http://www.eastmoney.com/)进行操作的一个库。  
目前在[zvt](https://github.com/zvtvz/zvt)中用于选股后自动添加到东财app，可参考该[issue](https://github.com/zvtvz/zvt/issues/48)
## 实现功能：
- [x] 管理组合
- [x] 添加A股标的到组合
- [x] 添加板块到组合
- [x] 添加港股
- [x] 添加美股
- [ ] 添加ETF


## 安装
```
pip3 install -U eastmoneypy
```

## 设置

打开网址并登录:http://quote.eastmoney.com/zixuan/

<p align="center"><img src='./key.png'/></p>

在用户目录里面，找到eastmoney-home/config.json，设置header和appkey
```
{
  "header": "parse your total header here",
  "appkey": "parse your appkey here"
}
```

## 使用

### 获取自选组合
```
In [1]: from eastmoneypy import *
In [2]: get_groups()
Out[2]:
[{'id': '130357503', 'name': '自选股', 'version': '322', 'source': 'web'},
 {'id': '348275488', 'name': 'inging', 'version': '17', 'source': 'web'},
 {'id': '215892391', 'name': '持仓', 'version': '118', 'source': 'mobile'},
 {'id': '327237386', 'name': '港股', 'version': '6', 'source': 'mobile'},
 {'id': '235046679', 'name': '刘世军', 'version': '10', 'source': 'mobile'},
 {'id': '327744616', 'name': 'etf', 'version': '22', 'source': 'mobile'},
 {'id': '350053618', 'name': 'tech', 'version': '0', 'source': 'web'},
 {'id': '350485893', 'name': '你好', 'version': '0', 'source': 'web'},
 {'id': '130357521', 'name': '持仓股', 'version': '1', 'source': 'mobile'}]
```

### 创建组合
```
In [3]: create_group('tmp')
Out[3]: (True, {'gid': '350518464', 'msg': '添加组合成功'})
```

### 添加股票到组合
```
>>> add_to_group('000999', group_name='tmp')
>>> add_to_group('BK1003', group_name='概念',entity_type='block')
>>> add_to_group('MSFT', group_name='tmp', entity_type='stockus')
>>> add_to_group('00700', group_name='tmp' entity_type='stockhk')
```

### 删除组合
```
In [5]: del_group('tmp')
```

## 联系方式

个人微信:foolcage 添加暗号:zvt  
<img src="https://raw.githubusercontent.com/zvtvz/zvt/master/docs/imgs/wechat.jpeg" width="25%" alt="Wechat">

------
微信公众号:  
<img src="https://raw.githubusercontent.com/zvtvz/zvt/master/docs/imgs/gongzhonghao.jpg" width="25%" alt="Wechat">

知乎专栏:  
https://zhuanlan.zhihu.com/automoney