semvec/pypi-packages huggingface dataset:
curl-to-json 0.1.0
Convert curl command to json data
Requires Python: <4.0,>=3.8

## Trans curl request to  json data

将参数转化为json 的时候尽量使用 -- 之后的值，作为字典的键。
这个库的目的是将curl 发送请求的参数转化为json 格式，方便在python 中使用。

curl 功能很强大，支持的参数也很多，这里只做了部分的解析

重点放在curl HTTP发送请求的方面.

其他一些特性，--ipv4,--ipv6,本地文件读取，指定dns 寻址服务器
DoH,ftp 等协议暂未支持

支持的参数

- `-X`, `  --request` 支持的请求方法，

- `--http2` 是否使用http2 协议 默认为否

- `-d`,`--data` 支持, 支持在一行命令中多次使用`-d` 参数，此时HTTP 请求头中
  `Content-Type : application/x-www-form-urlencoded`

  使用该参数，请求自动转化为POST.

- `-H`,`--header`  添加HTTP请求头,支持多行

- `-I`,`--head` 发送HEAD请求，并打印header，支持

- `-s`,`--silent`, 不输出任何东西，只返回HTTP 头

- `-v`, `--verbose` 输出通信的整个过程，用于调试

- `-b`, `--cookie` cookie 支持多个-b 参数，不支持文件读取

- `-A`, `--user-agent` 设置User-Agent,curl 默认的User-Agent 为 curl/version,本项目默认为空

- `--compressed` 是否压缩请求

- `-k`, `--insecure` 允许不验证服务器的证书

- `-u`, `--user` 用户名:密码

- `-L`, `--location` 允许自动跟随重定向

- `-I`,`--include` 打印头信息

- `-x`，`--proxy` 使用代理 代理 格式为：hostname:port，如果没有scheme 默认使用http

- `-U`, `--proxy-user` 代理用户名密码 ,格式为：username:password 如果有会自动将账号密码添加到代理url 中

- `-u`, `--user` basic 认证，格式为：username:password，输出为headers 中的Authorization

- `--connect-timeout` 连接超时时间

- `--referer` 请求头中的referer

## usage

1. 命令行中使用
```shell
python -m curl_to_json  curl_to_json curl -X GET http://example.com
```
2. 也可以直接使用 
```shell
curl_to_json curl -X GET http://example.com
```

3. 也可以使用 以下格式
```shell
curl_to_json "curl -X GET http://example.com"
```

4. 在python 代码中使用
```python
from curl_to_json import parse

cmd = 'curl -X GET http://example.com'

print(parse(cmd))

```

       
## Reference

*1. [curl 的用法指南](https://www.ruanyifeng.com/blog/2019/09/curl-reference.html)*

*2. [Linux命令大全-curl](https://hezhiqiang.gitbook.io/linux/ming-ling/curl)*

*3. [Uncurl](https://github.com/spulec/uncurl)*

*4. [curl 在线手册](https://man.cx/curl)*
PiMemorizeGame 0.4
A game for learning Pi digits through various modes

# PiGame

PiGame is a fun and educational game designed to help you learn the digits of Pi through various game modes.

## Features
- **Learning Mode**: Explore Pi digits in a structured way.
- **Training Mode**: Train your memory in efficient way.
- **Challenge Mode**: Test your memory and speed.
- **High Scores**: Save and compare your best scores.

## Installation
### Install the game via pip:
```
pip install PiMemorizeGame
```
### Run executable script
```
pimemorize
```
strik0rium 0.0.2
A placeholder package for future development
Requires Python: >=3.6

# Strik0rium

**Strik0rium** is a placeholder package reserved for future development. 

This package currently does not provide any functionality, but it serves as a reserved name for potential future projects.

## About

Strik0rium may evolve into a Python library designed for advanced computational tasks, data analysis, or even creative applications. Stay tuned for updates!

## License

This package is licensed under the [MIT License](LICENSE).
flask-uwsgi-ws 0.4.0
Flask WebSocket extension for uWSGI
Requires Python: >=3.7
Keywords: flask, uwsgi, websocket, websockets, ws, async

# Flask-uWSGI-WS

A high-performance WebSocket extension for Flask applications powered by uWSGI.
Compatible with Python 3.12 and newer versions.

## Example Usage

```python
from flask import Flask
from flask_uwsgi_ws import WebSocket

app = Flask(__name__)
ws = WebSocket(app)

@ws.route('/echo')
def echo(ws):
    while True:
        msg = ws.receive()
        ws.send(msg)

if __name__ == '__main__':
    app.run(debug=True, threads=16)
```

## Installation

To install Flask-uWSGI-WS, you'll need to install uWSGI with SSL support first:

### For Ubuntu/Debian:
```bash
CFLAGS="-I/usr/include/openssl" LDFLAGS="-L/usr/lib/x86_64-linux-gnu" UWSGI_PROFILE_OVERRIDE=ssl=true pip install --no-cache-dir uwsgi --no-binary :all:
```

### For macOS (Apple Silicon):
```bash
CFLAGS="-I/opt/homebrew/opt/openssl@3/include" \
LDFLAGS="-L/opt/homebrew/opt/openssl@3/lib" \
UWSGI_PROFILE_OVERRIDE=ssl=true pip install --no-cache-dir uwsgi --no-binary :all:
```

Then install Flask-uWSGI-WS:
```bash
pip install flask-uwsgi-ws
```

## Deployment

You can use uWSGI's built-in HTTP router to get up and running quickly:

```bash
$ uwsgi --master --http :8080 --http-websockets --wsgi-file app.py
```

...or call app.run, passing uwsgi any arguments you like:

```python
app.run(debug=True, host='localhost', port=8080, master=true, processes=8)
```

### Using with Gevent

uWSGI supports several concurrency models, including Gevent. To use Gevent, import `GeventWebSocket`:

```python
from flask_uwsgi_ws import GeventWebSocket
```

Then run uWSGI with the gevent loop engine:

```bash
$ uwsgi --master --http :8080 --http-websockets --gevent 100 --wsgi-file app.py
```

...or in your code:

```python
app.run(debug=True, gevent=100)
```

## Development

To use Flask's interactive debugger, install werkzeug's DebuggedApplication middleware:

```python
from werkzeug.debug import DebuggedApplication
app.wsgi_app = DebuggedApplication(app.wsgi_app, True)
```

Then run uWSGI with a single worker:

```bash
$ uwsgi --master --http :8080 --http-websockets --wsgi-file --workers 1 --threads 8 app.py
```

If you use `app.run(debug=True)`, Flask-uWSGI-WS will do this automatically.

## WebSocket API

Flask-uWSGI-WS handles the WebSocket handshake and provides a websocket client with the following methods:

- `websocket.recv()` - Receive a message
- `websocket.send(msg)` - Send a message
- `websocket.send_binary(msg)` - Send a binary message
- `websocket.recv_nb()` - Non-blocking receive
- `websocket.send_from_sharedarea(id, pos)` - Send from shared memory area
- `websocket.send_binary_from_sharedarea(id, pos)` - Send binary from shared memory area