semvec/pypi-packages huggingface dataset:
authentication-factory 0.0.5
Implementation for Microsoft Oauth2 authentication
License: MIT
Requires Python: <=3.12.4,>=3.9
Keywords: streamlit, flask, microsoft, json web token, oauth2, authentication

# authentication-factory

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![PyPI](https://img.shields.io/pypi/v/authentication-factory.svg)](https://pypi.org/project/authentication-factory)


**Note: This is inital version of the factory with support of Microsoft OAuth2.0 only with Streamlit.**


authentication-factory is a simple python implementation of authentication using below listed authentication mechanism.

   * Microsoft OAuth2.0

This extension helps to implement authentication solutions and provides
login url, logout url and id token.
These can be used in python web application like Streamlit, Flask etc.

</br>
</br>

## Getting Started
-----

</br>

## Installation

```bash
pip install authentication-factory
```

</br>

### Usage
-----
   * [Streamlit](streamlit-example.md)


</br>
</br>

### Development Setup
-------
#### Using virtualenv

```bash
python3 -m venv venv
source env/bin/activate
pip install .
```
</br>
</br>

### Contributing
-----

1. Fork repo- https://github.com/shrivastava-v-ankit/authentication-factory.git
2. Create your feature branch - `git checkout -b feature/name`
3. Add Python test (pytest) and covrage report for new/changed feature.
4. Commit your changes - `git commit -am "Added name"`
5. Push to the branch - `git push origin feature/name`
6. Create a new pull request
FuxuanTracer 0.0.2a0
A useful logging library for Python
License: MIT


# FuxuanTracer

FuxuanTracer是一个基于Python的开源网络流量监控工具，它能够抓取网络数据包，并解析出网络连接的IP地址, 端口等信息, 方便用户进行网络流量监控。

## 安装

```bash
pip install FuxuanTracer
```

## Get Started

```python
from FuxuanTracer import DataPackAnalyzer

ins = DataPackAnalyzer()

devices = list(ins.getAvaliableDevice().keys())

# 我们选择第4个，因为那个是我的以太网设备
choose_divice =  devices[4]

# 设置过滤器, 注意: 每次调用 setFilter 都会重置过滤规则
ins.setFilter(WebProtocol="HTTPS", Port=[443])

# 抓取10个包
ins.catchDataPak(choose_divice, 100)

# 解析抓取的包
ins.analyze_packets(True,"result.log",False,True)
```

## 参数说明(analyze_packets)

- 1. True ,代表写入文件
- 2. result.log , 写入文件的文件名
- 3. False , 代表不用json格式写入文件
- 4. True , 代表应用过滤器

## 更新异步抓取数据包,可以无限抓取数据包

```python
# 异步抓取数据包

ins = DataPackAnalyzer()

devices = list(ins.getAvaliableDevice().keys())
choose_divice =  devices[4]
ins.setFilter(WebProtocol="HTTPS", Port=[443])

# 定义一个main函数，异步执行
async def main(ins=ins, choose_divice=choose_divice):
    await ins.AsyncProcess(
        use_device=choose_divice,
        write_to_file=True,
        file_path="result.log",
        json_fmt=False,
        enqueue=True
    )

# 异步执行main函数
asyncio.run(main())
```
happyxpy 4.4.1
HappyX web framework bindings for Python 🐍
License: MIT

<div align="center">

# HappyX

### Python Bindings For HappyX Web Framework 🔥

![Python language](https://img.shields.io/badge/>=3.7.x-1b1e2b?style=for-the-badge&logo=python&logoColor=f1fa8c&label=Python&labelColor=2b2e3b)

</div>


## Getting Started ✌

### Installing 📥

You can install HappyX via `pypi`:
```bash
pip install happyxpy
```

## Usage 🔌

### Hello World 👋

```py
from happyxpy import Server


app = Server('127.0.0.1', 5000)  # host and port are optional params


@app.get('/')
def home():
    return "Hello world!"


app.start()
```


### JSON/HTML/File Responses 🛠

```py
from happyxpy import Server, JsonResponse, HtmlResponse, FileResponse


app = Server()


@app.get('/json')
def json_resp():
    return JsonResponse(
      {'key': 'value', 'arr': [1, 2, 3, 4, 5]},
      status_code=200  # also available headers: dict param
    )


@app.get('/html')
def html_resp():
    return HtmlResponse(
      '<h1>HTML Response!</h1>',
      status_code=200  # also available headers: dict param
    )


@app.get('/file')
def file_resp():
    return FileResponse('my_cool_icon.png')


app.start()
```

Read more in [User Guide](https://hapticx.github.io/happyx/#/guide/)
py-output-compare 2.2.28
a script that help compare output of 2 python script, I apply this to help grading student code compare to teacher
License: MIT

# py_output_compare

a python package that create to help compare output of 2 python script, I apply this to help grading student code compare to teacher

# note to myself

## to make it auto login to twine

create `credential.txt` file then add this content to file

```
username=__token__
password=pypi-xxxxx
```