semvec/pypi-packages huggingface dataset:
asgi-dispatcher-middleware 1.0.0
Middleware to Dispatch to multiple ASGI applications, extracted from hypercorn.
Requires Python: ~=3.6

# asgi-dispatcher-middleware

Middleware to Dispatch to multiple ASGI applications, extracted from hypercorn.

## Dispatch to multiple ASGI applications

It is often useful serve multiple ASGI applications at once, under differing root paths.
This middleware allows multiple applications to be served on different mounts.

The `DispatcherMiddleware` takes a dictionary of applications keyed by the root path.
The order of entry in this dictionary is important, as the root paths will be checked in
this order. Hence it is important to add `/a/b` before `/a` or the latter will match
everything first. Also note that the root path should not include the trailing slash.

An example usage is to to serve a graphql application alongside a static file serving
application. Using the graphql app is called `graphql_app` serving everything with the
root path `/graphql` and a static file app called `static_app` serving everything else
i.e. a root path of `/` the `DispatcherMiddleware` can be setup as,

```{.sourceCode .python}
from asgi_dispatcher_middleware import DispatcherMiddleware

dispatcher_app = DispatcherMiddleware({
    "/graphql": graphql_app,
    "/": static_app,
})
```

which can then be served by any asgi framework,

```{.sourceCode .shell}
$ hypercorn module:dispatcher_app
$ uvicorn module:dispatcher_app
```

## See also

- hypercorn: <https://pgjones.gitlab.io/hypercorn/how_to_guides/dispatch_apps.html>
DalineUnit 0.0.69
daline unit generator and runner
Keywords: daline Unit

# 发布版打包步骤
0. 切换python版本至python37
1. 在pythonTB/DalineUnit中，运行pycPackage.py将文件打包为pyc
2. 将打所有pyc文件拷贝至当前目录下DalineUnit文件夹下，所有需要的文件也拷到相同目录（比如目前的src文件夹，也会打包至whl中）
3. 修改setup中version版本号，注意上传到pypi中的只能增加
4. 命令行运行python setup.py bdist_wheel --python-tag=py37，生成dist\DalineUnit-0.0.44-py37-none-any.whl
5. 切换python版本至python36，重复0-4
6. 命令行运行twine upload dist/*，上传至pypi

# 打包本地测试版  -pyc
+ 和上面一样，只是不允许6上传步骤

# 打包本地调试版  -.py
上述的打包方法都是pyc文件，无法调试，可以将python源文件打包成whl后，安装，然后可以调试
0. 将所有需要的python源文件拷贝至当前目录下DalineUnit文件夹下
1. 命令行运行python setup.py bdist_wheel --python-tag=py37，生成dist\DalineUnit-0.0.44-py37-none-any.whl
2. 运行pip install E:\Code\DalineUnitPackage\dist\DalineUnit-0.0.44-py37-none-any.whl
3. 在python的安装目录，site-package/DalineUnit下可看到源文件，可以调试
4. 建议debug在site-package/DalineUnit下修改源文件，调试完成后将.py文件拷回至pythonTB中，然后重新运行打包发布步骤
bot-config 0.2.19
bot_config
Requires Python: >=3.5

# amazon_config
![python_version](https://img.shields.io/static/v1?label=Python&message=3.5%20|%203.6%20|%203.7&color=blue) [![PyPI downloads/month](https://img.shields.io/pypi/dm/amazon_config?logo=pypi&logoColor=white)](https://pypi.python.org/pypi/amazon_config)

## Description


## Install
~~~~bash
pip install amazon_config
# or
pip3 install amazon_config
~~~~