async-irc


Nameasync-irc JSON
Version 0.2.0 PyPI version JSON
download
home_pageNone
SummaryA simple asyncio.Protocol implementation designed for IRC
upload_time2024-04-16 05:32:39
maintainerNone
docs_urlNone
authorNone
requires_python>=3.8
licenseNone
keywords async-irc asyncio asyncirc irc irc-framework
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # async-irc [![Build Status](https://travis-ci.org/snoonetIRC/async-irc.svg?branch=master)](https://travis-ci.org/snoonetIRC/async-irc)
An implementation of asyncio.Protocol for IRC

## Using the library
- You can install the library using pip: `pip install async-irc`

### Example
```python
import asyncio

from asyncirc.protocol import IrcProtocol
from asyncirc.server import Server

loop = asyncio.get_event_loop()

servers = [
    Server("irc.example.org", 6697, True),
    Server("irc.example.com", 6667),
]

async def log(conn, message):
    print(message)

async def main():
    conn = IrcProtocol(servers, "BotNick", loop=loop)
    conn.register_cap('userhost-in-names')
    conn.register('*', log)
    await conn.connect()
    await asyncio.sleep(24 * 60 * 60)

try:
    loop.run_until_complete(main())
finally:
    loop.stop()
```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "async-irc",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "async-irc, asyncio, asyncirc, irc, irc-framework",
    "author": null,
    "author_email": "linuxdaemon <linuxdaemon@snoonet.org>",
    "download_url": "https://files.pythonhosted.org/packages/b4/8b/e1ffc629cf77d9e0f26a06e9302bf631008bdf83d2eaf0625e03aaf44214/async_irc-0.2.0.tar.gz",
    "platform": null,
    "description": "# async-irc [![Build Status](https://travis-ci.org/snoonetIRC/async-irc.svg?branch=master)](https://travis-ci.org/snoonetIRC/async-irc)\nAn implementation of asyncio.Protocol for IRC\n\n## Using the library\n- You can install the library using pip: `pip install async-irc`\n\n### Example\n```python\nimport asyncio\n\nfrom asyncirc.protocol import IrcProtocol\nfrom asyncirc.server import Server\n\nloop = asyncio.get_event_loop()\n\nservers = [\n    Server(\"irc.example.org\", 6697, True),\n    Server(\"irc.example.com\", 6667),\n]\n\nasync def log(conn, message):\n    print(message)\n\nasync def main():\n    conn = IrcProtocol(servers, \"BotNick\", loop=loop)\n    conn.register_cap('userhost-in-names')\n    conn.register('*', log)\n    await conn.connect()\n    await asyncio.sleep(24 * 60 * 60)\n\ntry:\n    loop.run_until_complete(main())\nfinally:\n    loop.stop()\n```\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "A simple asyncio.Protocol implementation designed for IRC",
    "version": "0.2.0",
    "project_urls": {
        "Homepage": "https://github.com/TotallyNotRobots/async-irc"
    },
    "split_keywords": [
        "async-irc",
        " asyncio",
        " asyncirc",
        " irc",
        " irc-framework"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d7b9258ce7e96f63c424094c8cca0084ce95f72268707734475052a20310a144",
                "md5": "188fea3d0548b1f5dfc838e9b932a420",
                "sha256": "65cfdba915a2dbb471ed26bd34de965070fbe85ddca6a3bd72d8b14e4006068f"
            },
            "downloads": -1,
            "filename": "async_irc-0.2.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "188fea3d0548b1f5dfc838e9b932a420",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 9342,
            "upload_time": "2024-04-16T05:32:38",
            "upload_time_iso_8601": "2024-04-16T05:32:38.183445Z",
            "url": "https://files.pythonhosted.org/packages/d7/b9/258ce7e96f63c424094c8cca0084ce95f72268707734475052a20310a144/async_irc-0.2.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b48be1ffc629cf77d9e0f26a06e9302bf631008bdf83d2eaf0625e03aaf44214",
                "md5": "c7736bed6f2aeebb18e03abe0e25540b",
                "sha256": "58d630b36c50d437b23206d3df92d13dd453f99192880a28255c3a8f4d60dfde"
            },
            "downloads": -1,
            "filename": "async_irc-0.2.0.tar.gz",
            "has_sig": false,
            "md5_digest": "c7736bed6f2aeebb18e03abe0e25540b",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 14004,
            "upload_time": "2024-04-16T05:32:39",
            "upload_time_iso_8601": "2024-04-16T05:32:39.756527Z",
            "url": "https://files.pythonhosted.org/packages/b4/8b/e1ffc629cf77d9e0f26a06e9302bf631008bdf83d2eaf0625e03aaf44214/async_irc-0.2.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-04-16 05:32:39",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "TotallyNotRobots",
    "github_project": "async-irc",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "async-irc"
}
        
Elapsed time: 0.84050s