index.py


Nameindex.py JSON
Version 0.21.16 PyPI version JSON
download
home_pagehttps://github.com/abersheeran/index.py
SummaryAn easy-to-use high-performance asynchronous web framework.
upload_time2023-10-15 02:56:38
maintainer
docs_urlNone
authorabersheeran
requires_python>=3.7,<4.0
licenseApache-2.0
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <div align="center">

<img src="https://raw.githubusercontent.com/abersheeran/index.py/master/docs/img/index-py.png" />

<p>
中文
|
<a href="https://github.com/abersheeran/index.py/tree/master/README-en.md">English</a>
</p>

<p>
<a href="https://github.com/abersheeran/index.py/actions?query=workflow%3ATest">
<img src="https://github.com/abersheeran/index.py/workflows/Test/badge.svg" alt="Github Action Test" />
</a>

<a href="https://app.codecov.io/gh/abersheeran/index.py/">
<img alt="Codecov" src="https://img.shields.io/codecov/c/github/abersheeran/index.py">
</a>
</p>

<p>
<a href="https://github.com/abersheeran/index.py/actions?query=workflow%3A%22Publish+PyPi%22">
<img src="https://github.com/abersheeran/index.py/workflows/Publish%20PyPi/badge.svg" alt="Publish PyPi" />
</a>

<a href="https://pypi.org/project/index.py/">
<img src="https://img.shields.io/pypi/v/index.py" alt="PyPI" />
</a>

<a href="https://pepy.tech/project/index-py">
<img src="https://static.pepy.tech/personalized-badge/index-py?period=total&units=international_system&left_color=black&right_color=blue&left_text=PyPi%20Downloads" alt="Downloads">
</a>
</p>

<p>
<img src="https://img.shields.io/pypi/pyversions/index.py" alt="PyPI - Python Version" />
</p>

一个易用的高性能异步 web 框架。

<a href="https://index-py.aber.sh/stable/">Index.py 文档</a>

</div>

---

Index.py 实现了 [ASGI3](http://asgi.readthedocs.io/en/latest/) 接口,并使用 Radix Tree 进行路由查找。是[最快的 Python web 框架之一](https://github.com/the-benchmarker/web-frameworks)。一切特性都服务于快速开发高性能的 Web 服务。

- 大量正确的类型注释
- 灵活且高效的路由系统
- 能作用于任意路由及路由分组上的路由中间件
- 适用于中间件与视图的依赖注入
- 可视化 API 接口与在线调试
- 支持 [Server-sent events](https://developer.mozilla.org/zh-CN/docs/Web/API/Server-sent_events/Using_server-sent_events) 与 WebSocket
- 自带一键部署命令 (基于 uvicorn 与 gunicorn)
- 可使用任何标准 ASGI 生态

## Install

```bash
pip install -U index.py
```

或者直接从 Github 上安装最新版本(不稳定)

```bash
pip install -U git+https://github.com/abersheeran/index.py@setup.py
```

中国大陆内的用户可从 Gitee 上的镜像仓库拉取

```bash
pip install -U git+https://gitee.com/abersheeran/index.py.git@setup.py
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/abersheeran/index.py",
    "name": "index.py",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7,<4.0",
    "maintainer_email": "",
    "keywords": "",
    "author": "abersheeran",
    "author_email": "me@abersheeran.com",
    "download_url": "https://files.pythonhosted.org/packages/5b/47/ead9fefd2b4972688de47fc65b68fce8e802241166d87ca524ba2241ab8a/index_py-0.21.16.tar.gz",
    "platform": null,
    "description": "<div align=\"center\">\n\n<img src=\"https://raw.githubusercontent.com/abersheeran/index.py/master/docs/img/index-py.png\" />\n\n<p>\n\u4e2d\u6587\n|\n<a href=\"https://github.com/abersheeran/index.py/tree/master/README-en.md\">English</a>\n</p>\n\n<p>\n<a href=\"https://github.com/abersheeran/index.py/actions?query=workflow%3ATest\">\n<img src=\"https://github.com/abersheeran/index.py/workflows/Test/badge.svg\" alt=\"Github Action Test\" />\n</a>\n\n<a href=\"https://app.codecov.io/gh/abersheeran/index.py/\">\n<img alt=\"Codecov\" src=\"https://img.shields.io/codecov/c/github/abersheeran/index.py\">\n</a>\n</p>\n\n<p>\n<a href=\"https://github.com/abersheeran/index.py/actions?query=workflow%3A%22Publish+PyPi%22\">\n<img src=\"https://github.com/abersheeran/index.py/workflows/Publish%20PyPi/badge.svg\" alt=\"Publish PyPi\" />\n</a>\n\n<a href=\"https://pypi.org/project/index.py/\">\n<img src=\"https://img.shields.io/pypi/v/index.py\" alt=\"PyPI\" />\n</a>\n\n<a href=\"https://pepy.tech/project/index-py\">\n<img src=\"https://static.pepy.tech/personalized-badge/index-py?period=total&units=international_system&left_color=black&right_color=blue&left_text=PyPi%20Downloads\" alt=\"Downloads\">\n</a>\n</p>\n\n<p>\n<img src=\"https://img.shields.io/pypi/pyversions/index.py\" alt=\"PyPI - Python Version\" />\n</p>\n\n\u4e00\u4e2a\u6613\u7528\u7684\u9ad8\u6027\u80fd\u5f02\u6b65 web \u6846\u67b6\u3002\n\n<a href=\"https://index-py.aber.sh/stable/\">Index.py \u6587\u6863</a>\n\n</div>\n\n---\n\nIndex.py \u5b9e\u73b0\u4e86 [ASGI3](http://asgi.readthedocs.io/en/latest/) \u63a5\u53e3\uff0c\u5e76\u4f7f\u7528 Radix Tree \u8fdb\u884c\u8def\u7531\u67e5\u627e\u3002\u662f[\u6700\u5feb\u7684 Python web \u6846\u67b6\u4e4b\u4e00](https://github.com/the-benchmarker/web-frameworks)\u3002\u4e00\u5207\u7279\u6027\u90fd\u670d\u52a1\u4e8e\u5feb\u901f\u5f00\u53d1\u9ad8\u6027\u80fd\u7684 Web \u670d\u52a1\u3002\n\n- \u5927\u91cf\u6b63\u786e\u7684\u7c7b\u578b\u6ce8\u91ca\n- \u7075\u6d3b\u4e14\u9ad8\u6548\u7684\u8def\u7531\u7cfb\u7edf\n- \u80fd\u4f5c\u7528\u4e8e\u4efb\u610f\u8def\u7531\u53ca\u8def\u7531\u5206\u7ec4\u4e0a\u7684\u8def\u7531\u4e2d\u95f4\u4ef6\n- \u9002\u7528\u4e8e\u4e2d\u95f4\u4ef6\u4e0e\u89c6\u56fe\u7684\u4f9d\u8d56\u6ce8\u5165\n- \u53ef\u89c6\u5316 API \u63a5\u53e3\u4e0e\u5728\u7ebf\u8c03\u8bd5\n- \u652f\u6301 [Server-sent events](https://developer.mozilla.org/zh-CN/docs/Web/API/Server-sent_events/Using_server-sent_events) \u4e0e WebSocket\n- \u81ea\u5e26\u4e00\u952e\u90e8\u7f72\u547d\u4ee4 (\u57fa\u4e8e uvicorn \u4e0e gunicorn)\n- \u53ef\u4f7f\u7528\u4efb\u4f55\u6807\u51c6 ASGI \u751f\u6001\n\n## Install\n\n```bash\npip install -U index.py\n```\n\n\u6216\u8005\u76f4\u63a5\u4ece Github \u4e0a\u5b89\u88c5\u6700\u65b0\u7248\u672c\uff08\u4e0d\u7a33\u5b9a\uff09\n\n```bash\npip install -U git+https://github.com/abersheeran/index.py@setup.py\n```\n\n\u4e2d\u56fd\u5927\u9646\u5185\u7684\u7528\u6237\u53ef\u4ece Gitee \u4e0a\u7684\u955c\u50cf\u4ed3\u5e93\u62c9\u53d6\n\n```bash\npip install -U git+https://gitee.com/abersheeran/index.py.git@setup.py\n```\n",
    "bugtrack_url": null,
    "license": "Apache-2.0",
    "summary": "An easy-to-use high-performance asynchronous web framework.",
    "version": "0.21.16",
    "project_urls": {
        "Documentation": "https://index-py.abersheeran.com/",
        "Homepage": "https://github.com/abersheeran/index.py",
        "Repository": "https://github.com/abersheeran/index.py"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1bf8045978a279983af3f7fc9666337b7138300ac78d8fcfc1968fbbe549665f",
                "md5": "74cec86a44a99267207b8d80eaaab440",
                "sha256": "a5fd7d1d8da58976ca0a94e389985e4556b660c067c8a506ec7567b057b9a578"
            },
            "downloads": -1,
            "filename": "index_py-0.21.16-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "74cec86a44a99267207b8d80eaaab440",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7,<4.0",
            "size": 54754,
            "upload_time": "2023-10-15T02:56:35",
            "upload_time_iso_8601": "2023-10-15T02:56:35.418847Z",
            "url": "https://files.pythonhosted.org/packages/1b/f8/045978a279983af3f7fc9666337b7138300ac78d8fcfc1968fbbe549665f/index_py-0.21.16-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5b47ead9fefd2b4972688de47fc65b68fce8e802241166d87ca524ba2241ab8a",
                "md5": "6730de529f4e640f215208d6d5defd71",
                "sha256": "3b5d0113cb3092aa6cf399e27e7d9e846af87c64e2848ade2e05081925c23352"
            },
            "downloads": -1,
            "filename": "index_py-0.21.16.tar.gz",
            "has_sig": false,
            "md5_digest": "6730de529f4e640f215208d6d5defd71",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7,<4.0",
            "size": 43639,
            "upload_time": "2023-10-15T02:56:38",
            "upload_time_iso_8601": "2023-10-15T02:56:38.478041Z",
            "url": "https://files.pythonhosted.org/packages/5b/47/ead9fefd2b4972688de47fc65b68fce8e802241166d87ca524ba2241ab8a/index_py-0.21.16.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-10-15 02:56:38",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "abersheeran",
    "github_project": "index.py",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "index.py"
}
        
Elapsed time: 0.13801s