semvec/pypi-packages huggingface dataset:
ZeroXRequests 0.2.0
A description of your package
License: MIT
Requires Python: >=3.6

# ZeroXRequests
Raw Requests for python - without client-side security checking

## Intro
With this lib, you can send invalid HTTP characters, invalid headers, duplicated headers, invalid methods, invalid pathnames, etc ...

Very useful for HTTP Request Smuggling vulnerabilities or others exploits that could not be exploited with HTTP libs for devs.

## How to use

git clone the repo into your project


**Method send_raw**:

*send_raw(raw_request, port, host, connection_timeout, use_ssl)*:

```
from ZeroXRequests import RawRequests

response = RawRequests.send_raw('GET / HTTP/1.1\r\nHost: www.example.com\r\n\r\n', 443, 'www.example.com', 7, True)

print(response)
```


**Method send** (Like python request but without security checking):

*send(url, method, headers, body, timeout)*:

```
from ZeroXRequests import RawRequests

response = send('https://www.example.com', 'GET', {'User-Agent':'ZeroXRequests'}, '', 10)

print(response)
```
nonebot-plugin-shutdown-hook 0.1.2
高优先级关闭信号钩子插件
License: MIT
Requires Python: >=3.9
Keywords: nonebot, plugin, shutdown, hook

# nonebot-plugin-shutdown-hook

该插件提供一个高优先级关闭信号钩子,用于在关闭时,Bot断开之前执行一些操作
例如对所有未关闭的Matcher进行回复,修改Bot昵称或签名为已关机等

在 nonebot.run() 之前调用此函数, 用 on_shutdown_before 装饰需要执行的函数即可

通过修改 Server.handle_exit，在 handle_exit 函数接收到中止信号后并不立刻中止，而是将信号存储在 SIGNALS_LIST，并立刻执行注册的钩子函数。钩子函数执行完毕后，依次从 SIGNALS_LIST 取出信号，重新传入原 handle_exit 函数处理。

此钩子优先级非常高，如果在钩子时发生错误，可能会导致程序无法正常关闭。

## 安装

```shell
pip install nonebot-plugin-shutdown-hook
```

## 使用

### 导入

```python
from nonebot-plugin-shutdown-hook import override_uvicorn_shutdown_hooks, on_shutdown_before
```

### 创建


```python
# bot.py 文件
...
override_uvicorn_shutdown_hooks()
...
if __name__ == "__main__":
    nonebot.run()
...
```


```python
@on_shutdown_before()
async def func():
    # 执行一些操作
    ...
```
django-cefran 0.0.5
Render Fabrique CEFRAN into a generic Django app
License: MIT
Requires Python: <4.0,>=3.8
Keywords: django

===============
Django-Cefran
===============

Django-Cefran is an attempt at rendering a generique version of Django-CEFRAN. 

Documentation
-------------

It is my conviction that the work done in DSFR (`"Système de design de l’État français" <https://www.systeme-de-design.gouv.fr/>`_)  and as visible in the Django-CEFRAN Python Package (`documentation (in French) <https://numerique-gouv.github.io/django-cefran/>`_) is fantastic. The only problem is that the website design itself is the French Government, and not any lamba website. 

So, unless you want the French Foriegn Legion knocking at your door (actually, it wouldn't be them, but they are well known enough to illustrate my point), we need the grace to accept a very intentional work to bettering web-mastery, readability and accessibility by all. 

France, though its' DiNum, or, actually I won't get into it, just be aware that French coolness also goes to OpenSource communities, has made something called "(`sites-failes <https://github.com/numerique-gouv/sites-faciles>`_)" as a Wagtail plugin. I think it's great! That's why Cefran.

As the French Government uses django-cefran for sites-faciles, let's use django-cefran for "(`wagtail-facile <https://github.com/chris2fr/wagtail-cefran>`_)".

Requirements
------------
(from django-cefran)

Tested with Python 3.8 to 3.11 and Django 3.2 to 5.0. Per `vermin <https://github.com/netromdk/vermin>`_, it should work with Python >= 3.6, and it should work with old versions of Django too.

Note: Only supported versions of Django and Python are supported by this project. You can check the supported versions and their end of life on the following pages:

- `Python <https://devguide.python.org/versions/>`_
- `Django <https://www.djangoproject.com/download/#supported-versions>`_

Quick start
-----------
(from django-cefran)

See the `INSTALL.md <INSTALL.md>`_ file.