longPolling


NamelongPolling JSON
Version 0.0.4 PyPI version JSON
download
home_pagehttps://kuankuan2007.gitee.io/docs/long-polling/
SummarySimple long polling implementation
upload_time2023-06-01 15:56:08
maintainer
docs_urlNone
authorkuankuan
requires_python
licenseMulan PSL v2
keywords long polling flask http thread
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            长轮询(longPolling)
===================

.. code:: bash

   pip install longPolling 

客户端
------

单向传输
~~~~~~~~

.. code:: python

   import longPolling
   example=longPolling.client.Client(url, callback)
   example.login(uername)

双向传输
~~~~~~~~

.. code:: python

   import longPolling
   example=longPolling.client.BothwayClient(url, callback)
   example.login(uername)
   example.send(data)

服务端
------

.. _单向传输-1:

单向传输
~~~~~~~~

.. code:: python

   import longPolling
   example=longPolling.server.Server(host,port)
   example.send(username,message)

.. _双向传输-1:

双向传输
~~~~~~~~

.. code:: python

   import longPolling
   example=longPolling.server.BothwayServer(host,port,callback)
   example.send(username,message)

关于作者
--------

作者主页\ `宽宽2007 <https://kuankuan2007.gitee.io>`__

pypi\ `longPolling · PyPI <https://pypi.org/project/longPolling/>`__

本项目在\ `苟浩铭/长轮询
(gitee.com) <https://gitee.com/kuankuan2007/long-polling>`__\ 上开源

帮助文档参见\ `宽宽的帮助文档 <https://kuankuan2007.gitee.io/docs/long-polling>`__

            

Raw data

            {
    "_id": null,
    "home_page": "https://kuankuan2007.gitee.io/docs/long-polling/",
    "name": "longPolling",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "long polling,flask,http,thread",
    "author": "kuankuan",
    "author_email": "2163826131@qq.com",
    "download_url": "https://files.pythonhosted.org/packages/8b/33/f02ddbb32804489d14da870c505d4ff893ab8e6687e6dd7560948e107c70/longPolling-0.0.4.tar.gz",
    "platform": "windows",
    "description": "\u957f\u8f6e\u8be2(longPolling)\r\n===================\r\n\r\n.. code:: bash\r\n\r\n   pip install longPolling \r\n\r\n\u5ba2\u6237\u7aef\r\n------\r\n\r\n\u5355\u5411\u4f20\u8f93\r\n~~~~~~~~\r\n\r\n.. code:: python\r\n\r\n   import longPolling\r\n   example=longPolling.client.Client(url, callback)\r\n   example.login(uername)\r\n\r\n\u53cc\u5411\u4f20\u8f93\r\n~~~~~~~~\r\n\r\n.. code:: python\r\n\r\n   import longPolling\r\n   example=longPolling.client.BothwayClient(url, callback)\r\n   example.login(uername)\r\n   example.send(data)\r\n\r\n\u670d\u52a1\u7aef\r\n------\r\n\r\n.. _\u5355\u5411\u4f20\u8f93-1:\r\n\r\n\u5355\u5411\u4f20\u8f93\r\n~~~~~~~~\r\n\r\n.. code:: python\r\n\r\n   import longPolling\r\n   example=longPolling.server.Server(host,port)\r\n   example.send(username,message)\r\n\r\n.. _\u53cc\u5411\u4f20\u8f93-1:\r\n\r\n\u53cc\u5411\u4f20\u8f93\r\n~~~~~~~~\r\n\r\n.. code:: python\r\n\r\n   import longPolling\r\n   example=longPolling.server.BothwayServer(host,port,callback)\r\n   example.send(username,message)\r\n\r\n\u5173\u4e8e\u4f5c\u8005\r\n--------\r\n\r\n\u4f5c\u8005\u4e3b\u9875\\ `\u5bbd\u5bbd2007 <https://kuankuan2007.gitee.io>`__\r\n\r\npypi\\ `longPolling \u00b7 PyPI <https://pypi.org/project/longPolling/>`__\r\n\r\n\u672c\u9879\u76ee\u5728\\ `\u82df\u6d69\u94ed/\u957f\u8f6e\u8be2\r\n(gitee.com) <https://gitee.com/kuankuan2007/long-polling>`__\\ \u4e0a\u5f00\u6e90\r\n\r\n\u5e2e\u52a9\u6587\u6863\u53c2\u89c1\\ `\u5bbd\u5bbd\u7684\u5e2e\u52a9\u6587\u6863 <https://kuankuan2007.gitee.io/docs/long-polling>`__\r\n",
    "bugtrack_url": null,
    "license": "Mulan PSL v2",
    "summary": "Simple long polling implementation",
    "version": "0.0.4",
    "project_urls": {
        "Homepage": "https://kuankuan2007.gitee.io/docs/long-polling/"
    },
    "split_keywords": [
        "long polling",
        "flask",
        "http",
        "thread"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "866de3b441eb0926cadedca04b4d2d7db31bf6c92d10886f7033b0d61a2f52a5",
                "md5": "e67cf5b73204dee79861861e7b616a40",
                "sha256": "c195bb775310346bf32b206186ccd40cb12d14a7554f6d69bdd89e1e53f967fd"
            },
            "downloads": -1,
            "filename": "longPolling-0.0.4-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "e67cf5b73204dee79861861e7b616a40",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 6573,
            "upload_time": "2023-06-01T15:56:06",
            "upload_time_iso_8601": "2023-06-01T15:56:06.735822Z",
            "url": "https://files.pythonhosted.org/packages/86/6d/e3b441eb0926cadedca04b4d2d7db31bf6c92d10886f7033b0d61a2f52a5/longPolling-0.0.4-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8b33f02ddbb32804489d14da870c505d4ff893ab8e6687e6dd7560948e107c70",
                "md5": "774c98a59b80ebdb76413529c99afec0",
                "sha256": "d7047165aae3736932f8a4fdeb7003f2eb1dc237b86e9aaac8619cb79ae6ed79"
            },
            "downloads": -1,
            "filename": "longPolling-0.0.4.tar.gz",
            "has_sig": false,
            "md5_digest": "774c98a59b80ebdb76413529c99afec0",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 5276,
            "upload_time": "2023-06-01T15:56:08",
            "upload_time_iso_8601": "2023-06-01T15:56:08.805038Z",
            "url": "https://files.pythonhosted.org/packages/8b/33/f02ddbb32804489d14da870c505d4ff893ab8e6687e6dd7560948e107c70/longPolling-0.0.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-06-01 15:56:08",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "longpolling"
}
        
Elapsed time: 0.09770s